path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
modules/State.js
Sirlon/react-router
import React from 'react'; var { object } = React.PropTypes; /** * A mixin for components that need to know the path, routes, URL * params and query that are currently active. * * Example: * * import { State } from 'react-router'; * * var AboutLink = React.createClass({ * mixins: [ State ], * re...
addons/lib/vue/vue.runtime.esm.js
winiceo/pm_pmker
/*! * Vue.js v2.4.3 * (c) 2014-2017 Evan You * Released under the MIT License. */ /* */ // these helpers produces better vm code in JS engines due to their // explicitness and function inlining function isUndef (v) { return v === undefined || v === null } function isDef (v) { return v !== undefined && v !== ...
example2/js/index.js
hbarve1/react-native-examples
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class example2 extends Component { render() { return ( <View style={styles.container}...
assets/global/plugins/icheck/demo/js/jquery.js
wiliamdecosta/wajib-pajak-new
/*! * 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:...
app/comp/index.js
coldhurt/react-study
import React from 'react'; import Button from '../common/button'; const Index = React.createClass({ onClickButton: function(e){ alert(e.target); }, render: function(){ return <div> <Button clickFunc={this.onClickButton} btnText="Search" /> </div>; } }); export ...
app/src/HomePage/containers/Forgot.js
rmonnier/hypertube
import axios from 'axios'; import React, { Component } from 'react'; import InputForgot from '../components/InputForgot.js'; class Forgot extends Component { state = { password: '', success: false, error: [{ param: '', msg: '' }], } handleChange = ({ target: { name, value } }) => { this.setStat...
ajax/libs/js-data/1.5.10/js-data.js
xymostech/cdnjs
/*! * js-data * @version 1.5.10 - Homepage <http://www.js-data.io/> * @author Jason Dobry <jason.dobry@gmail.com> * @copyright (c) 2014-2015 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Robust framework-agnostic data store. */ (function webpackUniversalModu...
src/screen/Multimeter/components/ActionButtons.js
wavicles/fossasia-pslab-apps
import React from 'react'; import Button from '@material-ui/core/Button'; import { Pause as StopReadIcon, PlayCircleFilled as ReadIcon, RadioButtonChecked as RecordIcon, Stop as StopIcon, } from '@material-ui/icons'; import { withStyles } from '@material-ui/core/styles'; import { ActionButtonContainer } from '....
ajax/libs/react/0.12.0-rc1/react.js
likang/cdnjs
/** * React v0.12.0-rc1 */ !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.React=e()}}(function(){v...
assets/grocery_crud/themes/twitter-bootstrap/js/jquery-ui/jquery-ui-1.9.2.custom.js
dyarfi/dentsu.digital.ml
/*! jQuery UI - v1.9.2 - 2012-12-29 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.accordion.js, jquery.ui.autocomplete....
ajax/libs/mediaelement/2.1.7/jquery.js
SirenHound/cdnjs
/*! * jQuery JavaScript Library v1.6.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
ajax/libs/material-ui/4.9.4/esm/TableSortLabel/TableSortLabel.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import ArrowDownwardIcon from '../internal/svg-icons/ArrowDownward'; import withSt...
node_modules/react-icons/md/highlight-remove.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdHighlightRemove = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20 33.4q5.5 0 9.4-4t4-9.4-4-9.4-9.4-4-9.4 4-4 9.4 4 9.4 9.4 4z m0-30q6.9 0 11.8 4.8t4.8 11.8-4.8 11.8-11.8 4.8-11.8-4.8-4.8-11.8 4.8-11.8 11.8-4.8z m4.3 10l2...
docs/src/CodeExample.js
collinwu/react-bootstrap
import React from 'react'; export default class CodeExample extends React.Component { render() { return ( <pre className="cm-s-solarized cm-s-light"> <code> {this.props.codeText} </code> </pre> ); } componentDidMount() { if (CodeMirror === undefined) { ret...
Examples/UIExplorer/ProgressViewIOSExample.js
jaredly/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
packages/material-ui-icons/src/Subject.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment> , 'Subject');
app/containers/ChoixRelais/index.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { createStructuredSelector } from 'reselect'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { List, ListItem } from 'material-ui/List'; import CheckIcon from 'material-ui/svg-icons/action/do...
src/components/Education.js
gndx/gresume-react
import React from 'react'; const Education = (props) => { const myEducation = ( <div> {props.education.map((edu) => <div className='item' key={edu.degree}> <h3>{edu.degree} @ {edu.institution} <span>{edu.startDate} - {edu.endDate}</span></h3> <p>{edu.description}</p> </d...
src/components/pages/Homepage/TextSwitcher.js
ESTEBANMURUZABAL/bananaStore
import React from 'react'; export default class TextSwitcher extends React.Component { componentDidMount() { // Component styles require('./Homepage.scss'); } render() { return ( <div className="switcher-container"> {this.props.name} </div> ); } } TextSwitcher.propType...
client/utils/mock-react-router.js
wenhao/fixed-asset
import React from 'react' var stubRouterContext = (Component, props, stubs) => { function RouterStub() { } Object.assign(RouterStub, { makePath () {}, makeHref () {}, transitionTo () {}, replaceWith () {}, goBack () {}, getCurrentPath () {}, getCurrentRoutes () {}, getCurrentPathnam...
WebContent/common/js/common/jquery.dynatree.js
zhuyuanyan/PCCredit_TY
/*! **************************************************************************** jquery.dynatree.js Dynamic tree view control, with support for lazy loading of branches. Copyright (c) 2006-2013, Martin Wendt (http://wwWendt.de) Dual licensed under the MIT or GPL Version 2 licenses. http://code.google.com/p/...
src/browser/notfound/Page.react.js
AugustinLF/este
import Component from 'react-pure-render/component'; import Helmet from 'react-helmet'; import React from 'react'; import { FormattedMessage, defineMessages, injectIntl, intlShape } from 'react-intl'; import { Link } from 'react-router'; const messages = defineMessages({ title: { defaultMessage: 'Page Not Found'...
js/vendor/jquery-1.10.2.min.js
EPCCed/hpcuk-website
/*! 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...
step1/__tests__/index.android.js
soulmachine/react-native-starter-kit
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
ajax/libs/6to5/3.3.3/browser-polyfill.js
fatso83/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...
blueocean-material-icons/src/js/components/svg-icons/action/trending-flat.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionTrendingFlat = (props) => ( <SvgIcon {...props}> <path d="M22 12l-4-4v3H3v2h15v3z"/> </SvgIcon> ); ActionTrendingFlat.displayName = 'ActionTrendingFlat'; ActionTrendingFlat.muiName = 'SvgIcon'; export default ActionTrendingFlat;
srcjs/components/StatPanel.js
wlainer/react-redux-tutorial
import React from 'react'; export default ({bookLength, authorLength}) => <div className="panel panel-default clearfix"> <div className="footer"> <div className="row"> <div className="col-sm-6"> Books number: {bookLength} </div> <div className="col-sm-6"> ...
app/components/CatLearn/index.js
mhoffman/CatAppBrowser
/** * * YourNextApp * */ import React from 'react'; import PropTypes from 'prop-types'; import cachios from 'cachios'; import Helmet from 'react-helmet'; import { MenuItem } from 'material-ui/Menu'; import { InputLabel } from 'material-ui/Input'; import Select from 'material-ui/Select'; import { CircularProgress } fr...
public/js/.module-cache/06a1938ef8dbe654b3569a82d1e574d7905227dd.js
inquisive/wallet-manager
/** * @jsx React.DOM */ /* not used but thats how you can use touch events * */ //React.initializeTouchEvents(true); /** * we will use yes for true * we will use no for false * * React has some built ins that rely on state being true/false like classSet() * and these will not work with yes/no but can easily...
docs/src/app/components/pages/components/Divider/ExampleMenu.js
barakmitz/material-ui
import React from 'react'; import Divider from 'material-ui/Divider'; import {Menu, MenuItem} from 'material-ui/Menu'; const style = { // Without this, the menu overflows the CodeExample container. float: 'left', }; const DividerExampleMenu = () => ( <Menu desktop={true} style={style}> <MenuItem primaryText...
example/examples/PolygonCreator.js
carleryd/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LA...
src/js/components/icons/base/Magic.js
odedre/grommet-final
/** * @description Magic SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @prop...
src/__tests__/fixtures/flow-export-type.js
reactjs/react-docgen
/** * @flow */ import React, { Component } from 'react'; export type Props = { foo: string } /** * This is a Flow class component */ export default class FlowComponent extends Component<Props> { render() { return <h1>Hello world</h1>; } foo(a: string): string { return a; } bar(a: string): s...
GrooveBass/__tests__/index.ios.js
Groove-Bass/Groove-Bass-the-Repo
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 /> ); });
plugins/Hosting/js/components/hoststatus.js
NebulousLabs/New-Sia-UI
import PropTypes from 'prop-types' import React from 'react' const HostStatus = ({ connectabilitystatus, workingstatus }) => { if (connectabilitystatus === 'checking' && workingstatus === 'checking') { return ( <div className='host-status'> <i className='fa fa-refresh fa-spin inactive-icon' /> ...
lens-ui/app/components/QueryParamRowComponent.js
RaghavendraSingh/lens
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not...
app/javascript/mastodon/components/status.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import AvatarOverlay from './avatar_overlay'; import RelativeTimestamp from './relative_timestamp'; import DisplayName from './display_name'; import MediaGallery from...
front/src/components/speech/speech.js
ylerjen/pir-hat
import React from 'react'; export default class Speech extends React.Component { constructor (props) { super(props); var _self = this; this.state = {msg: ''}; this.isReconizing = false; this.recognition; var SpeechRecognition = SpeechRecognition || webkitSpe...
src/main.js
QuVideo/viva-react-template
import React from 'react' import ReactDOM from 'react-dom' import { Button } from 'antd' import app from './app.less' import title from './title.less' import antShowcase from './ant-showcase.less' const Title = ({ content }) => { return <h1 className={ title.normal }>{ content }</h1> } const AntShowcase = () => {...
packages/dante2/src/editor/components/popovers/image.js
michelson/Dante
import React from 'react' import Icons from '../icons' import {capitalize} from 'lodash' import { getSelection } from "../../utils/selection.js" import { getCurrentBlock } from '../../model/index.js' import { getRelativeParent } from "../../utils/selection.js" import {AnchorStyle} from '../../styled/menu' class Dante...
src/containers/routes.js
ngduc/react-setup
import React from 'react' import { Router, Route, IndexRoute } from 'react-router' import App from './App/App' import Home from './Home/Home' import About from './About/About' /** * The React Router routes for both the server and the client. */ module.exports = ( <Router> <Route path="/" component={App}> ...
src/ResponseView.js
tkawa/alps-console
import React from 'react'; class ResponseView extends React.Component { render() { return ( <div> <h4>Response</h4> <pre>{this.props.doc}</pre> </div> ); } } export default ResponseView;
src/components/GithubButton/GithubButton.js
YanlongLai/web-linter
import React from 'react'; const GithubButton = (props) => { const {user, repo, type, width, height, count, large} = props; let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`; if (count) src += '&count=true'; if (large) src += '&size=large'; return ( <iframe src=...
app/javascript/mastodon/features/account_timeline/components/header.js
summoners-riftodon/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import InnerHeader from '../../account/components/header'; import ActionBar from '../../account/components/action_bar'; import MissingIndicator from '../../../components/missing_indicator'; import ...
src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js
zenlambda/react
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react-co...
packages/material-ui-icons/src/SentimentVeryDissatisfiedRounded.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="M12 13.5c-2.03 0-3.8 1.11-4.75 2.75-.19.33.06.75.44.75h8.62c.38 0 .63-.42.44-.75-.95-1.64-2.72-2.75-4.75-2.75zM8.35 11.47l.53-.53.53.53c.29.2...
src/github.com/getlantern/lantern-ui/bower_components/cometd-js-jquery/jquery/jquery-1.9.1.js
lsk-kun/lantern
/*! * 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...
packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/SassModulesInclusion.js
facebookincubator/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'; import styles from './assets/sass-styles.module.sass'; import indexStyles from './assets/index.module.sass'; ...
src/shared/utils/__tests__/Transaction-test.js
soulcm/react
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react-co...
ajax/libs/clappr/0.0.3/clappr.js
algolia/cdnjs
require=(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]...
packages/material-ui-icons/src/WbCloudyOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12.01 6c2.61 0 4.89 1.86 5.4 4.43l.3 1.5 1.52.11c1.56.11 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3h-13c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.95 6 12.01 6m0-2C9.12 4 6.6...
assets/jqwidgets/demos/react/app/grid/grouping/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; import JqxInput from '../../../jqwidgets-react/react_jqxinput.js'; class App extends React.Component { componentDidMou...
ajax/libs/highcharts/4.2.6/highmaps.src.js
jonobr1/cdnjs
/** * @license Highmaps JS v4.2.6 (2016-08-02) * * (c) 2011-2016 Torstein Honsi * * License: www.highcharts.com/license */ /*eslint no-unused-vars: 0 */ // @todo: Not needed in HC5 (function (root, factory) { if (typeof module === 'object' && module.exports) { module.exports = root.document ? ...
docs/src/pages/components/dividers/ListDividers.js
allanalexandre/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; import Divider from '@material-ui/core/Divider'; const useStyles = makeStyles(theme ...
app/components/Button/index.js
mxstbr/react-boilerplate-site
/** * * Button.react.js * * A common button, if you pass it a prop "route" it'll render a link to a react-router route * otherwise it'll render a link with an onclick */ import React from 'react'; import styles from './styles.css'; import Icon from 'Icon' function Button(props) { let classNames = [ styles.bu...
app/containers/AddTodoScene.js
live106/todo-for-react-native
import React, { Component } from 'react'; import { View, ScrollView, Button, } from 'react-native'; import { connect } from 'react-redux'; import { themable } from '../themes'; import { addTodo } from '../actions'; import AddTodo from '../components/AddTodo'; class NewTodo extends Component { constructor(props...
client/node_modules/uu5g03/doc/main/client/src/common/no-script-and-unsupported-browser.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import UU5 from 'uu5'; import Data from '../data/app-config-data.js'; import Breadcrumbs from '../bricks/breadcrumbs.js'; export default React.createClass({ mixins: [UU5.Common.BaseMixin, UU5.Common.ElementaryMixin, UU5.Common.VucMixin], statics: { tagName: 'UU5.Doc.NoScriptAndUnsu...
app/components/presentation/Navbar.js
PHPiotr/phpiotr4
import React from 'react'; import {Link, withRouter} from 'react-router-dom'; import {AppBar, Drawer, Typography, Toolbar} from 'material-ui'; import {toggleIsDrawerOpen} from '../../actions/app/appActions'; import List, {ListItem, ListItemIcon} from 'material-ui/List'; import {connect} from 'react-redux'; import {with...
packages/react-broadcast/src/hooks/use-flag-variation/use-flag-variation.spec.js
tdeekens/flopflip
import { renderWithAdapter, screen } from '@flopflip/test-utils'; import React from 'react'; import Configure from '../../components/configure'; import useFlagVariation from './use-flag-variation'; const render = (TestComponent) => renderWithAdapter(TestComponent, { components: { ConfigureFlopFlip: Configure },...
client/app.js
vrde/webpack-test
'use strict'; import React from 'react'; import Cat from './cat'; React.render( <Cat name="Shmui"/>, document.body );
node_modules/material-ui/svg-icons/action/dns.js
cstapler/destinationGraduation
'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...
test/PanelSpec.js
apkiernan/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react-addons-test-utils'; import ReactDOM from 'react-dom'; import Panel from '../src/Panel'; import Table from '../src/Table'; describe('<Panel>', () => { it('Should have class and body', () => { const instance = ReactTestUtils.renderIntoDocument( <P...
app/javascript/mastodon/features/compose/components/character_counter.js
kibousoft/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { length } from 'stringz'; export default class CharacterCounter extends React.PureComponent { static propTypes = { text: PropTypes.string.isRequired, max: PropTypes.number.isRequired, }; checkRemainingText (diff) { if (diff < 0)...
packages/bootstrap-shell/demo/src/index.js
TarikHuber/react-most-wanted
import React from 'react' import { render } from 'react-dom' import App from '../../cra-template-bs/template/src/App' render(<App />, document.querySelector('#demo'))
ui/src/components/AutoComplete2/Options/ModelOptionList/ModelOptionList.js
LearningLocker/learninglocker
import React from 'react'; import { Map } from 'immutable'; import { compose, withProps, withState } from 'recompose'; import { mapValues } from 'lodash'; import { withModels, withModelCount } from 'ui/utils/hocs'; import EditableOption from 'ui/components/AutoComplete2/Option/EditableOption'; import OptionListItem fro...
node_modules/react-tools/src/core/__tests__/ReactStateSetters-test.js
davyengone/meetup.demo
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react-co...
__tests__/components/detailedChit-test.js
paramadeep/chit
import 'react-native'; import React from 'react'; import {fireEvent, render} from '@testing-library/react-native'; import DetailedChit from '../../src/components/DetailedChit'; import {chitContext, chits} from '../../testData/chitContext'; const renderChit = chit => { return render(<DetailedChit route={{params: {chi...
src/svg-icons/notification/sd-card.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSdCard = (props) => ( <SvgIcon {...props}> <path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/> </SvgIcon> ); NotificationS...
src/entypo/Swap.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Swap'; let EntypoSwap = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M14,5H4V3L0,6.5L4,10V8h10V5z M20,13.5L16,10v2H6v3h10v2L20,13.5z"/> </EntypoIcon> ); export default E...
htdocs/scripts/jquery.min.js
avangate/api-cart-demo-php
/*! jQuery v1.7.1 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 cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde...
packages/material-ui-icons/src/SignalWifiOffTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M23.64 7c-.45-.34-4.93-4-11.64-4-1.32 0-2.55.14-3.69.38L18.43 13.5 23.64 7zM3.41 1.31L2 2.72l2.05 2.05C1.91 5.76.59 6.82.36 7L12 21.5l3.91-4.87 3.32 3.32 1.41-1.41L3.41 1.31z" /> , 'SignalWifiOffTwoTo...
app/admin/containers/post/SubmitPostPage.js
in42/internship-portal
import React from 'react'; import axios from 'axios'; import _ from 'lodash'; import PropTypes from 'prop-types'; import SubmitPostForm from '../../components/post/SubmitPostForm'; import Auth from '../../../auth/modules/Auth'; class SubmitPostPage extends React.Component { constructor(props) { super(props); ...
src/components/Win/Win.js
zsu13579/whatsgoinontonight
/** * 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...
wail-ui/components/heritrix/heritrixActionMenu.js
N0taN3rd/wail
import React from 'react' import PropTypes from 'prop-types' import { grey400 } from 'material-ui/styles/colors' import IconButton from 'material-ui/IconButton' import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert' import IconMenu from 'material-ui/IconMenu' import MenuItem from 'material-ui/MenuItem' i...
node_modules/react-dom/lib/Transaction.js
myapos/ClientManagerSpringBoot
/** * 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 st...
src/components/site/ItemDisplay.js
IAmPicard/StarTrekTimelinesSpreadsheet
import React from 'react' import STTTools from './api'; import { CONFIG } from '../../api'; export class ItemDisplay extends React.Component { render() { let borderWidth = Math.ceil(this.props.size / 34); let starSize = Math.floor(this.props.size / 6); let bottomStar = Math.floor(this.prop...
packages/react-error-overlay/src/components/Header.js
lolaent/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. */ /* @flow */ import React from 'react'; import { red } from '../styles'; const headerStyle = { fontSize: '2em', fontFamily: 'sans-se...
packages/material-ui-icons/src/AccountTreeTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3h7zM7 9H4V5h3v4zm10 6h3v4h-3v-4zm0-10h3v4h-3V5z" /><path d="M7 5v4H4V5h3M20 5v4h-3V5h3M20 15v4h-3v-4h3" opacity=".3" /></React.Frag...
react-js/redux-blog/src/index.js
vanyaland/react-demos
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 promise from 'redux-promise'; import reducers from './reducers'; import routes from './routes'; const...
src/components/EditionSwitcher.js
harrygreen/parlay
import React from 'react'; import { switchEditionParent } from '../actions/GlobalActions'; const EditionSwitcher = React.createClass({ propTypes: { dispatch: React.PropTypes.func.isRequired }, getAvailableOptions() { // grab all options let allOptions = this.getAllEditions(); // filter out unavailable op...
Tests/Components/RoundedButtonTest.js
infinitered/ChainReactApp
// // https://github.com/airbnb/enzyme/blob/master/docs/api/shallow.md import test from 'ava' // import React from 'react' // import RoundedButton from '../../App/Components/RoundedButton' // import { shallow } from 'enzyme' // // Basic wrapper // const wrapper = shallow(<RoundedButton onPress={() => {}} text='howdy' ...
envkey-react/src/components/env_manager/sub_env_grid.js
envkey/envkey-app
import React from 'react' import R from 'ramda' import h from "lib/ui/hyperscript_with_helpers" import EnvGrid from './env_grid' import SubEnvFormEntryCell from './env_cell/sub_env_form_entry_cell' import {allEntries} from 'lib/env/query' export default class SubEnvGrid extends React.Component { constructor(props){ ...
app/containers/App.js
guillaumearm/todolist
import React from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import TodoList from '../components/TodoList' import * as TodosActions from '../actions/Todos' const App = props => { return <TodoList actions={props.actions} todos={props.todos} >Redux todolist</TodoLi...
files/polymer/0.5.5/polymer.js
as-com/jsdelivr
/** * @license * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be f...
node_modules/material-ui/svg-icons/content/reply.js
Jbeagle/writeItEasy2.0
'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...
Examples/UIExplorer/AlertExample.js
NZAOM/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
dashboard-ui/app/components/analytics/storageAnalytics.js
CloudBoost/cloudboost
/** * Created by Darkstar on 11/29/2016. */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Chart from 'chart.js'; export class StorageAnalytics extends React.Component { static propTypes = { analyticsStorage: PropTypes.shape({ usage: PropTypes...
packages/material-ui-icons/src/CenterFocusWeak.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0...
src/index.js
jmikrut/keen-2017
import React from 'react'; import { hydrate, render } from 'react-dom'; import { Provider } from 'react-redux'; import { BrowserRouter as Router } from 'react-router-dom'; import store from './store'; import App from './components/App'; const rootElement = document.getElementById('root'); const Index = () => { retu...
src/components/tweetToolbar.js
philly-d/chirp-for-twitter
import React from 'react' import classNames from 'classnames' import { getTweetLength } from 'twitter-text' function getCharCount(text, hasScreenshots) { if (hasScreenshots) { text = text.trim() + ' http://pic.twitter.com' } return getTweetLength(text) } const TweetToolbar = (props) => { const...
src/pages/Forms/RegularForms/index.js
JSLancerTeam/crystal-dashboard
import React from 'react'; import StackedForm from './StackedForm'; import HorizontalForm from './HorizontalForm'; import FormElements from './FormElements'; const RegularForms = () => ( <div> <div className="row"> <div className="col-md-6"> <StackedForm onSubmit={values => alert('Enter values: ' +...
_site/js/jquery.js
Ivonneg/BenefitSolution
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
src/PROCERGS/LoginCidadao/CoreBundle/Resources/public/js/jquery/1.11.0/jquery.min.js
hacklabr/login-cidadao
/*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
packages/material-ui-icons/src/Group.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3...
src/main/resources/code/react/Apps/ManageRadars/components/TeamMembers/NewTeamMemberRow.js
artieac/technologyradar
'use strict' import React from 'react'; import ReactDOM from 'react-dom'; import Reflux from 'reflux'; import createReactClass from 'create-react-class'; import { connect } from "react-redux"; import { TeamRepository } from '../../../../Repositories/TeamRepository'; import { addTeamsToState } from '../../redux/TeamRedu...
ajax/libs/react/15.0.2/react-dom-server.js
kennynaoh/cdnjs
/** * ReactDOMServer v15.0.2 * * 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...
src/icons/DriveEtaIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class DriveEtaIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M37.84 10.02C37.43 8.84 36.31 8 35 8H13c-1.31 0-2.43.84-2.84 2.02L6 22v16c0 1.1.9 2 2 2h2c1.11 0 2-.9 2-2...
src/components/book/BookListDetail.js
vlcik/booky
import React from 'react'; import { Link } from 'react-router-dom'; class BookListDetail extends React.Component { render() { const { id, name, author, genre, status } = this.props.book; return ( <tr> <td> {id} </td> <td> <Link to={'/books/' + id}> ...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
wolfzero1314/ReactDemo
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
node_modules/react-router/es/MemoryRouter.js
bburnett-cpf/react-intro
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...