path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/main.js
golemfactory/golem-electron
import 'react-hot-loader/patch'; import 'tippy.js/themes/light.css'; import 'tippy.js/themes/translucent.css'; require('css-browser-selector'); import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware, compose, __DO_NOT_...
app/bower_components/html5-boilerplate/dist/js/vendor/jquery-1.11.3.min.js
nohharri/GroupGenius
/*! jQuery v1.11.3 | (c) 2005, 2015 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...
__tests__/tests/components/RepositoryProfile.js
Antoine38660/git-point
import React from 'react'; import { shallow } from 'enzyme'; import { Icon } from 'react-native-elements'; import { RepositoryProfile } from 'components'; const defaultProps = { repository: { fork: true, parent: true, language: 'en', }, starred: false, navigation: { navigate() {}, }, loadi...
src/components/sections/Contact.js
kaifn/kaifn-page
import React, { Component } from 'react'; class Contact extends Component { render() { return ( <section id="contact" class="container"> <div class="row"> <div class="col-lg-8 mx-auto text-center"> <h2 class="section-heading">Ponte en contacto con nosotros</h2> <p...
src/modules/comments/components/CommentDetail/CommentReference/CommentReference.js
CtrHellenicStudies/Commentary
import React from 'react'; import PropTypes from 'prop-types'; const CommentReference = (props) => { if (props.referenceWorks && props.referenceWorks.length) { return ( <div className="comment-reference"> <h4>Secondary Source(s):</h4> <span> {props.referenceWorks.map((referenceWork, i) => { co...
scripts/jquery-1.9.1.js
kodotama/KodotamaAlumay
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
src/components/Comment.js
avencat/bjtu-software-project-training
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Textarea from 'react-textarea-autosize'; import moment from "moment/moment"; export default class Comment extends Component { constructor(props) { super(props); this.state = { editing: false, comment: this.pr...
webpack/components/TypeAhead/pf3Search/TypeAheadItems.js
Katello/katello
import React from 'react'; import { Dropdown, MenuItem } from 'patternfly-react'; import { commonItemPropTypes } from '../helpers/commonPropTypes'; const TypeAheadItems = ({ items, activeItems, getItemProps, highlightedIndex, }) => ( <Dropdown.Menu className="typeahead-dropdown"> {items.map(({ text, type, dis...
src/svg-icons/editor/border-all.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderAll = (props) => ( <SvgIcon {...props}> <path d="M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z"/> </SvgIcon> ); EditorBorderAll = pure(EditorBorderAll); EditorBorderAll....
src/jsx-render-engine/strategy/react-router/Provider.js
yeojz/metalsmith-react-templates
import React from 'react'; import PropTypes from 'prop-types'; class Provider extends React.Component { getChildContext = () => ({ defaultProps: this.props.defaultProps || {} }) render() { return React.Children.only(this.props.children); } } Provider.propTypes = { defaultProps: PropTypes.object, ...
ajax/libs/angular-google-maps/1.0.4/angular-google-maps.js
kentcdodds/cdnjs
/* Author Nick McCready Intersection of Objects if the arrays have something in common each intersecting object will be returned in an new array. */ (function() { _.intersectionObjects = function(array1, array2, comparison) { var res, _this = this; if (comparison == null) { compariso...
packages/material-ui-icons/src/RoomRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 2C8.13 2 5 5.13 5 9c0 4.17 4.42 9.92 6.24 12.11.4.48 1.13.48 1.53 0C14.58 18.92 19 13.17 19 9c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"...
src/routes/register/register.js
brian-kilpatrick/react-starter-kit
import React from 'react'; import { logger } from '../../utils'; class Register extends React.Component { constructor(props) { super(props); this.state = { firstName: '', lastName: '', password: '', email: '', formSubmitted: false, errorMessage: '' }; } _handle...
src/defaults/DefaultLinkFactory.js
woodenconsulting/react-js-diagrams
import React from 'react'; import { LinkWidgetFactory } from '../WidgetFactories'; import { DefaultLinkWidget } from './DefaultLinkWidget'; export class DefaultLinkFactory extends LinkWidgetFactory { constructor() { super('default'); } generateReactWidget(diagramEngine, link) { return ( <DefaultLi...
src/flux/containers/app-container.js
artem-kushal/flux-redux-overview
import React from 'react'; import Dispatcher from '../dispatcher' import {Container} from 'flux/utils'; import NotesStore from '../store/notes-store'; import TagsStore from '../store/tags-store'; import App from '../../common/components/app'; import * as noteActions from '../../common/actions/note-actions'; import * as...
components/CommentColumn/CommentColumn.js
alexmick/react-comment-experiment
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component, PropTypes } from 'react'; import Comment from '../Comment'; import CommentForm from '../CommentForm'; import './CommentColumn.scss'; class C...
react-flux-mui/js/material-ui/src/RaisedButton/RaisedButton.spec.js
pbogdan/react-flux-mui
/* eslint-env mocha */ import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import {mount, shallow} from 'enzyme'; import {assert} from 'chai'; import RaisedButton from './RaisedButton'; import ActionAndroid from '../svg-icons/action/android'; import getMuiTheme...
ajax/libs/yui/3.4.1pr1/yui/yui.js
blairvanderhoof/cdnjs
/** * The YUI module contains the components required for building the YUI seed * file. This includes the script loading mechanism, a simple queue, and * the core utilities for the library. * @module yui * @submodule yui-base */ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The YUI global namespac...
js/components/card/styles.js
YeisonGomez/RNAmanda
const React = require('react-native'); const { StyleSheet } = React; export default { container: { backgroundColor: '#FFF', }, text: { alignSelf: 'center', marginBottom: 7, }, mb: { marginBottom: 15, }, };
blueocean-material-icons/src/js/components/svg-icons/image/gradient.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageGradient = (props) => ( <SvgIcon {...props}> <path d="M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 18H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm2-...
src/views/pages/home-page/home-page.js
r-park/soundcloud-redux
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { tracklistActions } from 'src/core/tracklists'; import ContentHeader from '../../components/content-header'; import Tracklist from '../../components/tracklist'; export class HomePage extends React.Component ...
frontend/src/components/organizationProfile/countryProfile/countryProfileList.js
unicef/un-partner-portal
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { withStyles } from 'material-ui/styles'; import List, { ListSubheader } from 'material-ui/List'; import CountryProfileItem from './countryProfileItem'; import { selectCountryId } from '../../../r...
js/BS3docjs/jquery.js
Ali-Baba-Tajine/Ali-Baba-Tajine-Jekyll01
/*! 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...
public/js/app/queryTools/components/reports/Summary.js
fendy3002/QzQueryTools
import React from 'react'; import lo from 'lodash'; var Elem = function({data, layout}){ var fields = layout.fields || {}; var renderLayout = (key, row) => { var rowType = fields[key]; if(!rowType){ return <input className="form-control" readOnly="readOnly" defaultVa...
examples/counter-static/common/components/About.js
retaxJS/retax
import React from 'react'; import { Link } from 'react-router'; export default () => ( <div> Hello About! <Link to="/counter"><button>Go to /counter</button></Link> </div> );
tests/unit/datePicker/datePicker.initInputRef.spec.js
Travix-International/travix-ui-kit
import React from 'react'; import { shallow } from 'enzyme'; import DatePicker from '../../../components/datePicker/datePicker'; describe('DatePicker: initInputRef', () => { it('should determine ref for input', () => { const element = {}; const component = shallow( <DatePicker name="datepicker" /> ...
src/common/Sidebar/SidebarContent.js
Syncano/syncano-dashboard
import React from 'react'; import { ScrollLockMixin } from '../../mixins'; export default React.createClass({ displayName: 'SidebarContent', mixins: [ScrollLockMixin], componentDidMount() { this.scrollLock(); }, componentWillUnmount() { this.scrollRelease(); }, getStyles() { return { ...
node_modules/react-icons/fa/angle-left.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaAngleLeft = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m26.5 12.1q0 0.3-0.2 0.6l-8.8 8.7 8.8 8.8q0.2 0.2 0.2 0.5t-0.2 0.5l-1.1 1.1q-0.3 0.3-0.6 0.3t-0.5-0.3l-10.4-10.4q-0.2-0.2-0.2-0.5t0.2-0.5l10.4-10.4q0.3-0.2 0.5-0.2t...
src/components/icon/SawtoothWaveIcon.js
reklawnos/synthesizer
import React from 'react'; export default function SawtoothWaveIcon() { return ( <svg viewBox="0 25 100 50" className="waveform-icon"> <g transform="scale(-1,1) translate(-100, 0)"> <path d="M64 61.9v-20l-30 20v-20L5.6 60.8l-1.2-1.6L36 38.1v20l30-20v20l28.4-18.9 1.2 1.6z" /> </g> </svg> ...
example/src/index.js
jedirandy/redux-url
import React from 'react'; import { render } from 'react-dom'; import { createStore, applyMiddleware, compose } from 'redux'; import { Provider } from 'react-redux'; import { createBrowserHistory as createHistory } from 'history'; import { createRouter } from 'redux-url'; import reducer from './reducer'; import App fro...
ui/app/components/confirmation.js
leapcode/bitmask-dev
// // A simple diagon that asks if you are sure. // import React from 'react' import {Button, ButtonToolbar, Modal} from 'react-bootstrap' import PropTypes from 'prop-types' const Confirmation = props => ( <Modal show={props.show}> <Modal.Header closeButton> <Modal.Title> {props.title} </Mod...
packages/wix-style-react/src/FloatingHelper/FloatingHelperContent/test/FloatingHelperContent.visual.js
wix/wix-style-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import FloatingHelperContent from '../FloatingHelperContent'; import Box from '../../../Box'; import Text from '../../../Text'; import { actionButtonTheme } from '../constants'; import { floatingHelperAppearance } from '../../constants'; import Im...
files/react/0.14.0-beta2/react-with-addons.js
MadhavBitra/jsdelivr
/** * React (with addons) v0.14.0-beta2 */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="un...
demo/src/index.js
bpugh/react-editable
import React from 'react' import {render} from 'react-dom' import Component from '../../src' let Demo = React.createClass({ getInitialState: function() { return { value: 'Hello world!' }; }, handleSubmit(val) { this.setState({value: val}) }, render() { return <div> <h1>react-inli...
main.js
bangarang/a-soldiers-song
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import 'babel-polyfill'; im...
my-first-app/src/App.js
jimtryon/launchcode-101
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
ajax/libs/video.js/4.6.2/video.dev.js
aeharding/cdnjs
/** * @fileoverview Main function src. */ // HTML5 Shiv. Must be in <head> to support older browsers. document.createElement('video'); document.createElement('audio'); document.createElement('track'); /** * Doubles as the main function for users to create a player instance and also * the main library object. * ...
frontend/src/components/popup/LogIn.js
jirkae/BeerCheese
import React from 'react'; import { Modal, ModalBody, Button } from 'reactstrap'; import { connect } from 'react-redux'; import { login } from '../../actions/auth'; const loginModal = ({ auth, hideModals, login }) => { const handleAdminLogin = event => { event.preventDefault(); login({ username: 'admi...
examples/test-cra/src/stories/index.js
nfl/react-storybook
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; import Button from './Button'; import Welcome fr...
node_modules/eslint-import-resolver-node/node_modules/debug/src/browser.js
Akkowicz/webdev-assignments
/** * 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...
app/templates/blog/Posts.js
twixlyhq/react-site
import React from 'react'; import PostList from './partials/PostList'; const Posts = (props) => { return ( <PostList {...props} /> ); }; export default Posts;
src/svg-icons/content/inbox.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentInbox = (props) => ( <SvgIcon {...props}> <path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"/> <...
ajax/libs/6to5/3.0.10/browser-polyfill.js
wmkcc/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...
public/assets/application-02b4b822f33649c1b1a890d53db6c663.js
samuels410/helpalife
/*! * 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/Footer/Footer.js
jhlav/mpn-web-app
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-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'; import withStyles from 'isom...
src/components/LineChart/index.js
keenethics/estimateit
import { Field } from 'redux-form'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Card, CardBlock } from 'reactstrap'; import ReactHighcharts from 'react-highcharts'; import Slider from '../Slider'; class LineChart extends Component { constructor(props) { super(props); ...
ajax/libs/6to5/1.12.24/browser.js
vetruvet/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...
Realization/frontend/czechidm-core/src/components/basic/Button/SplitButton.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import _ from 'lodash'; import Button from '@material-ui/core/Button'; import ButtonGroup from '@material-ui/core/ButtonGroup'; import ArrowDropDownIcon from '@material-ui/icons/ArrowDropDown'; import ClickAwayListener from '@materi...
ajax/libs/rxjs/2.3.8/rx.all.js
legomushroom/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...
docs/app/Examples/collections/Breadcrumb/Types/BreadcrumbExampleDivider.js
vageeshb/Semantic-UI-React
import React from 'react' import { Breadcrumb } from 'semantic-ui-react' const BreadcrumbExampleDivider = () => ( <Breadcrumb> <Breadcrumb.Section link>Home</Breadcrumb.Section> <Breadcrumb.Divider icon='right angle' /> <Breadcrumb.Section link>Store</Breadcrumb.Section> <Breadcrumb.Divider icon='rig...
ajax/libs/angular-google-maps/2.0.10/angular-google-maps_dev_mapped.js
2947721120/cdnjs
/*! angular-google-maps 2.0.10 2014-11-25 * AngularJS directives for Google Maps * git: https://github.com/angular-ui/angular-google-maps.git */ /* ! The MIT License Copyright (c) 2010-2013 Google, Inc. http://angularjs.org Permission is hereby granted, free of charge, to any person obtaining a copy of this sof...
ajax/libs/styled-components/1.4.5/styled-components.js
cdnjs/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : (factory((global.styled = global.styled || {}),global.React)); }(this, (function (exports,React) { 'us...
client/src/component/chattext.js
rama841/minutes-vart
import React from 'react' import './bubble.css' export const Bubble = (props) => ( <div className="talk-bubble tri-right btm-right"> <div className='talktext'> <p>Flush to the bottom right. Uses .btm-right only.</p> </div> </div> ) export default Bubble
lib/countryPicker.js
thegamenicorus/react-native-phone-input
import React, { Component } from 'react'; import { Text, TouchableOpacity, View, Modal, Picker } from 'react-native'; import PropTypes from 'prop-types'; import Country from './country'; import styles from './styles'; const PickerItem = Picker.Item; const propTypes = { buttonColor: PropTypes.string, labels: Prop...
learnyoureact/11-prop-and-state-app.js
golgistudio/node-school-exercises
import React from 'react'; import ReactDOM from 'react-dom'; import TodoBox from './views/11-prop-and-state.jsx'; let data = JSON.parse(document.getElementById('initial-data').getAttribute('data-json')); ReactDOM.render(<TodoBox data={data} />, document.getElementById("app"));
src/svg-icons/action/settings-input-composite.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputComposite = (props) => ( <SvgIcon {...props}> <path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2....
src/components/Main/Card/Body.js
thms-rmb/fcc-random-quote-machine
import React, { Component } from 'react'; class Body extends Component { wrapper(props) { return ( <div className="uk-card-body"> {props.children} </div> ); } errorOutput() { return ( <this.wrapper> <div> ...
ajax/libs/golden-layout/1.5.8/goldenlayout.min.js
nolsherry/cdnjs
!function($){var lm={config:{},container:{},controls:{},errors:{},items:{},utils:{}};lm.utils.F=function(){},lm.utils.extend=function(t,e){t.prototype=lm.utils.createObject(e.prototype),t.prototype.contructor=t},lm.utils.createObject=function(t){return"function"==typeof Object.create?Object.create(t):(lm.utils.F.protot...
packages/react/components/panel.js
iamxiaoma/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentWatch from '../runtime-helpers/react-component-watch.js'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../ru...
tools/webpack.config.js
ma489/listify
/** * 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 path from 'path'; import webpack from 'webpack'; im...
ajax/libs/react-dom/16.0.1/cjs/react-dom-test-utils.development.js
cdnjs/cdnjs
/** @license React v16.0.1 * react-dom-test-utils.development.js * * Copyright (c) 2013-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. */ 'use strict'; if (process.env.NODE_ENV !== "production") { (function()...
stories/DatePicker/ExampleControlledExcludePast.js
nirhart/wix-style-react
import React from 'react'; import {DatePicker} from 'wix-style-react'; import moment from 'moment'; class ControlledDatePicker extends React.Component { constructor(params) { super(params); this.state = { value: moment() }; } render() { return ( <DatePicker value={this.state...
examples/todomvc/index.js
akofman/redux
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
Client/__tests__/index.android.js
oaml/RApp
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 /> ); });
electron/dva-boilerplate-electron/src/renderer/routes/IndexPage.js
JianmingXia/StudyTest
import React from 'react'; import { connect } from 'dva'; import styles from './IndexPage.css'; function IndexPage() { return ( <div className={styles.normal}> <h1 className={styles.title}>Yay! Welcome to dva!</h1> <div className={styles.welcome} /> <ul className={styles.list}> <li>To g...
ajax/libs/react/15.0.0/react-dom-server.js
holtkamp/cdnjs
/** * ReactDOMServer v15.0.0 * * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same d...
examples/cra-kitchen-sink/src/stories/cra-svgr.stories.js
storybooks/react-storybook
// FIXME: @igor-dv // import React from 'react'; // import { storiesOf } from '@storybook/react'; // import { ReactComponent as Logo } from '../logo.svg'; // // storiesOf('CRA', module).add('Svgr', () => <Logo />);
ReduxLearn/index.ios.js
MisterZhouZhou/ReactNativeLearing
/** * 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 Root from './src/Root'; export default class ReduxLearn extends Component { render() { return ( ...
app/javascript/mastodon/features/ui/index.js
im-in-space/mastodon
import classNames from 'classnames'; import React from 'react'; import { HotKeys } from 'react-hotkeys'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { Redirect, withRouter } from 'react-router-dom'; import PropTypes from 'prop-types'; import NotificationsContai...
src/Components/ObjectProperty/ToggleColumn.js
apiaryio/attributes-kit
import Radium from 'radium'; import React from 'react'; import PropTypes from 'prop-types'; import Toggle from '../Toggle/Toggle'; @Radium class ToggleColumn extends React.Component { static propTypes = { isExpanded: PropTypes.bool, onClick: PropTypes.func, }; static contextTypes = { includedProper...
imports/client/ui/components/PlacesSearchBox/index.js
mordka/fl-events
import React from 'react' import PropTypes from 'prop-types' import PlacesAutocomplete, { geocodeByAddress, getLatLng } from 'react-places-autocomplete' import { ListGroup, ListGroupItem, Input } from 'reactstrap' class SearchBox extends React.Component { state = { address: '' } componentDidMount () { c...
src/components/Footer/Footer.react.js
RMCoder198/chat.susi.ai
import React, { Component } from 'react'; import susi from '../../images/susi-logo.svg'; import './Footer.css'; import { Link } from 'react-router-dom'; import urls from '../../utils/urls'; class Footer extends Component { constructor(props) { super(props); this.state = { video: false, }; } ren...
packages/material-ui-icons/src/PanoramaHorizontal.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M20 6.54v10.91c-2.6-.77-5.28-1.16-8-1.16-2.72 0-5.4.39-8 1.16V6.54c2.6.77 5.28 1.16 8 1.16 2.72.01 5.4-.38 8-1.16M21.43 4c-.1 0-.2.02-.31.06C18.18 5.16 15.09 5.7 12 5.7c-3.09 0-6.18-.5...
src/pages/contact.js
nennes/nenn_es
import React from 'react' import styled from 'styled-components' import FontAwesomeIcon from '@fortawesome/react-fontawesome' import faTwitter from '@fortawesome/fontawesome-free-brands/faTwitter' import faLinkedIn from '@fortawesome/fontawesome-free-brands/faLinkedin' import faQuora from '@fortawesome/fontawesome-free...
ajax/libs/forerunnerdb/1.3.644/fdb-legacy.min.js
brix/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
ajax/libs/rxjs/2.2.21/rx.all.compat.js
prosenjit-itobuz/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/components/Editor/Editor.js
miaoji/guojibackend
import React from 'react' import { Editor } from 'react-draft-wysiwyg' import styles from './Editor.less' import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css' const DraftEditor = (props) => { return (<Editor toolbarClassName={styles.toolbar} wrapperClassName={styles.wrapper} editorClassName={styles.editor} {.....
src/Label.js
zanjs/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Label = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'label', bsStyle: 'default' }; }, render() { let classes = this.getBsClassSe...
node_modules/material-ui/svg-icons/navigation/check.js
millerman86/CouponProject
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
src/containers/lookup.js
everywherebible/app
// @flow import React from 'react'; import {connect} from 'react-redux'; import type {Match} from 'react-router'; import {Route} from 'react-router-dom'; import {addRecent} from '../actions'; import type {Action} from '../actions'; import type {Reference} from '../data/model'; import {populateStoreWithRecents} from '...
client/components/PagesComponent.js
foxichu/reactgur
import React from 'react'; import {Alert} from 'react-bootstrap'; import HomePage from '../pages/HomePage.js'; import ee from '../Emitter.js'; export default class PagesComponent extends React.Component { constructor(props) { super(props); this.last_path = '/'; this.state = {alerts: APP_D...
ee/app/engagement-dashboard/client/components/EngagementDashboardPage.stories.js
Sing-Li/Rocket.Chat
import React from 'react'; import { EngagementDashboardPage } from './EngagementDashboardPage'; export default { title: 'admin/enterprise/engagement/EngagementDashboardPage', component: EngagementDashboardPage, decorators: [(fn) => <div children={fn()} style={{ height: '100vh' }} />], }; export const _default = (...
src/js/pages/Proposals/Leisure/PreviewPage.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import translate from '../../../i18n/Translate'; import TopNavBar from '../../../components/TopNavBar/TopNavBar.js'; import '../../../../scss/pages/proposals/leisure/preview.scss'; import CreatingProposalStore from "../../../stores/CreatingPr...
node_modules/forestjs/example/client/vendor/jqueryui/js/jquery-1.7.2.min.js
sean-laing/signal_gather
/*! 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/containers/Teacher/LessonListItem.js
llukasxx/school-organizer-front
import React from 'react' import { connect } from 'react-redux' import { lessonStudentsArraySelector, lessonDatesArraySelector } from '../../selectors/GroupsSelector' import LessonStudentList from '../../components/LessonList/LessonStudentList' import LessonDateList from '../../components/LessonList/LessonDateList' ...
src/components/SwatchesPicker.js
JedWatson/react-color
'use strict' /* @flow */ import React from 'react' import ReactCSS from 'reactcss' import merge from 'merge' import isPlainObject from 'lodash.isplainobject' import debounce from 'lodash.debounce' import color from '../helpers/color' import Swatches from './swatches/Swatches' class ColorPicker extends ReactCSS.Compo...
ui/src/js/gifts/RedeemGiftContent.js
Dica-Developer/weplantaforest
import axios from 'axios'; import counterpart from 'counterpart'; import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import IconButton from '../common/components/IconButton'; import Notification from '../common/components/Notification'; import { getConfig } from '../common/RestHelp...
src/Illuminate/Foundation/Console/Presets/react-stubs/Example.js
joecohens/framework
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; export default class Example extends Component { render() { return ( <div className="container"> <div className="row justify-content-center"> <div className="col-md-8"> ...
definitions/npm/redux-form_v5.x.x/flow_v0.22.x-v0.52.x/redux-form_v5.x.x.js
echenley/flow-typed
import React from 'react'; declare module 'redux-form' { declare type InputProps = { name: string, value: string | boolean, valid: boolean, invalid: boolean, dirty: boolean, pristine: boolean, active: boolean, touched: boolean, visited: boolean, autofilled: boolean, error?...
generators/app/templates/src/routes/Counter/components/Counter.js
chenkaixia/generator-zcy-front-starter-kit
import React from 'react' export const Counter = (props) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {props.counter}</h2> <button className='btn btn-default' onClick={props.increment}> Increment </button> {' '} <button className='btn btn-default' onClick={props.doubleAsync}> ...
assets/node_modules/react-easy-chart/modules/bar-chart/index.js
janta-devs/nyumbani
import React from 'react'; import { scaleBand as band, scaleLinear as linear } from 'd3-scale'; import { event as lastEvent, select, svg, time, scale, max } from 'd3'; import { createUniqueID, reduce, calculateMargin, calculateDomainRange, defaultStyles, getAxisStyles, createValueGenerator, ...
src/framework/general.js
apparena/app-arena-native-app
import React from "react"; import {StyleSheet, Text, View, ActivityIndicatorIOS} from "react-native"; import I18n from "react-native-i18n"; export var generalStyles = StyleSheet.create({ row: { backgroundColor: 'white', justifyContent: 'center', paddingHorizontal: 15, paddingVertic...
src/App.js
mamal72/dgkala-web
import React, { Component } from 'react'; import { Grid } from 'react-bootstrap'; import IncredibleOffersContainer from './IncredibleOffers/IncredibleOfferContainer'; import Navbar from './Navbar/Navbar'; class App extends Component { render() { const navigationMenuData = { header: 'دیجی‌کالا', item...
tests/baselines/reference/jsDeclarationsReactComponents.js
RyanCavanaugh/TypeScript
//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsReactComponents.ts] //// //// [jsDeclarationsReactComponents1.jsx] /// <reference path="/.lib/react16.d.ts" /> import React from "react"; import PropTypes from "prop-types" const TabbedShowLayout = ({ }) => { return ( <div /> ); }; Tab...
react-client/src/components/Bookmarks.js
lowtalkers/escape-reality
import React from 'react'; import ReactDOM from 'react-dom'; import { Link, withRouter } from 'react-router'; import $ from 'jquery'; class Bookmarks extends React.Component { constructor(props) { super(props); this.state = { bookmarks: [] } } getUserBookmarks() { let self = this; $.ge...
src/js/lib/jquery-1.8.0.min.js
sil-jterm-2015/sfwebchecks
/*! jQuery v@1.8.0 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==...
src/svg-icons/action/add-shopping-cart.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAddShoppingCart = (props) => ( <SvgIcon {...props}> <path d="M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-...
src/Contents.js
SwordSoul/swordsoul.github.com
import { Link } from 'react-router'; import React, { Component } from 'react'; import pages from './pages.js'; export default class Contents extends Component { constructor(props) { super(props); } render() { return ( <ul> { pages.map((page, i) => { const url = `/${p...
src/js/components/Video.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import classnames from 'classnames'; import CSSClassnames from '../utils/CSSClassnames'; import Props from '../utils/Props'; import...
react/features/conference/components/web/ConferenceInfo.js
jitsi/jitsi-meet
// @flow /* eslint-disable react/no-multi-comp */ import React, { Component } from 'react'; import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet'; import { connect } from '../../../base/redux'; import { E2EELabel } from '../../../e2ee'; import { RecordingLabel } from '../../../recording'; import Hig...