path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/client/containers/Root.js
Blooprint/blooprint.xyz
import React from 'react'; import { Connector } from 'horizon-react'; import routes from '../routes'; import { Provider } from 'react-redux'; import horizon from '../db'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import configureStore from '../store...
src/components/404.js
NYCJacob/react2you
import React from 'react'; import { Link } from 'react-router-dom' export const NoMatch = () => ( <div> <div>Sorry your page could not be found. Check out the current posts <Link to="/">here.</Link></div> </div> )
admin/src/components/PopoutPane.js
woody0907/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var PopoutPane = React.createClass({ displayName: 'PopoutPane', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, onLayout: React.PropTypes.func }, componentDidMount () ...
5-react-ssr-prod/build/lib/react.js
ndreckshage/react-boston-ssr
var React; if (process.env.NODE_ENV !== 'production') { React = require('react'); } else { React = require('react/dist/react.min'); } module.exports = React;
ajax/libs/golden-layout/1.5.6/goldenlayout.min.js
tonytomov/cdnjs
!function(t){var e={config:{},container:{},controls:{},errors:{},items:{},utils:{}};e.utils.F=function(){},e.utils.extend=function(t,i){t.prototype=e.utils.createObject(i.prototype),t.prototype.contructor=t},e.utils.createObject=function(t){return"function"==typeof Object.create?Object.create(t):(e.utils.F.prototype=t,...
node_modules/reactify/node_modules/react-tools/src/browser/ui/ReactInputSelection.js
mjibson/mog
/** * 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. * * @providesModule ...
ajax/libs/react-bootstrap/0.23.5/react-bootstrap.js
yinghunglai/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["ReactBootstrap"] = ...
docs/app/Examples/views/Item/Content/ItemExampleMetadata.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Image as ImageComponent, Item } from 'semantic-ui-react' const paragraph = <ImageComponent src='http://semantic-ui.com/images/wireframe/short-paragraph.png' /> const ItemExampleMetadata = () => ( <Item.Group> <Item> <Item.Image size='tiny' src='http://semantic-ui.com/ima...
src/svg-icons/av/web-asset.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvWebAsset = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H5V8h14v10z"/> </SvgIcon> ); AvWebAsset = pure(AvWebAsset); AvWebAss...
src/client/components/meeting/meeting-document-viewer.js
pgryko/meeting
/* * Copyright (C) 2015-2016 InSeven Limited. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program...
components/freeze-page-scroll.js
cnvs/docs
import React from 'react' export default class FreezePageScroll extends React.Component { // Make sure to unfreeze when unmounting the component componentWillUnmount() { this.freezeScrolling(false) } // Make sure to freeze if unmounted and re-mounted again while mouse is // still over the component re...
ajax/libs/forerunnerdb/1.3.613/fdb-legacy.js
wout/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...
frontend/src/Movie/Editor/Organize/OrganizeMovieModal.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import Modal from 'Components/Modal/Modal'; import OrganizeMovieModalContentConnector from './OrganizeMovieModalContentConnector'; function OrganizeMovieModal(props) { const { isOpen, onModalClose, ...otherProps } = props; return ( <...
src/client/components/Utils/ScrollToTopOnMount.js
busyorg/busy
import React from 'react'; import { withRouter } from 'react-router'; class ScrollToTopOnMount extends React.Component { componentDidMount() { if (window && window.location.hash === '') { window.scrollTo(0, 0); } } render() { return null; } } export default withRouter(ScrollToTopOnMount);
ajax/libs/6to5/1.12.19/browser-polyfill.js
amoyeh/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...
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js
mozillo/react-router
/*globals COURSES:true */ import React from 'react' class Announcement extends React.Component { render() { let { courseId, announcementId } = this.props.params let { title, body } = COURSES[courseId].announcements[announcementId] return ( <div> <h4>{title}</h4> <p>{body}</p> ...
examples/react/app/assets/javascripts/components/Counter/renderServer.js
jdlehman/js_render
import {renderToString} from 'react-dom/server'; import React from 'react'; import Counter from './index'; window.renderCounterServer = function(props) { return renderToString(<Counter {...props} />); };
test/ButtonInputSpec.js
sheep902/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ButtonInput from '../src/ButtonInput'; import {shouldWarn} from './helpers'; describe('ButtonInput', () => { it('renders an input button element with type=button', () => { const instance = ReactTestUtils.renderIntoDocument( ...
ajax/libs/handsontable/0.10.4/jquery.handsontable.full.js
qrohlf/cdnjs
/** * Handsontable 0.10.4 * Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs * * Copyright 2012, Marcin Warpechowski * Licensed under the MIT license. * http://handsontable.com/ * * Date: Thu Mar 20 2014 13:06:05 GMT+0100 (CET) */ /*jslin...
Components/IndividualProjectScreen.js
colm2/mizen
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, ScrollView, Linking, ActivityIndicator } from 'react-native'; import { connect } from 'react-redux'; import Icon from 'react-native-vector-icons/FontAwesome'; export class IndividualProjectScreen extends Component{ ...
addon/tools/control-panel/main.js
dannycoates/testpilot
/* * This Source Code is subject to the terms of the Mozilla Public License * version 2.0 (the 'License'). You can obtain a copy of the License at * http://mozilla.org/MPL/2.0/. */ /* global CustomEvent */ import React, { Component } from 'react'; import { render } from 'react-dom'; import * as actions from '../....
app/components/ProgressBar/index.js
DeekshithShetty/hydra
import React from 'react'; import ProgressBar from './ProgressBar'; function withProgressBar(WrappedComponent) { class AppWithProgressBar extends React.Component { constructor(props) { super(props); this.state = { progress: -1, loadedRoutes: props.location && [props.location.pathname]...
example/cdn/app.js
change-soft8/cs-validation
import React from 'react'; import {Form, Input, Button, Checkbox, Radio, Select, Select2, Textarea} from '../../src/index.js'; // import {Form, Input, Button, Checkbox, Radio, Select, Select2, Textarea} from 'CsValidation'; export default class App extends React.Component { /** * [closeModal 模拟关闭 Modal 窗口] * @re...
frontend/src/Components/Loading/LoadingMessage.js
geogolem/Radarr
import React from 'react'; import styles from './LoadingMessage.css'; const messages = [ 'Downloading more RAM', 'Now in Technicolor', 'Previously on Radarr...', 'Bleep Bloop.', 'Locating the required gigapixels to render...', 'Spinning up the hamster wheel...', 'At least you\'re not on hold', 'Hum som...
src/ToastMessage/jQueryMixin.js
johnhaley81/react-toastr
import { default as ReactDOM, } from "react-dom"; function call_show_method($node, props) { $node[props.showMethod]({ duration: props.showDuration, easing: props.showEasing, }); } export default { getDefaultProps() { return { style: { display: `none`, // effective $.hide() }, ...
src/routes.js
Ciunkos/ciunkos.com
import React from 'react' import posts from 'blog/posts' import Home from 'home' import Resume from 'resume' import About from 'about' import Apps from 'apps' import Blog from 'blog' import NotFound from 'not-found' const routes = { '/': () => <Home />, '/resume/': () => <Resume />, '/about/': () => <About />, ...
ajax/libs/material-ui/5.0.0-alpha.30/internal/svg-icons/ErrorOutline.min.js
cdnjs/cdnjs
import*as React from"react";import createSvgIcon from"../../utils/createSvgIcon";import{jsx as _jsx}from"react/jsx-runtime";export default createSvgIcon(_jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58...
src/svg-icons/hardware/phone-iphone.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhoneIphone = (props) => ( <SvgIcon {...props}> <path d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1...
Examples/ForTest/src/containers/PageContainer.js
ksti/react-native-utils
/** * 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, ...
Example/src/page/TransPxToDp/index.js
dragonwong/rnx-ui
import React from 'react'; import { StyleSheet, ScrollView, View, } from 'react-native'; import { Article, NavBar, } from 'BizComponent'; import Router from 'BizRouter'; import All from 'rnx-ui/All'; import transPxToDp from 'rnx-ui/util/transPxToDp'; const styles = StyleSheet.create({ scrollView: { pad...
examples/huge-apps/routes/Course/components/Dashboard.js
cojennin/react-router
import React from 'react'; class Dashboard extends React.Component { render () { return ( <div> <h3>Course Dashboard</h3> </div> ); } } export default Dashboard;
wordpress/wp-content/themes/venturariver/node_modules/rx/dist/rx.lite.compat.js
brianr852/ventura-river
// Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'function': true, 'object': true }; function checkGlobal(value) { return (value && value.Object === Object) ? value : null; } var freeExpor...
web-server/v0.4/src/components/SiderMenu/index.js
atheurer/pbench
import 'rc-drawer/assets/index.css'; import React from 'react'; import DrawerMenu from 'rc-drawer/lib'; import SiderMenu from './SiderMenu'; const SiderMenuWrapper = props => { const { isMobile, collapsed } = props; return isMobile ? ( <DrawerMenu getContainer={null} level={null} handleChild=...
collect-webapp/frontend/src/scenes/DataCleansingPage.js
openforis/collect
import React, { Component } from 'react'; import Constants from 'Constants'; import MaxAvailableSpaceContainer from 'common/components/MaxAvailableSpaceContainer'; class DataCleansingPage extends Component { render() { return ( <MaxAvailableSpaceContainer> <iframe src={Constants.BASE_URL + 'dataclean...
app/routes/__tests__/app.component.spec.js
wojciech-panek/study-group-7-ssr
import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import Helmet from 'react-helmet'; import { IntlProvider } from 'react-intl'; import { spy } from 'sinon'; import { translationMessages } from '../../i18n'; import { DEFAULT_LOCALE } from '../../modules/locales/locales.redux'; ...
src/components/app.js
psongpin/Weather-App
import React, { Component } from 'react'; import SearchBar from '../containers/search_bar'; import WeatherList from '../containers/weather_list'; export default class App extends Component { render() { return ( <div> <SearchBar /> <WeatherList /> </div> ); } }
ajax/libs/preact/4.8.0/preact.js
redmunds/cdnjs
!function(global, factory) { 'object' == typeof exports && 'undefined' != typeof module ? module.exports = factory() : 'function' == typeof define && define.amd ? define(factory) : global.preact = factory(); }(this, function() { 'use strict'; function VNode(nodeName, attributes, children) { this.nod...
data-browser-ui/public/app/components/Modal.js
CloudBoost/cloudboost
import React from 'react'; class Modal extends React.Component { componentDidUpdate () { if (this.props.opened) { this.refs.modalDiv.focus(); } } handleContentAreaClick = (event) => { event.stopPropagation(); } handleKeyDown = (event) => { if (event.key === 'Escape') { this.prop...
ajax/libs/mediaelement/2.6.4/jquery.js
lobbin/cdnjs
/*! * jQuery JavaScript Library v1.7 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. *...
client/src/components/EventsSummary/SummaryTab.js
ddrscott/sql_probe
import React from 'react'; import { COLOR_ACTIVE_RECORD, COLOR_SQL, COLOR_OTHER, TYPE_ACTIVE_RECORD, TYPE_SQL, TYPE_CONTROLLER } from '../../services/ProbeEvents'; import colorWheelHue from '../../utils/colorWheelHue'; import Breakdown from './Breakdown'; const round = num => ((num * 100) | 0) / 100; const sumTim...
docs/src/app/components/pages/components/Dialog/ExampleModal.js
pradel/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; /** * A modal dialog can only be closed by selecting one of the actions. */ export default class DialogExampleModal extends React.Component { sta...
src/Table/TableHeaderColumn.js
abouthiroppy/scuba
// @flow import type { CommonProps } from '../CommonTypes'; import React from 'react'; import classnames from 'classnames'; import excludeProps from '../utils/excludeProps'; import styles from './style'; const TableHeaderColumn = (props: CommonProps) => ( <th {...excludeProps(props)} style={Object.assign({...
src/parser/warlock/destruction/modules/talents/SoulConduit.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import SPELLS from 'common/SPELLS'; import { formatPercentage, formatThousands } from 'common/format'; import Statistic from 'interface/statistics/Statistic'; import BoringSpellV...
src/svg-icons/device/signal-wifi-3-bar-lock.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi3BarLock = (props) => ( <SvgIcon {...props}> <path opacity=".3" d="M12 3C5.3 3 .8 6.7.4 7l3.2 3.9L12 21.5l3.5-4.3v-2.6c0-2.2 1.4-4 3.3-4.7.3-.1.5-.2.8-.2.3-.1.6-.1.9-.1.4 0 .7 0 1 .1L23.6 7c-.4-...
ajax/libs/react-chartjs/0.1.1/react-chartjs.js
dhenson02/cdnjs
/*! * react-charts v0.1.1 * https://github.com/jhudson8/react-charts * * * Copyright (c) 2014 Joe Hudson<joehud_AT_gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software withou...
lib/components/StaticAnalysis/index.js
gmtcreators/atom-solidity
'use babel' // Copyright 2018 Etheratom Authors // This file is part of Etheratom. // Etheratom is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any la...
web/test/portal/components/EditQuestion.js
trendmicro/serverless-survey-forms
import '../../helpers/env'; import DomMock from '../../helpers/dom-mock'; import { wrapInTestContext } from '../../helpers/dnd-test'; import expect from 'expect'; import React from 'react'; import TestUtils from 'react-dom/test-utils'; import EditQuestion from '../../../portal/src/components/EditPanel/EditQuestion'; D...
ajax/libs/vega/3.0.0-beta.8/vega.min.js
sashberd/cdnjs
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.vega=t.vega||{})}(this,function(t){"use strict";function n(t){var n,e,r,i,a,o,u,s,f=t.maxbins||20,l=t.base||10,c=Math.log(l),h=t.divide||[5,2],d=t.extent[0],p=t.extent[1],g=p-d;...
src/DropdownMenu.js
justinanastos/react-bootstrap
import React from 'react'; import keycode from 'keycode'; import classNames from 'classnames'; import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper'; import ValidComponentChildren from './utils/ValidComponentChildren'; import createChainedFunction from './utils/createChainedFunction'; class DropdownMenu e...
examples/huge-apps/routes/Calendar/components/Calendar.js
dalexand/react-router
import React from 'react'; class Calendar extends React.Component { render () { var events = [{ id: 0, title: 'essay due' }]; return ( <div> <h2>Calendar</h2> <ul> {events.map(event => ( <li key={event.id}>{event.title}</li> ))} </ul> ...
admin/client/components/Toolbar.js
riyadhalnur/keystone
import React from 'react'; import { Container } from 'elemental'; module.exports = React.createClass({ displayName: 'Toolbar', render () { return ( <div {...this.props} className="Toolbar"> <Container clearfix > {this.props.children} </Container> </div> ); }, }); // expose the children to th...
ajax/libs/jointjs/0.7.0/joint.js
emijrp/cdnjs
/*! JointJS v0.7.0 - JavaScript diagramming library 2013-11-04 This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /*! * jQuery JavaScript Library v1.9.1 * http://jquery...
app/javascript/mastodon/components/loading_indicator.js
RobertRence/Mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const LoadingIndicator = () => ( <div className='loading-indicator'> <div className='loading-indicator__figure' /> <FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' /> </div> ); export default LoadingIndicat...
src/components/auth/SetupAssistant.js
meetfranz/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import { defineMessages, intlShape } from 'react-intl'; import injectSheet from 'react-jss'; import classnames from 'classnames'; import { Input, Button } from '@meetfranz/forms'; import { Badge } from ...
src/pages/settings/settings.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, o...
app/scripts/components/Series/Serie.js
jeselxe/WebSeries-cli
import React from 'react'; import {connect} from 'react-redux'; import Tabs from 'react-simpletabs'; import TemporadasBox from '../Temporadas/TemporadasBox'; import InfoSerie from './InfoSerie'; import ActionButton from '../ActionButton'; import {seriesActions} from '../../Actions'; const mapStateToProps = (state) =>...
packages/neos-ui/src/Containers/LeftSideBar/NodeTreeSearchBar/index.js
dimaip/neos-ui
import React, {PureComponent} from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import debounce from 'lodash.debounce'; import {$get} from 'plow-js'; import {neos} from '@neos-project/neos-ui-decorators'; import {actions, selectors} from '@neos-project/neos-ui-redux-store'; import...
administrator/templates/isis/js/jquery.js
willi-pahl/gut-temmen
/*! 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...
client/src/routes.js
efollender/redux-spotify
import React from 'react'; import {Route, Router, hashHistory} from 'react-router'; import App from './components/App'; import {PlaylistContainer} from './components/playlist/PlaylistContainer'; export default ( <Router history={hashHistory}> <Route component={App}> <Route path="/" component={PlaylistContainer} /> ...
assets/javascripts/kitten/components/layout/container/stories.js
KissKissBankBank/kitten
import React from 'react' import { Container } from './index' import { COLORS } from 'kitten' import { DocsPage } from 'storybook/docs-page' export default { title: 'Layout/Container', component: Container, parameters: { docs: { page: () => <DocsPage filepath={__filename} importString="Container" />, ...
FlaskApp/FlaskLoader/static/jquery-1.11.2.min.js
benno16/extraFiles
/*! jQuery v1.11.2 | (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/svg-icons/hardware/cast-connected.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareCastConnected = (props) => ( <SvgIcon {...props}> <path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 ...
files/react/0.10.0/react-with-addons.min.js
RoberMac/jsdelivr
/** * React (with addons) v0.10.0 * * Copyright 2013-2014 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
src/containers/SignIn.js
awebfactory/state-shape-designer
import React from 'react'; import { connect } from 'react-redux'; import { addUser } from '../actions'; let SignIn = ({ dispatch }) => { let input return ( <div className="container rp-page"> <div className="awf-header"> <h1>Sign In</h1> </div> <form onSubmit={e => { e.preven...
examples/async/containers/Root.js
danmaz74/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import configureStore from '../store/configureStore'; import AsyncApp from './AsyncApp'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> {() ...
pootle/static/js/admin/components/Language/LanguageController.js
pavels/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import Search from '../Search'...
src/containers/NotFoundPage/index.js
skyuplam/technical-test01
import React from 'react'; export default function NotFound() { return ( <h1> Page not found. </h1> ); }
test/specs/collections/Message/Message-test.js
Rohanhacker/Semantic-UI-React
import React from 'react' import Message from 'src/collections/Message/Message' import MessageContent from 'src/collections/Message/MessageContent' import MessageHeader from 'src/collections/Message/MessageHeader' import MessageList from 'src/collections/Message/MessageList' import * as common from 'test/specs/common...
js/Details.js
mcqnyc/complete-intro-to-react
import React from 'react' import { connect } from 'react-redux' import { getOMDBDetails } from './actionCreators' import Header from './Header' const { shape, string, func } = React.PropTypes const Details = React.createClass({ propTypes: { show: shape({ title: string, year: string, poster: str...
src/components/Paralax/Paralax/Paralax.js
easingthemes/notamagic
import React from 'react'; import { Parallax as ParallaxComponent } from 'react-parallax'; import { Link } from 'react-router'; import bgImage from '../images/parallax.jpg'; const Parallax = (props) => ( <ParallaxComponent id="info-1" className={'pt50 pb50 parallax-window mt' + props.mt} bgImage={bgImage} stren...
client/test/unit/components/Todo.spec.js
Superfresh/cf-micro-api
import React from 'react'; import expect from 'expect'; import expectJSX from 'expect-jsx'; import TestUtils from 'react-addons-test-utils'; import Todo from '../../../src/components/Todo'; expect.extend(expectJSX); describe('Todo component', function () { it('should render a none completed task without text decor...
client/app/components/Auth/SignUpForm.js
yanhao-li/menu-plus
import React from 'react'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButtonSm from 'components/Button/FlatButtonSm'; import { signup, login } from 'actions/AuthActions'; import SignUpFormUI from 'components/Auth/SignUpFormUI'; import validateInput fro...
src/svg-icons/navigation/more-horiz.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationMoreHoriz = (props) => ( <SvgIcon {...props}> <path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-...
app/containers/LanguageProvider/index.js
huahuaxiong/console
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
docs/src/examples/collections/Grid/Types/GridExampleCelledInternally.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleCelledInternally = () => ( <Grid celled='internally'> <Grid.Row> <Grid.Column width={3}> <Image src='/images/wireframe/image.png' /> </Grid.Column> <Grid.Column width={10}> <Image src='/im...
sites/all/modules/contrib/ctools/js/dependent.js
cmusv-sc/ArchF2013-Project1-FT
/** * @file * Provides dependent visibility for form items in CTools' ajax forms. * * To your $form item definition add: * - '#process' => array('ctools_process_dependency'), * - '#dependency' => array('id-of-form-item' => array(list, of, values, that, * make, this, item, show), * * Special considerations: ...
ajax/libs/rxjs/2.2.22/rx.js
danut007ro/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...
app/reducers.js
jilla720/messidge
/** * Combine all reducers in this file and export the combined reducers. * If we were to do this in store.js, reducers wouldn't be hot reloadable. */ import { combineReducers } from 'redux-immutable'; import { fromJS } from 'immutable'; import { LOCATION_CHANGE } from 'react-router-redux'; import { reducer as for...
examples/todomvc/containers/TodoApp.js
aphillipo/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/todos'; class TodoApp extends Component { render() { ...
src/svg-icons/editor/vertical-align-center.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignCenter = (props) => ( <SvgIcon {...props}> <path d="M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"/> </SvgIcon> ); EditorVerticalAlignCenter = pure(EditorVerticalAlig...
site/demos/technews/src/components/Header.js
appbaseio/reactivesearch
import React from 'react'; import Navbar from '../styles/Navbar'; const Header = () => ( <Navbar>Tech News</Navbar> ); export default Header;
__tests__/components/Animate-test.js
codeswan/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react/lib/ReactTestRenderer'; import Animate from '../../src/js/components/Animate'; import Paragraph from '../../src/js/components/Paragraph'; // needed because this: // https://github.com/facebook/...
test/containers/CounterPage.spec.js
robogroves/iotbp
import React from 'react'; import { mount } from 'enzyme'; import { Provider } from 'react-redux'; import { createBrowserHistory } from 'history'; import { ConnectedRouter } from 'react-router-redux'; import CounterPage from '../../app/containers/CounterPage'; import { configureStore } from '../../app/store/configureSt...
packages/material-ui-icons/src/AttachMoneyTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M11.5 17.1c-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 ...
src/svg-icons/image/panorama.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePanorama = (props) => ( <SvgIcon {...props}> <path d="M23 18V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zM8.5 12.5l2.5 3.01L14.5 11l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); ImagePanora...
src/Member.js
sq0032/jamii-world
import React, { Component } from 'react'; export default class Member extends Component { render() { return ( <svg x={this.props.pos.x} y={this.props.pos.y}> <circle cx="8" cy="10" r="8" fill="blue"> </circle> <rect y="20" x="2" widt...
ajax/libs/6to5/3.6.4/browser-polyfill.js
RizkyAdiSaputra/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...
src/entypo/Picasa.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Picasa'; let EntypoPicasa = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M5.808,1.823C2.719,3.411,0.8,6.544,0.8,10.021c0,0.633,0.08,1.275,0.221,1.918L8.97,4.7C8.122,3.929,5.8...
modules/shared/Text.js
edvinerikson/universal-react-kickstarter
import React from 'react'; export default class Text extends React.Component { static propTypes = { children: React.PropTypes.string.isRequired, } render() { return <p>{this.props.children}</p>; } }
src/back-office/components/Actions.js
mihailgaberov/es6-bingo-game
import React from 'react'; const Actions = props => <div id="actions"> <span data-testid="actions" tabIndex="0" className="actions-info" title="More info" onClick={props.onAction.bind(null, 'info')}>&#8505;</span> <span data-testid="actions" tabIndex="0" className="actions-edit...
ajax/libs/primereact/7.0.0-rc.1/ripple/ripple.esm.js
cdnjs/cdnjs
import React, { Component } from 'react'; import { DomHandler } from 'primereact/core'; import PrimeReact from 'primereact/api'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(...
src/components/Cards/ItemOffered.js
andresmechali/shareify
import React from 'react'; import PropTypes from 'prop-types'; import Image from '../Image'; const ItemOffered = (props) => { return ( <div className="col-xl-3 order-xl-1 col-lg-3 order-lg-1 col-md-12 order-md-2 col-sm-12 col-xs-12 responsive-display-none"> <div className="ui-block"> ...
examples/src/components/CustomKeysField.js
miraks/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var CustomKeysField = React.createClass({ displayName: 'CustomKeysField', propTypes: { label: React.PropTypes.string },...
packages/material-ui-icons/src/PhotoSizeSelectActualTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M3.08 5L3 5.08V19h17.92c.03-.02.06-.06.08-.08V5.08L20.92 5H3.08zM5 17l3.5-4.5 2.5 3.01L14.5 11l4.5 6H5z" opacity=".3" /><path d="M21 3H3C2 3 ...
components/fields/forked-react-dates/src/components/DayPickerNavigation.js
Mudano/m-dash-ui
import React from 'react'; import PropTypes from 'prop-types'; import { forbidExtraProps } from 'airbnb-prop-types'; import cx from 'classnames'; import { DayPickerNavigationPhrases } from '../defaultPhrases'; import getPhrasePropTypes from '../utils/getPhrasePropTypes'; import ScrollableOrientationShape from '../sha...
next-express/node_modules/enzyme/src/Debug.js
thoughtbit/node-web-starter
import without from 'lodash/without'; import escape from 'lodash/escape'; import compact from 'lodash/compact'; import objectValues from 'object.values'; import functionName from 'function.prototype.name'; import { childrenOfNode, } from './ShallowTraversal'; import { renderedChildrenOfInst, } from './MountedTrave...
web/src/Components/ListItem.js
Dinoshauer/random-wod
import React from 'react'; const ListItem = ({ item }) => ( <li className='list-group-item'> { item.amount } {' '} { item.name } </li> ); ListItem.propTypes = { item: React.PropTypes.object }; export default ListItem;
packages/components/src/DateTimePickers/views/MonthYearView/MonthYearView.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import { Action } from '../../../Actions'; import MonthPicker from '../../pickers/MonthPicker'; import ViewLayout from '../ViewLayout'; import HeaderTitle from '../HeaderTitle'; import getDefaultT from '../../../translate'; function MonthYearView(props) { ...
packages/veritone-react-common/src/components/FormBuilder/FormItems/CheckBoxes.js
veritone/veritone-sdk
import React from 'react'; import { bool, string, func, arrayOf, shape } from 'prop-types'; import FormGroup from '@material-ui/core/FormGroup'; import Typography from '@material-ui/core/Typography'; import Box from '@material-ui/core/Box'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import FormH...
ajax/libs/yui/3.10.3/simpleyui/simpleyui.js
emmansun/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 @main yui @submodule yui-base **/ /*jshint eqeqeq: false*/ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The...