path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/components/consumer/ConsumerSelector.js
GHImplementationTeam/FrontEnd
import _ from 'lodash'; import RaisedButton from 'material-ui/RaisedButton'; import { Toolbar, ToolbarGroup } from 'material-ui/Toolbar'; import PropTypes from 'prop-types'; import React from 'react'; import { Col, Row } from 'react-flexbox-grid'; import { connect } from 'react-redux'; import { bindActionCreators } fro...
examples/counter/containers/Root.js
tschaub/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import CounterApp from './CounterApp'; import configureStore from '../store/configureStore'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> ...
src/components/common/buttons/Button.js
ESTEBANMURUZABAL/my-ecommerce-template
/** * Imports */ import React from 'react'; // Instantiate logger let debug = require('debug')('tienda765'); import ApplicationStore from '../../../stores/Application/ApplicationStore'; /** * Component */ class Button extends React.Component { static contextTypes = { getStore: React.PropTypes.func.isR...
nod_modules/rx/dist/rx.all.compat.js
silvandco/angular2-tests
// 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...
client/components/App.js
Elektro1776/Project_3
/* ./client/components/App.jsx */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Switch, Route } from 'react-router-dom'; import { StaticRouter } from 'react-router' import Dashboard from './dashboard'; import About from './about' import { meow } from '../actions/dashboar...
node_modules/core-js/client/library.js
pyaskovsky/video-feed_AngularJS
/** * 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...
client/webpack/config/browser-dev.config.js
zdavis/manifold
import baseConfig from "./browser-base.config"; import { DefinePlugin, HotModuleReplacementPlugin, NamedModulesPlugin } from "webpack"; import merge from "webpack-merge"; import environment from "../helpers/environment"; const config = merge.smart(baseConfig, { entry: { "build/manifold-client-browser": [ ...
components/subscriptions/SubscriptionSelector.js
resource-watch/resource-watch
import React from 'react'; import PropTypes from 'prop-types'; // Components import SelectInput from 'components/form/SelectInput'; import Input from 'components/form/Input'; import Field from 'components/form/Field'; class SubscriptionSelector extends React.Component { render() { const { datasets, ...
packages/material-ui-icons/src/Notifications.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z" /> , 'Notifications');
node_modules/scratch-blocks/node_modules/core-js/client/shim.js
isabela-angelo/scratch-tangible-blocks
/** * core-js 2.5.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2017 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The r...
examples/shopping-cart/index.js
naoishii/ohk2016C
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import logger from 'redux-logger' import thunk from 'redux-thunk' import reducer from './reducers' import { getAllProducts } from './actions' i...
admin/client/App/components/Navigation/Mobile/index.js
cermati/keystone
/** * The mobile navigation, displayed on screens < 768px */ import React from 'react'; import Transition from 'react-addons-css-transition-group'; import MobileSectionItem from './SectionItem'; const ESCAPE_KEY_CODE = 27; const MobileNavigation = React.createClass({ displayName: 'MobileNavigation', propTypes: ...
prototypes/PCE/rpcPCE-spec.js
vistadataproject/VDM
#!/usr/bin/env node 'use strict'; /** * RPC Prototype * * Note: RPC testing to prepare for VDM, seeing what works * including what isn't checked (invalid refs, missing values ...) * * (c) 2017 VISTA Data Project */ /* * Basic setup */ const util = require('util'); const nodem = require('nodem'); const filem...
packages/react-scripts/fixtures/kitchensink/src/features/env/FileEnvVariables.js
kst404/e8e-react-scripts
import React from 'react' export default () => ( <span id="feature-file-env-variables">{process.env.REACT_APP_FILE_ENV_MESSAGE}.</span> )
app/javascript/mastodon/features/ui/components/video_modal.js
mimumemo/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from '../../video'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default class VideoModal extends ImmutablePureComponent { static propTypes = { m...
ofSketchApp/bin/data/DocumentRoot/js/jquery.min.js
olab-io/ofSketch
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
js/src/dapps/basiccoin/Transfer/Events/events.js
immartian/musicoin
// Copyright 2015, 2016 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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...
app/scripts/options.js
bjyoungblood/chrome-github-toolkit
Object.assign = require('object-assign'); window.Promise = require('bluebird'); import React from 'react'; import '../assets/app.css'; chrome.storage.local.get('state', (obj) => { let state = obj.state; if (state) { window.state = JSON.parse(state); } let Root = require('../containers/Root'); React.rend...
ajax/libs/instantsearch.js/2.1.0-beta.2/instantsearch.min.js
extend1994/cdnjs
/*! instantsearch.js 2.1.0-beta.2 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */ !function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports.instantsearch=t():e...
live-build-config/config/includes.chroot/usr/share/documentation/python/3.4.3/_static/jquery.js
cybint-io/cybint-linux
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===...
meteor/imports/modules/utils.js
globeandmail/chart-tool
import React from 'react'; import { Meteor } from 'meteor/meteor'; import Swal from 'sweetalert2'; import Papa from 'papaparse'; import { app_settings } from './settings'; import { timeFormat, timeParse } from 'd3-time-format'; import ChartTool from './chart-tool'; import { extent } from 'd3-array'; export function ra...
src/RandomGifPair.js
low-ghost/react-rx-elm-architecture
import React, { Component } from 'react'; import R from 'ramda'; import fetch from 'isomorphic-fetch'; import { FuncSubject } from 'rx-react'; import { dispatch, forwardTo, createReducer, Effects } from './startApp'; import * as RandomGif from './RandomGif'; const mapI = R.addIndex(R.map); const unzip = a => mapI((co...
components/range/Range.js
zooshgroup/react-toolbox-components
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import classnames from 'classnames'; import styleShape from 'react-style-proptype'; import { themr } from 'react-css-themr'; import { round, range } from 'react-toolbox/lib/utils/utils'; import { SLIDER } fro...
src/ButtonBar.js
uqbar-project/redux-workshop
import React from 'react'; export default class ButtonBar extends React.Component { render() { let buttons = this.props.buttons.map( (btn, index) => <button key={index} className={btn.className} onClick={(e) => this.props.onButtonClicked(btn.data) }> {btn.label} </button> ); r...
src/shared/LinkButton.js
cityofasheville/coa-converse
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import Button from './Button'; const LinkButton = props => ( <Link to={{ pathname: props.pathname, query: props.query }}> <Button {...props} /> </Link> ); LinkButton.propTypes = { pathname: PropTypes.string, ...
src/components/ToggleButton/ToggleButton.js
Bandwidth/shared-components
import React from 'react'; import PropTypes from 'prop-types'; import { defaultProps } from 'recompose'; import * as styles from './styles'; import noop from 'lodash.noop'; /** * `ToggleButton` is a simple styled button with some extra functionality built-in for handling selection. Control * it by setting `selected`...
node_modules/rebass/src/PanelHeader.js
HasanSa/hackathon
import React from 'react' import Base from './Base' import config from './config' /** * Header for Panel component with vertical centering using flexbox */ const PanelHeader = (props, { rebass }) => { const { bold, scale, borderRadius } = { ...config, ...rebass } return ( <Base {...props} clas...
src/pages/jeanseria.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Jeanseria' /> )
src/server.js
emmaandjohn/swiss-react-master
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import ApiC...
src/components/PaperComponents/Prompt.js
tuomotlaine/portfolio
import React, { Component } from 'react'; import _ from 'lodash'; import { connect } from 'react-redux'; import { toggleAutoScroll, addContentToState } from '../../actions'; class Prompt extends Component { constructor(props){ super(props); } handleClick(args){ this.props.userSelected(args); this.pr...
src/svg-icons/content/flag.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFlag = (props) => ( <SvgIcon {...props}> <path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/> </SvgIcon> ); ContentFlag = pure(ContentFlag); ContentFlag.displayName = 'ContentFlag'; ContentFlag.muiName = '...
Components/HomePageMixin.js
tradle/tim
import React from 'react' import _ from 'lodash' import Icon from 'react-native-vector-icons/Ionicons' import { Alert, StatusBar, TouchableOpacity, View, Platform } from 'react-native' import constants from '@tradle/constants' import utils, { translate, isWhitelabeled } from '../utils/utils' import { getGr...
modules/__tests__/RouteUtils-test.js
sleexyz/react-router
import expect from 'expect'; import React from 'react'; import Route from '../Route'; import { createRoutesFromReactChildren } from '../RouteUtils'; describe('createRoutesFromReactChildren', function () { var Parent = React.createClass({ render() { return ( <div> <h1>Parent</h1> ...
src/containers/Login.js
hutxs/iconfig-antd
import {Form, Input, Button, Checkbox, Radio, Row, Col, message} from 'antd'; import React from 'react'; const FormItem = Form.Item; const RadioGroup = Radio.Group; const RadioButton = Radio.Button; //var app = require('./common'); const Login = React.createClass({ mixins: [Form.ValueMixin], getInitialState() {...
[4]. Project/DianShang/Component/Mine/SJMine.js
knightsj/RN_Demo
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ScrollView } from 'react-native'; var MyCell = require('../Common/SJCommonImageCell') var HeaderView = require('./SJMineHeaderView'); var MiddleView = require('./SJMineMiddleView') var Mine = React.createClass({ rend...
react-components/src/library/components/resource-lightbox.js
concord-consortium/rigse
import React from 'react' import Component from '../helpers/component' import RelatedResourceResult from './related-resource-result' import portalObjectHelpers from '../helpers/portal-object-helpers' import StandardsHelpers from '../helpers/standards-helpers' import { MakeTeacherEditionLink } from '../helpers/make-teac...
examples/js/custom/toolbar/custom-toolbar-1.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { con...
src/App.js
bmatcuk/web-starter-kit
import React from 'react' import { Switch, Route } from 'react-router-dom' import { Helmet } from 'react-helmet' import Header from './components/Header' import Footer from './components/Footer' import HomePage from './components/HomePage' import AboutPage from './components/AboutPage' import LibrariesPage from './comp...
examples/todomvc/containers/Root.js
voidException/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createStore, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import rootReducer from '../reducers'; const store = createStore(rootReducer); export default class Root extends Component { render() { return ...
test/LabelSpec.js
erictherobot/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Label from '../src/Label'; describe('Label', function () { it('Should output a label with message', function () { let instance = ReactTestUtils.renderIntoDocument( <Label> <strong>Message</strong> </Labe...
src/components/GoToSection.js
jonatanramhoj/single-page
import React from 'react'; import { scrollToSection } from '../helpers'; class GoToSection extends React.Component { render () { const href = this.props.href; const theme = this.props.theme; const ghost = this.props.ghost || ''; return ( <a className={`go-to-section ${ghost}`} ...
ajax/libs/rxjs/2.2.28/rx.all.js
sashberd/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 }; v...
src/svg-icons/notification/priority-high.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPriorityHigh = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="19" r="2"/><path d="M10 3h4v12h-4z"/> </SvgIcon> ); NotificationPriorityHigh = pure(NotificationPriorityHigh); NotificationPrio...
node_modules/native-base/src/basic/Tab.js
odapplications/WebView-with-Lower-Tab-Menu
import React, { Component } from 'react'; import { View } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class Tab extends Component { render() { return ( <View ref={c => this._root = c} {...this.props}> {this.p...
RN/RNFluxDemo/components/Login3.js
puyanLiu/LPYFramework
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { Actions } from 'react-native-router-flux'; import Button from "react-native-button"; class Login3 extends Component ...
www/ext-tinymce/ux/form/field/tinymce/plugins/legacyoutput/editor_plugin_src.js
c3d/tao-webui
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing * * This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u...
demo/component/ComposedChart.js
sdoomz/recharts
import React from 'react'; import { ResponsiveContainer, ComposedChart, Line, Bar, Area, XAxis, YAxis, ReferenceLine, ReferenceDot, Tooltip, Legend, CartesianGrid, Brush } from 'recharts'; const data = [ { name: 'Page A', uv: 590, pv: 800, amt: 1400 }, { name: 'Page B', uv: 868, pv: 967, amt: 1506 }, { name: '...
client/acp/components/ChannelsStats.js
NicolasSiver/nodebb-plugin-ns-twitch-monitor
import ChannelsStore from '../stores/ChannelsStore'; import connectToStores from 'alt/utils/connectToStores'; import React from 'react'; class ChannelsStats extends React.Component { static getStores() { return [ChannelsStore]; } static getPropsFromStores() { return ChannelsStore.getState(...
src/client/components/Loader.js
djmill0326/node-random-stuff
import React from 'react'; module.exports = () => ( <div className="flex flex-center flex-column height-100vh"> <div className="spinner"> <div className="rect1"></div> <div className="rect2"></div> <div className="rect3"></div> <div className="rect4"></div> <div className="rect5"></...
src/features/VFS/actions.js
nuagenetworks/visualization-framework
import React from 'react'; import { push } from 'react-router-redux'; import { change } from 'redux-form'; import { ServiceManager } from "../../services/servicemanager"; import { selectFieldValues } from '../../ui-components/utils'; import { getError } from '../../components/Editor/utils'; import { getNetworkProto...
packages/react-error-overlay/src/containers/StackFrame.js
IamJoseph/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { Component } from 'react'; import CodeBlock from './StackFrameCodeBlock'; import { getPrettyURL } from '../ut...
app/routes.js
chehitskenniexd/Archiver
// @flow import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import Home from './components/Home'; import Signup from './components/Signup'; import Other from './components/Other'; import MainRender from './components/MainRender'; import MainHome from './comp...
Libraries/JavaScriptAppEngine/System/JSTimers/JSTimersExecution.js
philonpang/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/CsQueryControls.Demo/Scripts/jquery-1.10.2.js
chanchunghao/CsQueryControls
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Microsoft p...
ajax/libs/react-dom/16.8.6/cjs/react-dom-unstable-fire.profiling.min.js
joeyparrish/cdnjs
/** @license React v16.8.6 * react-dom-unstable-fire.profiling.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* Modernizr 3.0.0pre (Custom Build) | MIT */ 'use strict';...
node_modules/react-icons/io/ios-medical-outline.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoIosMedicalOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m34.4 14.7l-9.2 5.3 9.2 5.3-2.5 4.4-9.2-5.4v10.7h-5v-10.7l-9.2 5.4-2.5-4.4 9.2-5.3-9.2-5.3 2.5-4.4 9.2 5.4v-10.7h5v10.7l9.2-5.4z m-1.7 11.1l-10-5.8 10-5.8-1...
frontend/src/containers/PublicPage.js
OpenCollective/opencollective-website
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; // containers import ProfilePage from './ProfilePage'; import Collective from './Collective' // components import NotFound from '../components/NotFound'; // actions import fetchProfil...
examples/with-create-react-app/src/index.js
lwhitlock/grow-tracker
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; import WebFontLoader from 'webfontloader'; WebFontLoader.load({ google: { families: ['Roboto:300,400,500,700', 'Material Icons'], }, }); ReactDOM.render( <App />, document.getElementById('root') );...
web_frontend/react_reduxstagram/client/components/Main.js
axnion/playground
import React from 'react' import { Link } from 'react-router' const Main = React.createClass({ render() { return ( <div> <h1> <Link to="/">Reduxstagram</Link> </h1> {React.cloneElement(this.props.children, this.props)} </div> ) } }) export default Main;
blog-2018/src/index.js
WendySanarwanto/udemy-modern-react-with-redux
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import ReduxPromise from 'redux-promise'; import reducers from './reducers'; import PostsIndex from...
example/examples/FitToCoordinates.js
amitv87/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, TouchableOpacity, Text, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LA...
client/app/components/edit-location-form.js
sirbrillig/voyageur-js
import React from 'react'; import WideButton from './wide-button'; export default React.createClass( { propTypes: { location: React.PropTypes.object.isRequired, onSaveLocation: React.PropTypes.func.isRequired, onCancelEditLocation: React.PropTypes.func.isRequired, onDeleteLocation: React.PropTypes.fu...
frontend/iamboard/bootstrap.js
baohx2000/iamboard
/* globals window */ import React from 'react'; import ReactDOM from 'react-dom'; import RootComponent from './root-component'; import injectTapEventPlugin from 'react-tap-event-plugin'; window.React = React; injectTapEventPlugin(); ReactDOM.render( RootComponent, document.getElementById('app') );
docs/assets/plugins/fancybox/lib/jquery-1.9.0.min.js
cshrem/Bitcoin-XYZ
/*! 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...
src/templates/index-template.js
faizhasim/faizhasim.github.io
// @flow strict import React from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; import Sidebar from '../components/Sidebar'; import Feed from '../components/Feed'; import Page from '../components/Page'; import Pagination from '../components/Pagination'; import { useSiteMetadata }...
packages/react-error-overlay/src/components/NavigationBar.js
GreenGremlin/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React from 'react'; import { red, redTransparent } from '../styles'; const navigationBarStyle = { marginBottom: '0...
react/src/components/dashboard/settings/settings.daemonStdoutPanel.js
pbca26/EasyDEX-GUI
import React from 'react'; import translate from '../../../translate/translate'; import { connect } from 'react-redux'; import { coindGetStdout } from '../../../actions/actionCreators'; import Store from '../../../store'; class DaemonStdoutPanel extends React.Component { constructor() { super(); this.state =...
ajax/libs/recompose/0.23.3/Recompose.min.js
him2him2/cdnjs
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],n):n(t.Recompose=t.Recompose||{},t.React)}(this,function(t,n){"use strict";function r(t,n){return t===n?0!==t||0!==n||1/t==1/n:t!==t&&n!==n}function e(t,n){if(...
14/notes-fa/src/Notes.js
nanohop/hop_into_react
import React, { Component } from 'react'; import { Grid, Row, Col } from 'react-bootstrap'; import NoteList from './NoteList'; import NoteEditor from './NoteEditor'; class Notes extends Component { state = { notes: [], editNoteId: null } componentDidMount() { this.fetchNotes(); } fetchNotes(...
lib/components/Voter.js
pguth/puddin
import React from 'react' export default class Voter extends React.Component { onUpvote(e) { this.props.onVote(1) } onDownvote(e) { this.props.onVote(-1) } render() { return <div className="voter"> {this.props.vote > 0 ? <div className="up-vote" /> : null} {this.props.vote === 0 ? ...
src/Settings.js
hryanjones/kyakarun
import React from 'react'; class Settings extends React.Component { constructor() { super(); this.state = { importValidationError: null, }; this._importData = this._importData.bind(this); this._validateAndGetNewData = this._validateAndGetNewData.bind(this); this._onToggleMixUpwards = th...
ajax/libs/ionic/0.9.20-alpha/js/ionic.js
RizkyAdiSaputra/cdnjs
/*! * Copyright 2014 Drifty Co. * http://drifty.com/ * * Ionic, v0.9.20 * A powerful HTML5 mobile app framework. * http://ionicframework.com/ * * By @maxlynch, @helloimben, @adamdbradley <3 * * Licensed under the MIT license. Please see LICENSE for more information. * */; // Create namespaces window.ionic...
react/src/components/AtomForm/MultiAttachments.js
sinfin/folio
import React from 'react' import MultiAttachmentsSelect from './MultiAttachmentsSelect' export default function MultiAttachments ({ atom, index, openFileModal }) { return ( <React.Fragment> {atom.record.meta.attachments.map((attachmentType) => ( attachmentType.plural ? ( <div className='...
clients/packages/admin-client/src/storybook/settings/forms/formGroup/index.js
nossas/bonde-client
import React from 'react' import { controlLabelStyle, formGroupStyle } from './styles' import HelpBlock from '../helpBlock' const ControlLabel = ({ children, htmlFor }) => ( <label style={controlLabelStyle} htmlFor={htmlFor}> {children} </label> ) export default (InputComponent) => ({ id, touched, error...
actor-apps/app-web/src/app/components/modals/Contacts.react.js
fengchenlianlian/actor-platform
// // Deprecated // import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import ContactStore from 'stores/ContactStore'; import Modal from...
modules/dreamview/frontend/src/components/Header/HMISelectors.js
xiaoxq/apollo
import React from 'react'; import Selector from 'components/Header/Selector'; import WS from 'store/websocket'; export default class HMISelectors extends React.Component { render() { const { modes, currentMode, maps, currentMap, vehicles, currentVehicle, } = this.props; return ( ...
packages/jsbattle-webpage/src/components/test/LiveCodeCodeTab.spec.js
jamro/jsbattle
import React from 'react'; import {shallow, mount} from 'enzyme'; import LiveCodeCodeTab from '../LiveCodeCodeTab.js'; test('LiveCodeCodeTab renders properly', () => { const wrapper = shallow(<LiveCodeCodeTab />); expect(wrapper.render().get(0)).toHaveProperty('name', 'div'); }); test('trigger on change', () => {...
example/examples/MapStyle.js
Nabobil/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LATITUDE_DELTA = 0.0922; const...
node_modules/@material-ui/core/esm/CardHeader/CardHeader.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; import Typography from '../Typography'; exp...
app/javascript/mastodon/features/compose/components/navigation_bar.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ActionBar from './action_bar'; import Avatar from '../../../components/avatar'; import Permalink from '../../../components/permalink'; import IconButton from '../../../components/icon_button...
src/client/components/events/eventList.js
nicolaschaillot/electron-events
import React from 'react'; import timeUtils from '../../utils/timeUtils'; import eventUtils from '../../utils/eventUtils'; import Event from './event'; import _ from 'lodash'; class EventList extends React.Component { static propTypes = { onEventClick: React.PropTypes.func, onHeaderClick: React.PropTypes.fu...
ajax/libs/forerunnerdb/1.4.24/fdb-core.min.js
wout/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...
src/modules/Components/Views/Contact.js
rtellez700/MESA_Connect_2.0
import React, { Component } from 'react'; class Contact extends Component { render() { return ( <div className="display--in-center"> <h1> Hello from Contact.js! </h1> </div> ); } } module.exports = Contact;
webpack/containers/Application/index.js
jlsherrill/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { BrowserRouter as Router } from 'react-router-dom'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as actions from '../../scenes/Organizations/OrganizationActions'; import reducer from '.....
_course_exercises/lnd/src/index.js
David-Castelli/react-testing
import React from 'react' import { render } from 'react-dom' import './stylesheets/ui.scss' import './stylesheets/index.scss' import { App } from './components/App' import {Whoops404} from './components/Whoops404' import {Router, Route, hashHistory} from 'react-router' window.React = React render( <Router history...
src/helpers/__tests__/makeRouteHooksSafe-test.js
mscienski/stpauls
import { expect } from 'chai'; import React from 'react'; import { IndexRoute, Route } from 'react-router'; import makeRouteHooksSafe from '../makeRouteHooksSafe'; describe('makeRouteHooksSafe', () => { it('should work with JSX routes', () => { const onEnter = () => { throw new Error('Shouldn\'t call onEn...
src/main/web/app/components/Calendar.js
dhbw-timetable/rablabla
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import TimeView from './TimeView'; import Day from './Day'; export default class Calendar extends Component { constructor(props) { super(props); this.state = { backdrop: false, backdropTargetHandler: ()...
src/video_list_item.js
nikitadeshmukh02/testVsCode
import React from 'react' const VideoListItem=({video,onVideoSelect})=>{ //debugger //const video=video; //debugger const imageURL=video.snippet.thumbnails.default.url; //let onVideoSelect=onVideoSelect return( <li onClick={()=>onVideoSelect(video)} className="list-group-item"> <div className='video-list m...
src/isomorphic/classic/element/__tests__/ReactElement-test.js
chinakids/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...
src/App.js
Space-Cadets/Titania-v2
// @flow import React from 'react' import { Router, Route, browserHistory, IndexRoute } from 'react-router' import { Provider } from 'react-redux' import getMuiTheme from 'material-ui/styles/getMuiTheme' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import injectTapEventPlugin from 'react-tap-event...
src/svg-icons/communication/stay-current-landscape.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayCurrentLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
docs/src/components/UseTimer.js
HsuTing/cat-components
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import radium from 'radium'; import timer from 'cat-components/lib/timer'; import Button from 'cat-components/lib/button'; @radium @timer() export default class UseTimer extends React.Component { static propTypes = { timer: PropTypes.o...
docs/app/Examples/collections/Grid/Variations/GridExampleTextAlignmentRight.js
mohammed88/Semantic-UI-React
import React from 'react' import { Grid, Menu } from 'semantic-ui-react' const GridExampleTextAlignmentRight = () => ( <Grid textAlign='right' columns={3}> <Grid.Row> <Grid.Column> <Menu fluid vertical> <Menu.Item className='header'>Cats</Menu.Item> </Menu> </Grid.Column> ...
node_modules/react-icons/io/ios-reload.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoIosReload = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m15 5c8.3 0 15 6.7 15 15l4.3-4.1 0.7 0.7-5.5 5.3-5.2-5.3 0.7-0.7 4 4c0-7.6-6.3-13.9-14-13.9s-14 6.3-14 14 6.3 14 14 14c6.2 0 11.4-3.9 13.3-9.5l0.9 0.3c-2 5.9-7.6 10...
shared/components/HTML/index.js
pebie/react-universally-node-config
/* eslint-disable react/no-danger */ /* eslint-disable jsx-a11y/html-has-lang */ import React from 'react'; import PropTypes from 'prop-types'; /** * The is the HTML shell for our React Application. */ function HTML(props) { const { htmlAttributes, headerElements, bodyElements, appBodyString } = props; return ...
imports/modules/private-route.js
mgscreativa/base
import { Meteor } from 'meteor/meteor'; import React from 'react'; import { Route, Redirect } from 'react-router-dom'; import { PropTypes } from 'prop-types'; const PrivateRoute = ({ component: Component, ...rest }) => ( <Route {...rest} render={props => ( (!Meteor.loggingIn() && !Meteor.userId()) ? ( ...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/.eslintrc.js
Minoli/carbon-apimgt
module.exports = { parser: 'babel-eslint', // Default parser throws unexpected token error while the syntax is correct parserOptions: { ecmaVersion: 6, ecmaFeatures: { jsx: true, modules: true, }, }, env: { browser: true, es6: true, }, ...
src/window.js
fdiogo/weaki
import { ipcRenderer } from 'electron'; import React from 'react'; import { render } from 'react-dom'; import { Router, Route } from 'react-router-dom'; import History from 'history/createMemoryHistory'; import path from 'path'; import Explorer from './components/explorer/explorer'; import Editor from './components/ed...
src/components/search_bar.js
vominhhoang308/ReduxSimpleStarter
import React, { Component } from 'react'; // always import as when the component that has jsx compiled into vanilla js, it be comes React.createElement... class SearchBar extends Component { constructor(props){ super(props); this.state = {term: ''}; } render() { return ( <div className="search-bar"> ...
src/js/components/results.js
gragland/instatype
import React from 'react'; import Result from './result.js'; class Results extends React.PureComponent { constructor(props) { super(props); } render(){ const { data, handleSelect, thumbStyle } = this.props; return ( <div className="resultsContainer"> { data && data.length > 0 && ...