path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
app/containers/Home/index.js
audoralc/pyxis
/* * * Home * */ import React from 'react'; import Helmet from 'react-helmet'; import HomeHeadingContainer from 'components/HomeHeadingContainer'; import ExampleBoxes from 'components/ExampleBoxes'; import TierSystem from 'components/TierSystem'; import HowItWorks from 'components/HowItWorks'; import HomeSignUpRi...
src/routes.js
IgorKilipenko/KTS_React
/** * 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 React from 'react'; import Router from 'react-routi...
ajax/libs/material-ui/5.0.0-alpha.1/es/TablePagination/TablePaginationActions.min.js
cdnjs/cdnjs
import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import*as React from"react";import PropTypes from"prop-types";import KeyboardArrowLeft from"../internal/svg-icons/KeyboardArrowLeft";import KeyboardArrowRight from"...
tools/contributor/dashboard-app/client/src/components/SearchOption.js
raisedadead/FreeCodeCamp
import React from 'react'; const SearchOption = ({ children, value, selectedOption, onOptionChange }) => ( <label> <input name="searchType" type="radio" value={value} checked={selectedOption === value} onChange={onOptionChange} /> {children} </label> ); export default Sea...
src/index.js
Pennnn/gallery-by-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
app/webpack/observations/show/containers/copyright_container.js
pleary/inaturalist
import { connect } from "react-redux"; import Copyright from "../components/copyright"; import { updateSession } from "../ducks/users"; function mapStateToProps( state ) { return { observation: state.observation, config: state.config }; } function mapDispatchToProps( dispatch ) { return { updateSess...
ajax/libs/yasqe/1.3.2/yasqe.min.js
jaslernl/cdnjs
!function(e){if("object"==typeof exports)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.YASQE=e()}}(function(){var e;return function t(e,i,r){function n(s,a){if(!i[s]){if(!...
app/react-icons/fa/hand-scissors-o.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaHandScissorsO extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m23.9 37.1h-3.9q-3.6 0-5-3.1-0.6-1.1-0.6-2.3v-0.1q-1.3-0.7-2.2-2t-0.8-...
src/views/HomeView/views/Shop/Shop.js
alfonsoperez/tessa
import React from 'react'; export default class Shop extends React.Component<void, Props, void> { render () { return ( <div className='row'> <p>Coming soon...</p> </div> ); } }
ajax/libs/video.js/4.12.5/video.dev.js
mscharl/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. * ...
src/svg-icons/image/filter-drama.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterDrama = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.61 5.64 5.36 8.04 2.35 8.36 0 10.9 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4...
auto-scroller/components/default/radio.js
mathisonian/idyll
import React from 'react'; const ReactDOM = require('react-dom'); let id = 0; class Radio extends React.PureComponent { constructor(props) { super(props); this.onChange = this.onChange.bind(this); this.id = id++; } onChange(e) { this.props.updateProps({ value: e.target.value }); } render() ...
admin/client/Signin/components/UserInfo.js
jacargentina/keystone
import React from 'react'; import { Button } from 'elemental'; const UserInfo = function (props) { // Cannot return "null" from stateless components if (!props.user) return <span />; return ( <div className="auth-box__col"> <p>Hi {props.user.name.first},</p> <p>You're already signed in.</p> {/* If the us...
imports/ui/hocs/withLoadable/LoadingComponent.js
ShinyLeee/meteor-album-app
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import ErrorLayout from '/imports/ui/layouts/ErrorLayout'; import withModules from '../withModules'; class LoadingComponent extends Component { static propTypes = { modules: PropTypes.object.isRequired, error: PropTypes.object, ...
packages/material-ui-icons/src/LastPageTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" opacity=".87" /><path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6-1.41 1.41zM16 6h2v12h-2V6z" /></React.Fragment> , 'LastPageTwoTone');
src/svg-icons/hardware/watch.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareWatch = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-2.54-1.19-4.81-3.04-6.27L16 0H8l-.95 5.73C5.19 7.19 4 9.45 4 12s1.19 4.81 3.05 6.27L8 24h8l.96-5.73C18.81 16.81 20 14.54 20 12zM6 12c0-3.31 2....
components/MD.js
sunday-school/sundayschool.rocks
import React from 'react' import ReactMarkdown from 'react-markdown' const MD = string => <ReactMarkdown className='lh-copy measure' source={string} /> export default MD
packages/material-ui-icons/src/SignalWifi1BarTwoTone.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 fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" /><path d="M6.67 14.86L12 21.49...
app/containers/NotebookGraph/index.js
Zurico/t7
/* * WorkSpacePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import Helmet from 'react-helmet'; import styles from './styles.css'; import { connect } from 'react-redux'; import { mouseTrap } from 'react-mousetrap'; import { createStructuredSelector } from 'res...
ajax/libs/babel-core/4.4.5/browser.min.js
AMoo-Miki/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.babel=e()}}(function(){var e,n,l;return function t(e,...
ajax/libs/jquery.fancytree/2.9.0/jquery.fancytree.min.js
JimBobSquarePants/cdnjs
/*! * jquery.fancytree.js * Dynamic tree view control, with support for lazy loading of branches. * https://github.com/mar10/fancytree/ * * Copyright (c) 2008-2015, Martin Wendt (http://wwWendt.de) * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * * @version 2.9.0 * @dat...
src/components/Common/Navigation.js
diogoazevedos/isomorphic
import React, { Component } from 'react' import { Link } from 'react-router' import AuthUtil from '../../utils/Auth' class Navigation extends Component { logout = (event) => { event.preventDefault() AuthUtil.logOut() } render() { return ( <nav className="navbar navbar-inverse navbar-fixed-top"...
electron/app/containers/EditorView.js
zindlerb/static
import React from 'react'; import classnames from 'classnames'; import EditorRenderer from './EditorRenderer'; import Sidebar from '../components/Sidebar'; import AttributesContainer from './AttributesContainer'; import EditorLeftPanel from './EditorLeftPanel'; import OpenSiteModal from './OpenSiteModal'; const Edito...
src/parser/deathknight/unholy/modules/features/VirulentPlagueEfficiency.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Enemies from 'parser/shared/modules/Enemies'; import Analyzer from 'parser/core/Analyzer'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/Statistic...
src/components/ArticleItemTableView.js
jser/trends
// LICENSE : MIT "use strict"; import React from "react" import {Table,unsafe} from "reactable" import moment from "moment"; export default class ArticleItemTableView extends React.Component { _calc(data) { if (!data) { return []; } let keywords = Object.keys(data); if (k...
lesson-6/todos/src/components/NewNoteModal.js
msd-code-academy/lessons
import React from 'react' import Modal from 'react-modal' import { connect } from 'react-redux' import * as shortId from 'shortid' import '../styles/NewNoteModal.css' import { actionTypes } from '../Reducer' class NewNoteModal extends React.Component { constructor() { super() this.state = { modalIsOp...
public/js/jquery.min.js
gaurav35/oxford
/*! 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...
test/components/SocialMediaComponentTest.js
cised-ca/se-dir-frontend-react
/* eslint-env node, mocha */ /* global expect */ /* eslint no-console: 0 */ 'use strict'; import React from 'react'; import { shallow } from 'enzyme'; import { SocialMediaComponent } from 'components/SocialMediaComponent.js'; describe('SocialMediaComponent', () => { let component; var enterpriseProp = { 'fa...
app/javascript/mastodon/features/getting_started/index.js
Craftodon/Craftodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnLink from '../ui/components/column_link'; import ColumnSubheading from '../ui/components/column_subheading'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import Prop...
src/parser/mage/arcane/modules/features/TimeAnomaly.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; const MANA_THRESHOLD = 0.70; class TimeAnomaly exte...
modules/jaggery-apps/admin-web/src/site/themes/default/lib/jquery-1.7.1.min.js
thilinicooray/product-apim
/*! 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...
src/parser/druid/restoration/modules/talents/Photosynthesis.js
FaideWW/WoWAnalyzer
import React from 'react'; import StatisticBox from 'interface/others/StatisticBox'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import Combatants from 'parser/shared/modules/Combatants';...
files/rxjs/2.4.3/rx.lite.extras.compat.js
cedricbousmanne/jsdelivr
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'unde...
node_modules/react-router/es/Link.js
vallihe/wizarddemo
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
tests/routes/Counter/components/Counter.spec.js
Clothet/web
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...
webpack.config.js
antoinejaussoin/react-vr-player
var path = require('path'); var webpack = require('webpack'); module.exports = { context: path.join(__dirname), entry: './source/index.js', devtool: 'source-map', output: { path: path.resolve(__dirname), filename: 'react-vr-player.js', libraryTarget: 'umd', libary:'react...
ajax/libs/6to5/2.1.0/browser-polyfill.js
DDMAL/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...
ajax/libs/react/0.3.3/JSXTransformer.js
akiran/cdnjs
/** * JSXTransformer v0.3.3 */ (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...
src/svg-icons/image/landscape.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLandscape = (props) => ( <SvgIcon {...props}> <path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/> </SvgIcon> ); ImageLandscape = pure(ImageLandscape); ImageLandscape.displayName...
exampleApp/index.js
puredazzle/react-native-simple-picker
/** * Sample React Native App * https://github.com/facebook/react-native */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, } from 'react-native'; import SimplePicker from 'react-native-simple-picker'; const styles = StyleSheet.create({ container: { flex: 1, ...
src/components/d3componentsv2/PillPoint.js
nbuechler/ample-affect-exhibit
import React from 'react'; import ReactDOM from 'react-dom'; import d3 from 'd3'; import _ from 'underscore'; export default class PillPoint extends React.Component { constructor (props) { super(props); this.state = { "success": "" }; } _handleOver(d) { let graphWidth = d.availableWidth; ...
src/svg-icons/notification/enhanced-encryption.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationEnhancedEncryption = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3....
src/containers/header.js
fughz/react-redux-example
import React, { Component, PropTypes } from 'react' import { connect } from 'react-redux' import TitleBar from '../components/title-bar'; import SideBar from '../components/side-bar'; class Header extends Component { constructor(props) { super(props); this.state = { isOpenSideBar: false }; } ...
src/components/category.js
MarcoPolo/emoji-mart
import React from 'react' import frequently from '../utils/frequently' import { Emoji } from '.' export default class Category extends React.Component { componentDidMount() { this.container = this.refs.container this.label = this.refs.label this.parent = this.container.parentNode this.margin = 0 ...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
KevinKhieu/PeaceDashboard
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
ui/src/main/js/components/UpdateDiff.js
medallia/aurora
import React from 'react'; import Diff from 'components/Diff'; import PanelGroup, { Container, StandardPanelTitle } from 'components/Layout'; import { instanceRangeToString } from 'utils/Task'; export default class UpdateDiff extends React.Component { constructor(props) { super(props); this.state = {groupI...
client/app/Core/Footer/index.js
puja1234/DTA
import React from 'react'; class Footer extends React.Component { render() { return ( <div className="footer"> <div className="pull-right"> 10GB of <strong>250GB</strong> Free. </div> <div> <strong>Copyright...
src/components/notfoundpage.js
ateixeira/andreteixeira.info
import React from 'react'; import { Link } from 'react-router'; module.exports = React.createClass({ // RENDER render: function() { return ( <div className="not-found"> <h1>404</h1> <h2>Page not found!</h2> <p> <Link to="/">Go back to the ma...
ajax/libs/js-data/1.0.0-alpha.5-2/js-data.js
koggdal/cdnjs
/** * @author Jason Dobry <jason.dobry@gmail.com> * @file js-data.js * @version 1.0.0-alpha.5-2 - Homepage <http://www.js-data.io/> * @copyright (c) 2014 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Data store. */ !function(e){if("object"==typeof exports&&"undefined...
docs-ui/components/contextData.stories.js
mvaled/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; // import {action} from '@storybook/addon-actions'; import {withInfo} from '@storybook/addon-info'; import ContextData from 'app/components/contextData'; storiesOf('UI|ContextData', module).add( 'strings', withInfo('Default')(() => <ContextDat...
examples/composition/src/index.js
clarus/redux-ship
// @flow import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import Index from './view'; import './index.css'; import store from './store'; import {Provider} from 'react-redux'; import registerServiceWorker from './registerServiceWorker'; const root = document.getElementById('root'); ...
src/svg-icons/action/lock.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLock = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-....
src/svg-icons/image/photo-size-select-actual.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoSizeSelectActual = (props) => ( <SvgIcon {...props}> <path d="M21 3H3C2 3 1 4 1 5v14c0 1.1.9 2 2 2h18c1 0 2-1 2-2V5c0-1-1-2-2-2zM5 17l3.5-4.5 2.5 3.01L14.5 11l4.5 6H5z"/> </SvgIcon> ); ImagePhotoSiz...
pic_files/19wPxMMj5rI.js
shivani9596/shivani9596.github.io
/*!CK:3817791547!*//*1445226327,*/ if (self.CavalryLogger) { CavalryLogger.start_js(["SGxWG"]); } __d("ProfileDOMID",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ABOVE_HEADER_TIMELINE:"pagelet_above_header_timeline",ABOVE_HEADER_TIMELINE_PLACEHOLDER:"above_header_timeline_placeholder",CO...
app/scripts/components/reaction-picker.js
caleb531/connect-four
import m from 'mithril'; class ReactionPickerComponent { oninit({ attrs: { game, session } }) { this.game = game; this.session = session; } sendReaction(reaction) { this.session.emit('send-reaction', { reaction }); } view() { return m('div#reaction-picker', ReactionPickerComponent.availabl...
hello_world/js/hello_world_in_reactjs/src/index.js
hacktoberfest17/programming
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/js/practice/App_5.js
mirandagithub/Egg
import React from 'react'; //import MessageBox from './components/MessageBox'; var App = React.createClass( { getInitialState: function(){ return { txt: '', id: 0 }; }, updateTxt: function(e){ this.setState({txt: e.target.value}); }, render: function(){ ...
blueocean-material-icons/src/js/components/svg-icons/maps/directions-bus.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsDirectionsBus = (props) => ( <SvgIcon {...props}> <path d="M4 16c0 .88.39 1.67 1 2.22V20c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h8v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1.78c.61-.55 1-1.34 1-2.22V6c0-3.5-3.58-4-8-4s-8 .5-8 4v10zm3.5 1c-.83 0-1.5...
src/client/components/app/modals/CollectionRename-with-ES6-mixin.js
terebentina/mongo-syllabus
import React, { Component } from 'react'; import mix from 'client/utils/mixins'; import ModalMixin from '../mixins/ModalMixin'; class CollectionRename extends mix(Component).with(ModalMixin) { //static propTypes = { //}; modalContent() { return ( <div className="modal create__entity"> modal co...
node_modules/rc-time-picker/es/Combobox.js
ZSMingNB/react-news
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React, { Component } from 'react'; im...
src/main.js
flintovich/category-todos
import ReactDOM from 'react-dom'; import React from 'react'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import store from './store'; import App from './containers/App'; import AddTodo from './components/AddTodo'; import AddCategory from './compon...
test/Select.spec.js
itsolutions-dev/react-styled-ui
import React from 'react'; import ReactTestRenderer from 'react-test-renderer'; import 'styled-components-test-utils/lib/jest'; import theme from '../src/theme'; import Select from '../src/Select'; import * as utils from '../src/utils/'; describe('Select', () => { test('should render a Select', () => { const com...
app/index.js
simongfxu/sync-editor
import React from 'react' import {render} from 'react-dom' import {Provider} from 'react-redux' import {Router, hashHistory} from 'react-router' import {syncHistoryWithStore} from 'react-router-redux' import routes from './routes' import configureStore from './store/configureStore' import initialState from './helpers/i...
src/components/author/List.js
maplelinyuan/react-practice
/** * Created by Linfe on 2017/5/26. */ import React from 'react' import PropTypes from 'prop-types' import { Card, Button } from 'rctui' import queryString from 'query-string' import TableList from './TableList' function List(props) { const { history } = props // 从queryString中获取分页信息,格式为 ?page=x&size=x ...
renderer/pages/config.js
wulkano/kap
import React from 'react'; import {Provider} from 'unstated'; import {ipcRenderer as ipc} from 'electron-better-ipc'; import {ConfigContainer} from '../containers'; import Config from '../components/config'; import WindowHeader from '../components/window-header'; const configContainer = new ConfigContainer(); export...
src/components/HeaderMenu.js
chjourdain/react-redux-ref
import React from 'react' class HeaderMenu extends React.Component { staticRender() { return ( <div className="navbar-header"> <button data-target=".navbar-collapse" data-toggle="collapse" className="navbar-toggle" type="button"> <span className="icon-bar"><...
ajax/libs/forerunnerdb/1.3.393/fdb-core+persist.js
dlueth/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...
postgraphiql/.eslintrc.js
calebmer/postgraphql
module.exports = { extends: ['eslint:recommended', 'react-app', 'prettier', 'prettier/react'], rules: {}, };
test/components/Counter.spec.js
daskinnyman/electron-QA
import { spy } from 'sinon'; import React from 'react'; import { shallow } from 'enzyme'; import { BrowserRouter as Router } from 'react-router-dom'; import renderer from 'react-test-renderer'; import Counter from '../../app/components/Counter'; function setup() { const actions = { increment: spy(), incremen...
ui/src/components/Label.js
sgeisbacher/photogallery-api
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class Label extends Component { constructor(props) { super(props) this.state = {} } componentDidMount() { fetch(`/labels/${this.props.match.params.id}`) .then((resp) => resp.json()) .then((label) => this.s...
client/app/scripts/components/node-details/node-details-control-button.js
alban/scope
import React from 'react'; import { connect } from 'react-redux'; import { trackAnalyticsEvent } from '../../utils/tracking-utils'; import { doControl } from '../../actions/app-actions'; class NodeDetailsControlButton extends React.Component { constructor(props, context) { super(props, context); this.handle...
ajax/libs/react-instantsearch/5.0.0/Dom.js
extend1994/cdnjs
/*! ReactInstantSearch 5.0.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
public/app/components/common/stock-lookup-panel.js
vincent-tr/mylife-wine
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import * as mui from 'material-ui'; import base from '../base/index'; import icons from '../icons'; import common from '../common/index'; import tabStyles from '../base/tab-styles'; const styles = { container: { display: 'flex', fl...
src/components/icons/index.js
ChronoBank/ChronoMint
/** * Copyright 2017–2019, LaborX PTY * Licensed under the AGPL Version 3 license. */ import React from 'react' const Icons = { get (name) { switch (name) { case 'notices.error.icon': case 'notices.arbitrary.icon': return <i className='material-icons'>error_outline</i> case 'notices.approva...
app/client/containers/DeviceAdd/index.js
JodusNodus/syncthing-tray
import { PropTypes, Component } from 'react' import h from 'react-hyperscript' import { connect } from 'react-redux' import Modal from 'client/components/Modal' import QrReader from 'react-qr-reader' import DeviceEdit from 'client/containers/DeviceEdit' import Header from 'client/components/Header' import { hideQrCod...
src/svg-icons/social/people.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPeople = (props) => ( <SvgIcon {...props}> <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....
app/pages/youth-privacy-policy.spec.js
zooniverse/Panoptes-Front-End
import React from 'react'; import assert from 'assert'; import { shallow } from 'enzyme'; import YouthPrivacyPolicy from './youth-privacy-policy'; describe('YouthPrivacyPolicy', function () { let wrapper; before(function () { wrapper = shallow(<YouthPrivacyPolicy />); }); it('renders without crashing', f...
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js
mangomint/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import load from 'absoluteLoad'; export default class ext...
node_modules/react-icons/io/ios-bookmarks-outline.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoIosBookmarksOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m33.6 5c1.5 0 2.6 1 2.6 2.5v22.3c0 1.5-1.1 2.7-2.6 2.7h-11.2s-1.9 0.3-1.9 1.5v1h-1.3v-1c0-1.2-0.9-1.5-1.9-1.5h-11.2c-1.5 0-2.6-1.2-2.6-2.7v-22.3c0-1.5 1.1...
src/components/Header/Header.js
Edmondton/weather-forecasts
import React from 'react'; import {IndexLink, Link} from 'react-router'; import classes from './Header.scss'; export const Header = () => ( <div> <h1>Weather Forecasts</h1> <IndexLink to="/" activeClassName={classes.activeRoute}> Home </IndexLink> {' · '} <Link t...
src/containers/Wallet/Card.js
ChluNetwork/chlu-demo
import React from 'react' import { withStyles, Card } from '@material-ui/core'; const style = { root: { margin: '30px' } } function WalletCard ({ children, ...props }) { return <Card {...props}>{children}</Card> } export default withStyles(style)(WalletCard)
src/index.js
jckfa/jackf.me
import React from 'react' import { render } from 'react-snapshot' import App from './App' import './components/config/global' import registerServiceWorker from './registerServiceWorker' render( <App />, document.querySelector('#root') ) registerServiceWorker()
server/sonar-web/src/main/js/apps/permissions/shared/components/GroupIcon.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
src/SpotifyMessage/SpotifyMessage.js
Detaysoft/react-chat-elements
import React from 'react'; import './SpotifyMessage.css'; function SpotifyMessage(props) { const toUrl = () => { var formBody = []; var data = { uri: props.uri, theme: props.theme, view: props.view, }; for (var property in data) { var encodedKey = encodeURIComponent(property)...
src/parser/shaman/elemental/modules/talents/Ascendance.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import EnemyInstances from 'parser/shared/modules/EnemyInstances'; import StatisticBox, { STATISTIC_ORD...
modules/gui/src/app/home/body/process/recipe/ccdc/panels/ccdcToolbar.js
openforis/sepal
import {RecipeActions} from '../ccdcRecipe' import {Retrieve} from 'app/home/body/process/recipe/ccdc/panels/retrieve/retrieve' import {Toolbar} from 'widget/toolbar/toolbar' import {compose} from 'compose' import {msg} from 'translate' import {selectFrom} from 'stateUtils' import {setInitialized} from 'app/home/body/p...
src/validateComponent.js
jfairbank/react-revalidate
import React from 'react'; import assign from 'object-assign'; import getDisplayName from 'react-display-name'; export default function validateComponent(validate) { return (Component) => { class ValidatedComponent extends React.Component { constructor(props) { super(props); this.validatePr...
ajax/libs/video.js/4.8.5/video.dev.js
jacoborus/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. * ...
src/components/CaptureReportTemplate/CaptureReportTemplate.js
RegOpz/RegOpzWebApp
import React, { Component } from 'react'; import { Modal } from 'react-bootstrap'; import { Field, reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import { bindActionCreators, dispatch } from 'redux'; import SubscriberReportTemplate from './SubscriberReportTemplate'; import RepositoryReportTemplat...
src/Radio/RadioGroup.js
yurizhang/ishow
import React from 'react'; import PropTypes from 'prop-types'; import {default as Component} from '../Common/plugs/index.js'; //提供style, classname方法 import '../Common/css/radio-group.css'; export default class RadioGroup extends Component { getChildContext(){ return { component: this }; } onChange...
src/svg-icons/action/turned-in.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTurnedIn = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ActionTurnedIn = pure(ActionTurnedIn); ActionTurnedIn.displayName = 'Ac...
ajax/libs/forerunnerdb/1.3.435/fdb-core+persist.min.js
pvnr0082t/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...
assets/js/layouts/app-header.react.js
Nosferatu-lib/nosferatu-reactjs-auth
import React from 'react'; import classNames from 'classnames'; var AppHeader = React.createClass({ render() { var classes = classNames({ 'app-header': true, 'sticky': true }); return ( <div className={classes}>App Header</div> ); } }); export default AppHeader;
app/scripts/routes.js
devinmcginty/EETME
import React from 'react'; import { Route, DefaultRoute, NotFoundRoute } from 'react-router'; import App from './pages/app.jsx'; import Home from './pages/home.jsx'; import Info from './pages/info.jsx'; import NotFound from './pages/notFound.jsx'; var routes = ( <Route name="app" path="/" handler={ App }> <Rout...
src/junior_profiles/JuniorProfileList.js
tadahmen/jrdev-job-hunt-FRONT
import React from 'react'; import jQuery from 'jquery'; import { Link } from 'react-router'; class JuniorProfileList extends React.Component { constructor(){ super(); this.state = { junior_profiles: [] }; } reloadList(event) { let component = this; jQuery.getJSON("https://powerful-wa...
templates/rubix/demo/src/common/footer.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import { Row, Col, Grid, } from '@sketchpixy/rubix'; export default class Footer extends React.Component { state = { version: 0 }; componentDidMount() { this.setState({ version: document.body.getAttribute('data-version') }); } render() { var year = ne...
test/WellSpec.js
asiniy/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Well from '../src/Well'; describe('Well', function () { it('Should output a well with content', function () { let instance = ReactTestUtils.renderIntoDocument( <Well> <strong>Content</strong> </Well> ...
test/integration/prerender/pages/fallback-only/[slug].js
azukaru/next.js
import React from 'react' import Link from 'next/link' import { useRouter } from 'next/router' export async function getStaticPaths() { return { paths: [], fallback: true, } } export async function getStaticProps({ params }) { await new Promise((resolve) => setTimeout(resolve, 1000)) return { pro...
submissions/leoasis/src/NavButton.js
winstonewert/flux-challenge
import React from 'react'; import classNames from 'classnames'; export default class NavButton extends React.Component { render() { const className = classNames( 'css-button-' + this.props.direction, this.props.disabled && 'css-button-disabled' ); return <button className={className} ...
wp-content/plugins/botdetect-wp-captcha/public/js/jquery.min.js
thanhpd/MaC
/*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc...