path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
client-web/client-web/src/components/ShowProfile.js
ppsari/final
import React from 'react' import { connect } from 'react-redux' import { editProfile , getProfile } from '../actions/index.js' import Loader from './Loader.js' import TitleSection from './TitleSection' class ShowProfile extends React.Component { constructor(props){ super(props) this.state ={ user: nul...
src/svg-icons/notification/time-to-leave.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationTimeToLeave = (props) => ( <SvgIcon {...props}> <path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-....
src/shared/containers/App/index.js
suranartnc/react-redux-universal-starter-kit
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import Header from 'shared/containers/App/Header'; import CSSModules from 'react-css-modules'; import './global.scss'; import styles from './App.scss'; class App extends Component { constructor(props) { super(props); } render()...
app/app.js
Jackey-Sparrow/react-webpack-todo-demo
import React from 'react'; import ReactDOM from 'react-dom'; import DashComponent from './dash/dash-module'; import AboutComponent from './about/about-module'; import { Router, Route, Link } from 'react-router/umd/ReactRouter'; import './common/content/css/main.css'; run(); function run() { ReactDOM.render( <Rout...
src/addons/link/__tests__/LinkedStateMixin-test.js
stardev24/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...
docs/controls/close-button/index.js
aruberto/react-foundation-components
import React from 'react'; import { CloseButton } from '../../../src/close-button'; import { Callout } from '../../../src/callout'; const CloseButtonPage = () => ( <div> <h1>Close Button</h1> <p> The close button can be used anywhere you need something to go away on click. </p> <hr /> <h2>...
modules/gui/src/app/home/body/process/recipe/indexChange/panels/indexChangeToolbar.js
openforis/sepal
import {Legend} from './legend/legend' import {Mapping} from './mapping/mapping' import {Retrieve} from './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/pro...
assets/js/root.js
amelon/redux_proof
import "babel-polyfill"; /* globals document */ // import "babel-core/register"; import React from 'react'; import { render } from 'react-dom'; import { Router, hashHistory } from 'react-router'; import { Provider } from 'react-redux'; import routes from './routes'; import configureStore from 'store/configure_store';...
assets/javascripts/archon/mixins/FlashMessageMixin.js
panli889/archon
import React from 'react'; import NoticeInforCard from '../components/NoticeInforCard'; let FlashMessageMixin = { renderFlash(flash, action) { if (!flash) { return null; } const closeCard = (evt) => this.props.dispatch(action); return ( <NoticeInforCard title='操作提示' title...
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDropZone.js
dvdcastro/keystone
/** * THIS IS ORPHANED AND ISN'T RENDERED AT THE MOMENT * THIS WAS DONE TO FINISH THE REDUX INTEGRATION, WILL REWRITE SOON * - @mxstbr */ import React from 'react'; import DropZoneTarget from './ItemsTableDragDropZoneTarget'; import classnames from 'classnames'; var ItemsTableDragDropZone = React.createClass({ d...
src/svg-icons/av/playlist-play.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlaylistPlay = (props) => ( <SvgIcon {...props}> <path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/> </SvgIcon> ); AvPlaylistPlay = pure(AvPlaylistPlay); AvPlaylistPlay.displayName = '...
webpack/components/RoutedTabs/index.js
snagoor/katello
import React from 'react'; import { shape, string, number, element, arrayOf } from 'prop-types'; import { Tab, Tabs, TabTitleText } from '@patternfly/react-core'; import { Switch, Route, Redirect, useLocation, withRouter, HashRouter } from 'react-router-dom'; import { head, last } from 'lodash'; const RoutedTabs = ({ ...
src/app/Index.js
cgrossde/Pullover
'use strict' // Setup logging for fatal exits import './services/Logging' // Get window and setup tray import Window, { quitApp, showWindow } from './nw/Window' import './nw/Tray' // Include package.json for NW.js, also add global styles import '!!file-loader?name=package.json!../package.json' import './styles/styles.s...
src/svg-icons/image/blur-off.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurOff = (props) => ( <SvgIcon {...props}> <path d="M14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm-.2 4.48l.2.02c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5l.02.2c.09.67.61 1.19 1.28 1.2...
modules/__tests__/IndexRoute-test.js
joeyates/react-router
/*eslint-env mocha */ /*eslint react/prop-types: 0*/ import expect from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import IndexRoute from '../IndexRoute' import Router from '../Router' import Route from '../Route' describe('an <IndexRoute/>', function () { var nod...
node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-duplicate-keys/node_modules/babel-runtime/node_modules/core-js/client/library.js
jessest/hugo-foundation-sass
/** * core-js 2.4.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2016 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require f...
server/sonar-web/src/main/js/apps/project-admin/quality-gate/Form.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info 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, o...
docs/src/examples/collections/Message/Variations/MessageExampleCompact.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' const MessageExampleCompact = () => ( <Message compact> Get all the best inventions in your e-mail every day. Sign up now! </Message> ) export default MessageExampleCompact
src/svg-icons/image/camera-alt.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraAlt = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5...
ajax/libs/tinymce/4.1.3/plugins/legacyoutput/plugin.js
dhenson02/cdnjs
/** * plugin.js * * Copyright, Moxiecode Systems AB * Released under LGPL License. * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing * * This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements, align * attributes and so...
tests/routes/Counter/components/Counter.spec.js
loaclhostjason/react-redux-admin
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...
app/javascript/mastodon/features/notifications/components/column_settings.js
mimumemo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ClearColumnButton from './clear_column_button'; import SettingToggle from './setting_toggle'; export default class ColumnSettings extends Reac...
examples/huge-apps/components/GlobalNav.js
buddhike/react-router
import React from 'react'; import { Link } from 'react-router'; const styles = {}; class GlobalNav extends React.Component { static defaultProps = { user: { id: 1, name: 'Ryan Florence' } }; constructor (props, context) { super(props, context); this.logOut = this.logOut.bind(this);...
src/assets/js/react/bootstrap/fontManagerBootstrap.js
GravityPDF/gravity-forms-pdf-extended
/* Dependencies */ import React from 'react' import { render } from 'react-dom' import { HashRouter as Router, Route } from 'react-router-dom' /* Components */ import AdvancedButton from '../components/FontManager/AdvancedButton' /* Routes */ import fontManagerRouter from '../router/fontManagerRouter' /* Redux store */...
packages/material-ui-icons/src/HeadsetMicTwoTone.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="M5 17c0 .55.45 1 1 1h1v-4H5v3zM17 14h2v4h-2z" opacity=".3" /><path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-...
src/parser/shaman/shared/azerite/PackSpirit.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import { formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS/index'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import ItemHealingDone from 'interface/others/ItemHealingDone'; /** ...
src/reactjs-search-box.js
lequangphuong/reactjs-search-box
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ClassNames from 'classnames'; import css from './reactjs-search-box.css'; const DEFAULT = { className: 'search-box' } export default class SearchBox extends Component { constructor(props, context) { super(props, cont...
src/svg-icons/action/account-box.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBox = (props) => ( <SvgIcon {...props}> <path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3...
src/components/ConnectionIndicator/OfflineIcon.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; import CircularProgress from '@material-ui/core/CircularProgress'; const OfflineIcon = ({ style }) => ( <div style={{ ...style, width: 32, height: 32, display: 'inline-block', }} > <CircularProgress size={32} /> </...
src/js/components/Legend.js
mattfarina/grommet
// (C) Copyright 2014 Hewlett-Packard Development Company, L.P. var React = require('react'); var IntlMixin = require('../mixins/GrommetIntlMixin'); var CLASS_ROOT = "legend"; var Legend = React.createClass({ mixins: [IntlMixin], propTypes: { activeIndex: React.PropTypes.number, onActive: React.PropTyp...
src/components/time-controls/DurationDisplay.js
video-react/video-react
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import { formatTime } from '../../utils'; const propTypes = { player: PropTypes.object, className: PropTypes.string }; function DurationDisplay({ player: { duration }, className }) { const formattedTime = format...
client/js/app/components/common/filter_value_fields.js
myrridin/explorer
/** * @jsx React.DOM */ var _ = require('lodash'); var Select = require('./select.js'); var React = require('react'); var Datepicker = require('./datepicker.js'); var Timepicker = require('./timepicker.js'); var Geo = require('./geo.js'); var moment = require('moment'); var ProjectUtils = require('../../utils/Projec...
test/unit/client/common/components/dropdown-overlay.js
jmeas/finance-app
import React from 'react'; import {shallow} from 'enzyme'; import DropdownOverlay from '../../../../../client/common/components/dropdown-overlay'; describe('DropdownOverlay', function() { describe('rendering with no `onClick` prop', () => { beforeEach(() => { this.onClick = stub(); this.wrapper = sha...
app/javascript/flavours/glitch/features/standalone/public_timeline/index.js
Kirishima21/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { expandPublicTimeline, expandCommunityTimeline } from 'flavours/glitch/actions/timelines'; import Masonry from 'react-masonry-infinite'; import { List...
projects/2016-03-18-JEST-pour-tester-une-application-en-react/javascripts/app.js
Giovannini/giovannini.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import Input from './inputs/textInput'; let ApplicationBox = React.createClass({ render() { return ( <Input /> ); } }); ReactDOM.render( <ApplicationBox />, document.getElementById('content') );
src/interface/layout/Footer/index.js
FaideWW/WoWAnalyzer
import React from 'react'; import DiscordLogo from 'interface/icons/DiscordTiny'; import GithubLogo from 'interface/icons/GitHubMarkSmall'; import PatreonIcon from 'interface/icons/PatreonTiny'; import './style.css'; class Footer extends React.PureComponent { render() { return ( <footer> <div cla...
app/scenes/Talk/components/Hint/index.js
brentvatne/react-conf-app
// @flow import React, { Component } from 'react'; import { Animated, Dimensions, Easing } from 'react-native'; import Icon from '@expo/vector-icons/Ionicons'; import { LinearGradient } from 'expo'; const Gradient = Animated.createAnimatedComponent(LinearGradient); import theme from '../../../../theme'; import { fade...
app/javascript/mastodon/components/load_more.js
cybrespace/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class LoadMore extends React.PureComponent { static propTypes = { onClick: PropTypes.func, disabled: PropTypes.bool, visible: PropTypes.bool, } static defaultProps = { vi...
app/javascript/mastodon/features/ui/components/focal_point_modal.js
pinfort/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import classNames from 'classnames'; import { changeUploadCompose, uploadThumbnail } from...
src/icons/MouseIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class MouseIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M26 2.14V18h14c0-8.16-6.11-14.88-14-15.86zM8 30c0 8.84 7.16 16 16 16s16-7.16 16-16v-8H8v8zM22 2.14C14.11 3.1...
src/routes/Search/components/SearchResults.js
SurfaceW/connectify_client
import React from 'react' import _ from 'lodash' import AppBar from 'components/AppBar' import EmptyResultCard from './EmptyResultCard' import SearchResultList from './SearchResultList' export const SearchResults = ({ searchResults, gotoEntity }) => ( <div> {AppBar('Search Results')} {_.size(searchResults) =...
examples/using-redux/gatsby-browser.js
mickeyreiss/gatsby
import React from 'react' import { Router } from 'react-router-dom' import { Provider } from 'react-redux' import createStore from './src/state/createStore' exports.replaceRouterComponent = ({ history }) => { const store = createStore() const ConnectedRouterWrapper = ({ children }) => ( <Provider sto...
src/components/views/Error.js
huang6349/react-dva
import React, { Component } from 'react'; import { Row, Col, Icon, Button, } from 'antd'; import PropTypes from 'prop-types'; import { Link } from 'dva/router'; import styles from './Error.css'; class Error extends React.Component { static propTypes = { message: PropTypes.string, } static defaultPro...
ajax/libs/yasgui/1.0.6/yasgui.bundled.min.js
ripple0328/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r...
src/components/common/ranklist1.js
liuyuanquan/kankan
import React from 'react'; import classnames from 'classnames'; class RankList1 extends React.Component { render() { let image = this.props.content.image; let title = this.props.content.title; let extra = this.props.content.extra; let length = this.props.content.length; let type = this.props.content.type; ...
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/Stepper/GranularControlStepper.js
pbogdan/react-flux-mui
import React from 'react'; import { Step, Stepper, StepButton, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; const getStyles = () => { return { root: { width: '100%', maxWidth: 700, margin: 'auto', }...
src/components/Navbar/Logo/index.js
easingthemes/easingthemes.github.io
/** * * Logo * */ import React from 'react'; import { IndexLink, Link } from 'react-router'; import './styles.scss'; import Img from 'components/atoms/Img'; import LogoImg from './images/logo-easingthemes.png'; function Logo() { return ( <div className="navbar-header"> <button type="button" className="navba...
ajax/libs/forerunnerdb/1.3.484/fdb-core.js
redmunds/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/babel-core/4.7.3/browser-polyfill.js
dannyxx001/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/counter/test/components/Counter.spec.js
splendido/redux
import expect from 'expect' import React from 'react' import { shallow } from 'enzyme' import Counter from '../../components/Counter' function setup(value = 0) { const actions = { onIncrement: expect.createSpy(), onDecrement: expect.createSpy() } const component = shallow( <Counter value={value} {......
src/js/components/icons/base/Microphone.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
client/tests/userComponents/user.spec.js
FlevianK/cp2-document-management-system
import expect from 'expect'; import React from 'react'; import { User } from '../../src/components/user/User'; import { shallow, mount } from 'enzyme'; describe('User component', () => { const props = { actions: { loadUsers: () => Promise.resolve(), loadUsersPage: () => Promise.resolve() }, u...
ajax/libs/react-data-grid/0.14.15/react-data-grid.js
sajochiu/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["react", "react-dom"], factory); else if(typeof exports === 'obje...
fiddles/react/fiddle-0005-EventHandler/src/App.js
bradyhouse/house
import React, { Component } from 'react'; import './toggle/Toggle'; import Toggle from "./toggle/Toggle"; class App extends Component { render() { return ( <div> <div> <Toggle/> <Toggle/> <Toggle/> <Toggle/> <Toggle/> <Toggle/> <Toggle/>...
client/js/containers/DevTools.js
ongmin/shopshop
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q" defaultIsVisible={false} ...
js/App/Components/TabViews/SubViews/Thermostat/ThermostatButton.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : 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 *...
src/wics/node_modules/material-ui/svg-icons/social/people.js
civiclee/Hack4Cause2017
'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/tree-view/index.js
naoishii/ohk2016C
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import Node from './containers/Node' import configureStore from './store/configureStore' import generateTree from './generateTree' const tree = generateTree() const store = configureStore(tree) ...
src/index.js
Vedant-Koditkar/ReduxSimpleStarter
import React from 'react'; import ReactDOM from 'react-dom'; import YTSearch from 'youtube-api-search'; import _ from 'lodash'; import SearchBar from './components/search_bar'; import VideoList from './components/video_list'; import VideoDetail from './components/video_detail'; const API_KEY = "AIzaSyBWkyIAQOSeJidl-...
frontend/src/components/file-content-view/image.js
miurahr/seahub
import React from 'react'; import { Utils } from '../../utils/utils'; import { gettext, siteRoot } from '../../utils/constants'; import '../../css/image-file-view.css'; const { repoID, repoEncrypted, fileExt, filePath, fileName, thumbnailSizeForOriginal, previousImage, nextImage, rawPath, xmindImageSrc // f...
previews/PR368/search_index.js
dmbates/MixedModels.jl
var documenterSearchIndex = {"docs": [{"location":"constructors/#Model-constructors-1","page":"Model constructors","title":"Model constructors","text":"","category":"section"},{"location":"constructors/#","page":"Model constructors","title":"Model constructors","text":"The LinearMixedModel type represents a linear mixe...
ajax/libs/rxjs/2.3.0/rx.lite.js
wil93/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false...
src/renderers/shared/event/eventPlugins/__tests__/ResponderEventPlugin-test.js
algolia/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...
mobile_react_native/index.android.js
r3bl-alliance/r3bl-base
/** * 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 mobile extends Component { render() { return ( <View style={styles.container}> ...
docs/src/examples/elements/Label/Content/LabelExampleIconShorthand.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Label } from 'semantic-ui-react' const LabelExampleIconShorthand = () => ( <Label as='a' content='Mail' icon='mail' /> ) export default LabelExampleIconShorthand
ajax/libs/react-native-web/0.15.5/cjs/vendor/react-native/Animated/createAnimatedComponent.js
cdnjs/cdnjs
/** * 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. * * * @format */ 'use strict'; exports.__esModule = true; exports.default = void 0; var _AnimatedEvent = require("./AnimatedEvent"); ...
src/ui/components/containers/NotificationBadgeContainer.js
scrollback/pure
/* @flow */ import React, { Component } from 'react'; import { DeviceEventEmitter } from 'react-native'; import GCM from '../../modules/GCM'; import NotificationBadge from '../views/Notification/NotificationBadge'; type State = { count: number; } export default class NotificationBadgeContainer extends Component<voi...
fields/types/cloudinaryimages/CloudinaryImagesColumn.js
pr1ntr/keystone
import React from 'react'; import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const moreIndicatorStyle = { color: '#888', fontSize: '.8rem', }; var Cloudin...
src/svg-icons/editor/format-indent-decrease.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatIndentDecrease = (props) => ( <SvgIcon {...props}> <path d="M11 17h10v-2H11v2zm-8-5l4 4V8l-4 4zm0 9h18v-2H3v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/> </SvgIcon> ); EditorFormatIndentDecre...
examples/react/__tests__/CheckboxWithLabel-test.js
Daniel15/jest
// Copyright 2004-present Facebook. All Rights Reserved. /* eslint-disable no-unused-vars */ import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import CheckboxWithLabel from '../CheckboxWithLabel'; it('CheckboxWithLabel changes the text after click', () => {...
src/containers/Entry/index.js
dachi023/snippets
import React from 'react' import Firebase from 'firebase' import Previewer from '../../components/Previewer' import User from '../../store/User' class Entry extends React.Component { constructor(props) { super(props) this.state = { entry: {} } } componentDidMount() { const me = User.me() ...
docs/app/Examples/modules/Progress/States/ProgressExampleWarning.js
shengnian/shengnian-ui-react
import React from 'react' import { Progress } from 'shengnian-ui-react' const ProgressExampleWarning = () => ( <Progress percent={100} warning> I am warning you </Progress> ) export default ProgressExampleWarning
common/static/js/vendor/mathjax-MathJax-c9db6ac/unpacked/extensions/TeX/mhchem.js
mahendra-r/edx-platform
/************************************************************* * * MathJax/extensions/TeX/mhchem.js * * Implements the \ce command for handling chemical formulas * from the mhchem LaTeX package. * * --------------------------------------------------------------------- * * Copyright (c) 2011-2012 Des...
src/web/components/CreateList.js
faalsh/LamaDesktop
import React from 'react'; import { connect } from 'react-redux' import * as LamaActions from '../../common/actions' import { bindActionCreators } from 'redux' import { StyleSheet, css } from 'aphrodite' class CreateList extends React.Component { constructor(props) { super(props); this.state = { ...
webpack/scenes/Hosts/ChangeContentSource/components/ContentSourceForm.js
snagoor/katello
import React from 'react'; import { ActionGroup, Button, Form, Grid, GridItem, } from '@patternfly/react-core'; import { translate as __ } from 'foremanReact/common/I18n'; import PropTypes from 'prop-types'; import FormField from './FormField'; const ContentSourceForm = ({ handleSubmit, environments, ...
node_modules/protractor/node_modules/selenium-webdriver/lib/test/data/js/jquery-1.4.4.min.js
vla9isla8/hochuna-webapp
/*! * jQuery JavaScript Library v1.4.4 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
frontend/src/routes.js
danscratch/pern
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import App from './containers/App'; import Homepage from './containers/Homepage'; import Signup from './containers/Signup'; export default ( <Route path="/" component={App}> <IndexRoute component={Homepage} /> <Route path="signup" c...
src/app/BeerSaved.js
lolamastro/beerswap
import React, {Component} from 'react'; import Paper from 'material-ui/Paper'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import {muiTheme} from './ColorScheme'; import RaisedButton from 'material-ui/RaisedButton'; const styles = { container: { textAlign: 'center', paddingT...
vendor/jquery/jquery.min.js
nishikam/firstbirthday
/*! jQuery v1.12.4 | (c) jQuery Foundation | 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 window?window:this,fu...
app/components/SignupForm.js
ashley-jelks-truss/DoDidDone
import React from 'react'; import TextField from 'material-ui/TextField'; const SignupForm = () => ( <div> <TextField hintText="Name" id="nameField" /><br /> <TextField hintText="Email" errorText="This field is required." id="emailField" type="email" /><br /> <...
client/components/Main.js
yuanyusi/redux
import React from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import NavLink from './modules/navLink' connect(state => ({example: state.example.data })) class Main extends React.Component { render(){ return ( <div> <h1> <Link to="/"> Reduxstagram ...
src/routes/appRoutes.js
Rhadow/work-genius
// Libraries import React from 'react'; import { Route } from 'react-router'; // Components import App from '../containers/App/App'; import DashboardPage from '../containers/DashboardPage/DashboardPage'; import TaskPage from '../containers/TaskPage/TaskPage'; import PTOPage from '../containers/PTOPage/PTOPage'; // Dem...
ajax/libs/backbone-react-component/0.6.0/backbone-react-component.js
sh4hin/cdnjs
// Backbone React Component // ======================== // // Backbone.React.Component v0.6.0 // // (c) 2014 "Magalhas" José Magalhães <magalhas@gmail.com> // Backbone.React.Component can be freely distributed under the MIT license. // // // `Backbone.React.Component` is a React.Component wrapper that serve...
frontend/sections/router/app.js
apostolidhs/wiregoose
import React from 'react'; import { Route, Router, IndexRoute, browserHistory, Redirect } from 'react-router'; import ReactGA from 'react-ga'; import Body from '../../components/body/body.js'; import * as Notifications from '../../components/notifications/notifications.js'; import tr from '../../components/localizatio...
docs/src/app/components/pages/components/Stepper/VerticalLinearStepper.js
matthewoates/material-ui
import React from 'react'; import { Step, Stepper, StepLabel, StepContent, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; /** * Vertical steppers are designed for narrow screen sizes. They are ideal for mobile. * * To use t...
packages/my-joy-instances/src/mocks/editor.js
geek/joyent-portal
import React from 'react'; export default () => <span>joyent-maifest-editor</span>;
ajax/libs/forerunnerdb/1.3.534/fdb-core+views.js
redmunds/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...
node_modules/react-bootstrap/es/SplitToggle.js
FoxMessenger/nyt-react
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import DropdownToggle fr...
src/Sigma.js
dunnock/react-sigma
// @flow import React from 'react' import { embedProps } from './tools' import '../sigma/main' type Props = { settings: Sigma$Settings, renderer?: "webgl" | "canvas" | "svg", style?: Object, children?: mixed, graph?: Sigma$Graph$Data, onSigmaException?: (e: Error) => void, onClickNode?: (e: Sigma$Event)...
src/svg-icons/image/hdr-off.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageHdrOff = (props) => ( <SvgIcon {...props}> <path d="M17.5 15v-2h1.1l.9 2H21l-.9-2.1c.5-.2.9-.8.9-1.4v-1c0-.8-.7-1.5-1.5-1.5H16v4.9l1.1 1.1h.4zm0-4.5h2v1h-2v-1zm-4.5 0v.4l1.5 1.5v-1.9c0-.8-.7-1.5-1.5-1.5h-1...
ajax/libs/dc/2.0.0-beta.23/dc.js
boneskull/cdnjs
/*! * dc 2.0.0-beta.23 * http://dc-js.github.io/dc.js/ * Copyright 2012-2015 Nick Zhu & the dc.js Developers * https://github.com/dc-js/dc.js/blob/master/AUTHORS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
src/js/components/Military/ShopCategory.js
alexbance/rp-centre
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Card, CardHeader, CardText } from 'material-ui/Card'; import Divider from 'material-ui/Divider'; import ShopItem from './ShopItem'; class ShopCategory extends Component { constructor(props) { super(props); this.state = { ...
src/components/DashboardHeader/DashboardHeader.js
jimmykobe1171/chatbotta
import React, { PropTypes } from 'react'; import AppBar from 'material-ui/AppBar'; import Drawer from 'material-ui/Drawer'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import FlatButton from 'material-ui/FlatButton'; import ...
azkaban-webserver/src/web/js/jquery/jquery-1.9.1.js
logiclord/azkaban
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
src/svg-icons/action/swap-horiz.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapHoriz = (props) => ( <SvgIcon {...props}> <path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"/> </SvgIcon> ); ActionSwapHoriz = pure(ActionSwapHoriz); ActionSwapHoriz.d...
examples/with-graphql-hooks/components/submit.js
flybayer/next.js
import React from 'react' import { useMutation } from 'graphql-hooks' const CREATE_POST = ` mutation createPost($title: String!, $url: String!) { createPost(title: $title, url: $url) { id title votes url createdAt } }` export default function Submit({ onSubmission }) { const [createPost, sta...
test/specs/collections/Table/TableCell-test.js
koenvg/Semantic-UI-React
import React from 'react' import * as common from 'test/specs/commonTests' import TableCell from 'src/collections/Table/TableCell' import { SUI } from 'src/lib' describe('TableCell', () => { common.isConformant(TableCell) common.rendersChildren(TableCell) common.implementsCreateMethod(TableCell) common.imple...
frontend/assets/js/components/JobForm.js
ianmilliken/rwf
import React from 'react'; const JobForm = (props) => { // Collector variables let roleSelect, fruitSelect, startDateInput, durationInput, descriptionInput = null; return ( <form method="post" onSubmit={e => { e.preventDefault(); // Assemble data into object var input = { role: rol...
exampleAppUpdate/index.android.js
liukefu2050/react-native-customized-update
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import ReactNativeCustomizedUpdate from 'react-native-customized-update' export default class exampleAppUpdate e...
src/components/Input.js
oxoooo/webpack-babel-react-startup
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as demoActions from '../actions/demo'; @connect(mapStateToProps, mapDispatchToProps) export default class Input extends Component { render() { return ( <input type="text" value={this.props.text} ...