path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
frontend/src/components/SpeechToText.js
ttang02/tongue-twister
import React, { Component } from 'react'; export default class SpeechToText extends Component { static defaultProps = { lang : 'fr-FR' } constructor(props){ super(props); this.state = {output : '', activated : false}; this.startRecognition = this.startRecognition.bind(this); this.stopRecogni...
src/components/Question.js
gsans/handsup-react
import React from 'react' import PropTypes from 'prop-types' import { graphql } from 'react-apollo' import Votes from './Votes' import { flyingHearts, DEFAULT_PROFILE_PIC, ALERT_DEFAULT } from '../utils/helpers' import TimeAgo from 'react-timeago' import TweetParser from './TweetParser' import Alert from 'react-s-alert...
src/MessagePanel/index.js
oneteam-dev/react-oneteam
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './index.css'; const MessagePanel = props => { return ( <div {...props} className={classNames(styles.root, props.className)}> {props.children} </div> ); }; MessagePanel.propTypes = ...
fields/types/relationship/RelationshipColumn.js
w01fgang/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const moreIndicatorStyle = { color: '#bbb', fontSize: '.8rem', fontWeight: 500, marginLeft: 8, }; var RelationshipColumn = React.createClass({ displayName: 'Rel...
app/src/routes/HomePublic.js
quiaro/chunches
import React from 'react'; import { Redirect } from 'react-router-dom'; import NavBarPublic from '../components/NavBarPublic'; import { isLoggedIn } from '../common/AuthService'; const HomePublic = () => { return isLoggedIn() ? <Redirect to="/home" /> : <div> <NavBarPublic /> <main> ...
ajax/libs/material-ui/4.12.2/esm/Tabs/Tabs.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import * as React from 'react'; import { isFragment } from 'react-is'; import PropTypes from 'pro...
docs/src/pages/system/typography/FontSize.js
kybarg/material-ui
import React from 'react'; import Typography from '@material-ui/core/Typography'; import Box from '@material-ui/core/Box'; export default function FontSize() { return ( <Typography component="div"> <Box fontSize="fontSize" m={1}> Default </Box> <Box fontSize="h6.fontSize" m={1}> ...
ajax/libs/6to5/1.12.10/browser.js
nolsherry/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return...
src/components/DaysViewHeading.js
evandhq/react-persian-datepicker
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { persianNumber } from '../utils/persian'; import { leftArrow, rightArrow } from '../utils/assets'; export default class Heading extends Component { static propTypes = { month: PropTypes.object.isRequired }; static contextT...
app/javascript/mastodon/components/status.js
mecab/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import AvatarOverlay from './avatar_overlay'; import RelativeTimestamp from './relative_timestamp'; import DisplayName from './display_name'; import MediaGallery from...
js/App/Components/TabViews/SubViews/DimmerButton.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/svg-icons/image/compare.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCompare = (props) => ( <SvgIcon {...props}> <path d="M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v2h2V1h-2v2zm0 15H5l5-6v6zm9-15h-5v2h5v13l-5-6v9h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ImageCo...
packages/mineral-ui-icons/src/IconInvertColorsOff.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconInvertColorsOff(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...ic...
src/components/Picture/Picture.js
arvigeus/studentlife
// @flow import React from 'react'; import cx from 'classnames'; import { Link } from 'react-router'; import type { PictureType } from './'; import s from './Picture.css'; type PicturePropsType = { className?: string, title?: string, link?: string, type: 'hero' | 'wide' | 'portrait' | 'square', rotate?: st...
packages/material-ui-icons/src/ArrowDropDownCircle.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z" /></React.Fragment> , 'ArrowDropDownCircle');
examples/todomvc/webpack.config.js
quicksnap/redux
var path = require('path'); var webpack = require('webpack'); module.exports = { devtool: 'eval', entry: [ 'webpack-dev-server/client?http://localhost:3000', 'webpack/hot/only-dev-server', './index' ], output: { path: path.join(__dirname, 'dist'), filename: 'bundle.js', publicPath: '/st...
examples/index.js
neilff/react-d3-examples
import '../node_modules/basscss/css/basscss.css'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { ReduxRouter } from 'redux-router'; import configureStore from './store/configureStore'; const store = configureStore({}); ReactDOM.render( <div> <Prov...
packages/mcs-lite-admin-web/src/containers/System/System.js
MCS-Lite/mcs-lite
import React from 'react'; import PropTypes from 'prop-types'; import * as R from 'ramda'; import { Observable } from 'rxjs/Observable'; import Helmet from 'react-helmet'; import TabItem from 'mcs-lite-ui/lib/TabItem'; import A from 'mcs-lite-ui/lib/A'; import isJSONValidator from 'validator/lib/isJSON'; import Dashboa...
ajax/libs/yui/3.7.0/datatable-core/datatable-core-debug.js
sh4hin/cdnjs
YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @since 3.5.0 **/ var INVALID = Y.Attribute.INVALID_VALUE, Lang = Y.Lang, isFunction = Lang.isFunction, isObject = Lang.isO...
ajax/libs/forerunnerdb/1.3.848/fdb-core.js
tonytomov/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/svg-icons/device/signal-cellular-off.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularOff = (props) => ( <SvgIcon {...props}> <path d="M21 1l-8.59 8.59L21 18.18V1zM4.77 4.5L3.5 5.77l6.36 6.36L1 21h17.73l2 2L22 21.73 4.77 4.5z"/> </SvgIcon> ); DeviceSignalCellularOff = pure(...
react/src/base/tables/SprkTable.stories.js
sparkdesignsystem/spark-design-system
import React from 'react'; import SprkTable from './SprkTable'; import SprkButton from '../../components/buttons/SprkButton'; import { markdownDocumentationLinkBuilder } from '../../../../storybook-utilities/markdownDocumentationLinkBuilder'; export default { title: 'Components/Table', component: SprkTable, deco...
ajax/libs/react-instantsearch/4.1.1/Connectors.js
ahocevar/cdnjs
/*! ReactInstantSearch 4.1.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
src/components/menu/Menu.js
heikkipesonen/sysart
import React from 'react'; import MenuItem from './MenuItem'; class Menu extends React.Component { constructor (props) { super(props); } render () { let classNames = [this.props.className || '', 'menu-items']; return ( <ul className={classNames.join(' ')}> {this.props.src.map((menuIte...
src/native/todos/Footer.js
reedlaw/read-it
// @flow import type { State, Todo } from '../../common/types'; import React from 'react'; import buttonsMessages from '../../common/todos/buttonsMessages'; import { Box, Button } from '../../common/components'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { values } from...
ajax/libs/react/15.4.1/react-with-addons.js
kennynaoh/cdnjs
/** * React (with addons) v15.4.1 */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undef...
src/index.js
Romathonat/RRSUI-boilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore,compose } from 'redux'; import reducer from './reducers/index.js'; import App from './App'; let store = createStore(reducer, /*myInitialState*/); ReactDOM.render( <Provider store={store}> <...
src/server/router.js
junkycoder/obycejnaholka
import React from 'react'; import { match, RouterContext } from 'react-router' import render from './render'; import routes from '../routes'; export default function () { return (req, res) => match({ routes, location: req.url }, (error, redirectLocation, renderProps) => { if (error) { res.status(500).se...
packages/material-ui-icons/src/AddLocationOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9zm6-3h-2v2H9v2h2v2h2v-2h2V8h-2z" ...
ajax/libs/material-ui/5.0.0-alpha.27/useMediaQuery/useMediaQuery.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import * as React from 'react'; import { getThemeProps, useTheme } from '@material-ui/styles'; import useEnhancedEffect from '../utils/useEnhancedEffect'; export default function useMediaQuery(queryInput, options = {}) { const theme = useTheme(); const prop...
src/containers/ControlPanel.js
orbitdb/orbit-web
'use strict' import React from 'react' import { hot, setConfig } from 'react-hot-loader' import { Redirect, useLocation } from 'react-router-dom' import { useTranslation } from 'react-i18next' import { useObserver } from 'mobx-react' import classNames from 'classnames' import RootContext from '../context/RootContext'...
packages/material-ui-icons/src/ToggleOffSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5zM7 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z" /></React.Fra...
static/js/vendor/jquery-1.9.0.min.js
daveywilkie/TweetMoar
/*! 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...
App/Client/Component/emptyBlock.js
qianyuchang/React-Chat
import React from 'react' const EmptyBlock=React.createClass({ render:function(){ return( <div className="emptyBlock"></div> ); } }) export default EmptyBlock;
ajax/libs/video.js/5.0.0-rc.69/video.novtt.js
redmunds/cdnjs
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.videojs = f()}...
src/components/App.js
seanyboy49/ShortsOrPants
import React, { Component } from 'react'; import SearchBar from './SearchBar'; import WeatherList from './WeatherList'; class App extends Component { render() { return ( <div> <SearchBar/> <WeatherList/> </div> ); } } export default App;
client_apps/canvas_quizzes/apps/common/test/helpers/react_route_suite.js
narigone/canvas
require([ 'react' ], function(React) { window.React = React; // Creates a DOM element that ReactSuite tests will use tmount the subject // in. Although jasmine_react does that automatically on the start of each // ReactSuite, we will prepare it before-hand and expose it to jasmine.fixture // if you need to access di...
src/js/components/icons/base/Robot.js
linde12/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...
packages/react-scripts/fixtures/kitchensink/template/src/features/env/FileEnvVariables.js
Timer/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; const FileEnvVariables = () => ( <span> <span id="feature-file-env-original-1"> {process.env.REA...
ajax/libs/babel-core/4.7.5/browser-polyfill.js
cgvarela/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/components/common/ImageViewer.js
abhisharkjangir/nasa
import React, { Component } from 'react'; import PT from 'prop-types'; class ImageViewer extends Component { constructor() { super(); } render(){ return ( <div className="image-viewer"> <div className="close" onClick={this.props.imgclose}> <span className='glyphicon glyphicon-remo...
src/components/Header/Header.js
ben-bartle/glowing-octo-spoon
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isomorp...
src/layouts/CoreLayout.js
SawyerHood/pomodoro-redux
import React from 'react' import '../styles/core.scss' // Note: Stateless/function components *will not* hot reload! // react-transform *only* works on component classes. // // Since layouts rarely change, they are a good place to // leverage React's new Statelesss Functions: // https://facebook.github.io/react/docs/r...
client/Contests/pages/HomePage.js
rystecher/senior-design
import React from 'react'; import LoginOrRegisterForm from '../Login/components/LoginOrRegisterForm.js'; import { connect } from 'react-redux'; import { userRegisterRequest } from '../Login/actions/registerActions'; import '../contestnavigator.css'; import './homepage.css'; class HomePage extends React.Component { ...
__tests__/index.android.js
SKatiyar/LetterTrack
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
app/javascript/mastodon/features/account_timeline/containers/header_container.js
KnzkDev/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import Header from '../components/header'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, unmuteAccount, pinAccount, unpinAccount, } from '../../../actions/account...
2_route_redux_render/component/module/baseMask.js
chkui/react-server-demo
import React from 'react' const cn = require('classnames/bind').bind(require('./baseMask.scss')) /** * * @param {object} props { * children: 显示子元素 * } * @constructor */ const BaseMask = props => <div className={cn('mask')}> <div className={cn('view')}/> {props.children} </div> expor...
src/gardenactionselector/GardenActionSelector.js
BushrootPDX/app
import React, { Component } from 'react'; export default class GardenActionSelector extends Component { render (){ const { garden, history } = this.props; const { saveGarden, deleteGarden } = this.props; return( <div> <button type="button" onClick={() => sav...
Redux-Weather/src/components/googleMap.js
vivekbharatha/ModernReactWithReduxCourseUdemy
import React, { Component } from 'react'; export default class GoogleMap extends Component { componentDidMount() { new google.maps.Map(this.refs.map, { zoom: 12, center: { lat: this.props.lat, lng: this.props.lon } }); } render() { return <div ref="map" />; } }
ajax/libs/rxjs/2.2.27/rx.js
yukinying/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...
public/js/app.js
MelanistOnca/bookList
import React from 'react'; import { render } from 'react-dom'; //may want react-router stuff here instead of in site? import { Router, Route, IndexRoute, browserHistory } from 'react-router'; //review react-router to see if you need anything else, or for more detail on the imported. import $ from 'jquery'; // componen...
app/components/TerminalLogs.js
tiberiusuciu/rpg-io
import React, { Component } from 'react'; import styles from '../styles/TerminalLogs.css'; // TODO: Change to moment.js timing let id = 0; class TerminalLogs extends Component { render() { return ( <div className={styles.lineLength} > <ul className={styles.listStyling}> { // Log = { // use...
react/features/video-menu/components/web/MuteEveryoneElseButton.js
gpolitis/jitsi-meet
// @flow import React from 'react'; import ContextMenuItem from '../../../base/components/context-menu/ContextMenuItem'; import { translate } from '../../../base/i18n'; import { IconMuteEveryoneElse } from '../../../base/icons'; import { connect } from '../../../base/redux'; import AbstractMuteEveryoneElseButton, { ...
examples/inabox-gpt-pubads-impl.js
tdrl/amphtml
(function(){var window=this,document=this.document;var h,p=this,r=function(a){return void 0!==a},aa=function(){},ba=function(){throw Error("unimplemented abstract method");},ca=function(a){a.getInstance=function(){return a.ma?a.ma:a.ma=new a}},da=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)ret...
app/components/Toggle/index.js
samit4me/react-boilerplate
/** * * LocaleToggle * */ import React from 'react'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map((value) => ( <ToggleOption key...
app/pages/lab/workflows.spec.js
amyrebecca/Panoptes-Front-End
import React from 'react'; import assert from 'assert'; import { shallow } from 'enzyme'; import sinon from 'sinon'; import WorkflowsPage from './workflows'; const meta = function () { return { meta: { page: 1, page_size: 1 }}; }; const workflows = [ { id: '1', display_name: 'Rad Workflow', getMeta: meta }, { i...
react/redux/client/src/components/dashboard/messaging/compose-message.js
sabertazimi/st-proj
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; import { fetchRecipients, startConversation } from '../../../actions/messaging'; const form = reduxForm({ form: 'composeMessage', validate }); function validate(formProps) { ...
ui/src/components/table/table.js
gchatterjee/cit-gened-finder
import React from 'react' import { capitalize } from 'lodash' import { getClasses } from '../../services/data.service' import { generateComparisonFunction } from './table.action' import { COLUMNS, SORT_ORDER } from './table.constant' import PropTypes from 'prop-types' import { FontAwesomeIcon } from '@fortawesome/react...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Promises.js
paweljedrzejczyk/create-react-app
/** * 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. */ import Rea...
src/shared/components/boilerplate.js
namroodinc/truth-serum
import React from 'react'; export default class BoilerPlate extends React.Component { render() { return ( <div /> ) } }
components/Navigation/Navigation.js
patmood/svg-jsx-online
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React from 'react'; import './Navigation.scss'; import Link from '../Link'; function Navigation() { return ( <ul className="Navigation" role="menu"> ...
client/src/components/auth/header-login.js
mikelearning91/seeme-starter
import { Link } from 'react-router'; import React, { Component } from 'react'; const axios = require('axios'); const cookie = require('react-cookie'); class HeaderLogin extends React.Component { constructor(props) { super(props); this.state = { email: '', password: '' } this.handleSubmit ...
ajax/libs/forerunnerdb/1.3.697/fdb-all.min.js
BitsyCode/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/docs/pages/colors.js
gabrielcsapo/psychic-ui
import React from 'react'; class Colors extends React.Component { render() { const { brands } = this.props; const height = window.innerHeight; const width = window.innerWidth; const radius = (width / brands.length) - 50; const style = { circle: { borderRadius: "50%", width: ...
app/javascript/mastodon/features/ui/components/bundle_column_error.js
Nyoho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import Column from './column'; import ColumnHeader from './column_header'; import ColumnBackButtonSlim from '../../../components/column_back_button_slim'; import IconButton from '../../../components/...
Libraries/vendor/react/browser/eventPlugins/PanResponder.js
common2015/react-native
/** * @providesModule PanResponder */ "use strict"; var TouchHistoryMath = require('TouchHistoryMath'); var currentCentroidXOfTouchesChangedAfter = TouchHistoryMath.currentCentroidXOfTouchesChangedAfter; var currentCentroidYOfTouchesChangedAfter = TouchHistoryMath.currentCentroidYOfTouchesChangedAfter; var pre...
src/app/js/components/App.js
AppSaloon/socket.io-tester
import React from 'react' import Column from './column/ColumnView' import Head from './head/Head' import Message from './messages/Messages' import Search from './search/Search' import ColorPicker from './ColorPicker' import UpdateMessage from './UpdateMessage' const App = () => <div className...
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js
nguyenhongson03/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ActivityHeader extends React.Component { static propTypes = { close: React.PropTypes.func, title: React.PropTypes.stri...
imports/plugins/core/accounts/client/templates/profile/userOrdersList.js
anthonybrown/reaction
import { Template } from "meteor/templating"; import { Components } from "@reactioncommerce/reaction-components"; /** * userOrdersList helpers * */ Template.userOrdersList.helpers({ // Returns React Component completedOrders() { let orders; if (Template.currentData() && Template.currentData().data) { ...
src/components/general/modals/ConfirmModal.js
katima-g33k/blu-react-desktop
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button, Modal } from 'react-bootstrap'; export default class ConfirmModal extends Component { renderButtons = () => ( <div> <Button onClick={this.props.onCancel} > {this.props.cancelText || 'Annuler...
src/library/Table/Table.js
mineral-ui/mineral-ui
/* @flow */ import React, { Component } from 'react'; import deepEqual from 'react-fast-compare'; import memoizeOne from 'memoize-one'; import SelectableTable from './SelectableTable'; import SelectableSortableTable from './SelectableSortableTable'; import SortableTable from './SortableTable'; import TableBase from './...
node_modules/react-tools/src/core/__tests__/ReactCompositeComponentNestedState-test.js
nss-day-cohort-17/nss-day-cohort-17.github.io
/** * Copyright 2013-2014, 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...
frontend/src/components/AsyncButton.js
OpenCollective/opencollective-website
import React from 'react'; import classNames from 'classnames'; export default ({ inProgress, onClick, customClass, className, children, color, disabled, style }) => { const noop = () => {}; const btnClass = classNames({ 'Button': true, [customClass]: !!customClass, [`Button--${color}`]...
fields/components/columns/IdColumn.js
joerter/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var IdColumn = React.createClass({ displayName: 'IdColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, list: React.PropTypes.obje...
src/components/common/svg-icons/editor/wrap-text.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorWrapText = (props) => ( <SvgIcon {...props}> <path d="M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3 3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"/> </SvgIcon> ); EditorWra...
themes/metrumy/src/ReactIndex.js
bart747/mysite
'use strict' // base imports import React from 'react' import ReactDOM from 'react-dom' // component imports import FileSelector from './FileSelector.js' const containero = ( <section className='article--narrow'> <FileSelector /> </section> ) const domContainer = document.querySelector('#react-root') if (dom...
luftqualitaet_sachsen/static/js/vendor/jquery-1.11.0.min.js
plumps/luftqualitaet_sachsen
/*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
ajax/libs/yui/3.3.0/event/event.js
suy/cdnjs
var GLOBAL_ENV = YUI.Env; if (!GLOBAL_ENV._ready) { GLOBAL_ENV._ready = function() { GLOBAL_ENV.DOMReady = true; GLOBAL_ENV.remove(YUI.config.doc, 'DOMContentLoaded', GLOBAL_ENV._ready); }; // if (!YUI.UA.ie) { GLOBAL_ENV.add(YUI.config.doc, 'DOMContentLoaded', GLOBAL_ENV._ready); ...
client/router.js
wilywallabies/wilyVideo
import React from 'react'; import {render} from 'react-dom'; import Main from './components/App'; render(<Main />, document.getElementById('root')); //will hold router
shared/router/index.js
chrisngobanh/freshestsquid
import $ from 'jquery'; import _ from 'lodash'; import director from 'director'; import Helmet from 'react-helmet'; import React from 'react'; import routes from './routes'; import axios from '../config/axios'; const isServer = !process.browser; const Router = (isServer ? director.http.Router : director.Router); f...
components/lightbox.js
balajivasi/TeamProfile
import React from 'react' /* light box component will take care about lightBox, close and children data/components */ export default class LightBox extends React.Component{ showlight(){ this.props.showHideLightBox(!this.props.globalData.showLightbox) } render(){ return <div className="lightBox"> <div clas...
packages/material-ui-icons/src/SignalCellular2Bar.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SignalCellular2Bar = props => <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z" /><path d="M14 10L2 22h12z" /> </SvgIcon>; SignalCellular2Bar = pure(SignalCellular2Bar); SignalCellular2Bar.mu...
src/components/artboard/artboardtabs/TplImage.js
justinyueh/express-react
import React from 'react' import update from 'react/lib/update' import $ from 'jquery' import Dropzone from 'react-dropzone' import { ImageTpl } from '../templates/Templates' const style = { maxWidth: '100%' }; export default class TplImage extends React.Component { constructor() { super(); this.state = ...
pages/api/touch-ripple.js
Kagami/material-ui
import 'docs/src/modules/components/bootstrap'; // --- Post bootstrap ----- import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './touch-ripple.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default Page;
src/routes/Tasks/components/TasksMain.js
makcalif/HomeMaintenancePlanner
import React from 'react' import PropTypes from 'prop-types' import TasksList from './TasksList' import 'react-date-picker/index.css' import { DateField, Calendar } from 'react-date-picker' class TasksMain extends React.Component { static propTypes = { tasks: PropTypes.object.isRequired, taskAdded: ...
Schrodinger/Schrodinger_2017-1_docs/Data/SearchStem_Chunk405.js
platinhom/ManualHom
define({"tisfi":{"satisfied":[414,443,667,687,696,799,859,866,874,892,913,921,942,1175,1270,1279,1284,1287,1312,1360,1361,1404,1484,1864,1919,2099,3577,3679,3709,3873,3902,3992,4013,4018,4069,4084,4225,4293,4326,4329,4330,4391,4437,4485,4535,4541,4544,4547,4550,4558,4559,4565,4568,4604,4642],"satisfies":[737,829,831,89...
src/components/AboutMe.js
patitonar/personal-website
import React from 'react'; import { aboutMe } from '../constants'; import { AboutMeContainer, AboutMeTitle, AboutMeContent, AvatarWrapper, Avatar } from './styles'; const AboutMe = () => ( <AboutMeContainer> <AboutMeTitle>About Me</AboutMeTitle> <AboutMeContent> <AvatarWrapper> <Avatar/> ...
ajax/libs/jquery/1.4.2/jquery.js
mikelambert/cdnjs
/*! * jQuery JavaScript Library v1.4.2 * 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. ...
src/pages/lessons/LessonsPage.js
bowmanmc/kame
import React from 'react'; import Card from '../../components/card'; import Levels from '../../data/levels'; class LessonsPage extends React.Component { constructor(props) { super(props); } render() { let lessons = []; Levels.categories.map(category => { lessons.push...
src/packages/@ncigdc/uikit/UnstyledButton.js
NCI-GDC/portal-ui
// This component exists to satisfy this eslint rule "jsx-a11y/no-static-element-interactions" // Such that something is semantically clickable but not styled like a button import React from 'react'; const base = { backgroundColor: 'inherit', border: 'none', cursor: 'pointer', outline: 'none', padding: 0, }...
react-flux-mui/js/material-ui/src/svg-icons/communication/portable-wifi-off.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPortableWifiOff = (props) => ( <SvgIcon {...props}> <path d="M17.56 14.24c.28-.69.44-1.45.44-2.24 0-3.31-2.69-6-6-6-.79 0-1.55.16-2.24.44l1.62 1.62c.2-.03.41-.06.62-.06 2.21 0 4 1.79 4 4 0 .21-.02....
app/containers/App/components/VacantLot.js
nikb747/threejs-react-proto
// @flow import React from 'react' import * as THREE from 'three' import {GLOBAL_X_OFFSET, GLOBAL_Y_OFFSET, UNIT_SCALE} from '../constants' const VacantLot = (props: {x: number, y: number, color: number}) => { let actualSize = UNIT_SCALE; let actualHeight = UNIT_SCALE * 0.2; let localOffset = (actualSize - UNIT_...
src/components/misc/link.js
awaseem/Jam
import React from 'react'; import styles from '../../css/skeleton.css'; function Href(props) { return ( <a className={styles.a} href={props.href}>{props.children}</a> ); } Href.propTypes = { children: React.PropTypes.any.isRequired, href: React.PropTypes.any.isRequired, }; export default Href;
ajax/libs/react-native-web/0.11.6/exports/TouchableHighlight/index.js
cdnjs/cdnjs
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } f...
src/svg-icons/action/trending-flat.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingFlat = (props) => ( <SvgIcon {...props}> <path d="M22 12l-4-4v3H3v2h15v3z"/> </SvgIcon> ); ActionTrendingFlat = pure(ActionTrendingFlat); ActionTrendingFlat.displayName = 'ActionTrendingFlat'; A...
fields/types/boolean/BooleanFilter.js
xyzteam2016/keystone
import React from 'react'; import { SegmentedControl } from 'elemental'; const VALUE_OPTIONS = [ { label: 'Is Checked', value: true }, { label: 'Is NOT Checked', value: false }, ]; function getDefaultValue () { return { value: true, }; } var BooleanFilter = React.createClass({ propTypes: { filter: React.Pro...
src/routes/index.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import { UserAuthWrapper } from 'redux-auth-wrapper' import store from '../store'; import { syncHistoryWithStore, routerActions } from 'react-router-redux'; import AppContainer from '../containers/AppContainer'; import...
packages/material-ui-icons/src/PermContactCalendarSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M21 3h-3V1h-2v2H8V1H6v2H3v18h18V3zm-9 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1z" /></React...
draft-js-sidebar-plugin/src/components/Sidebar/index.js
vacenz/last-draft-js-plugins
import React from 'react' import DraftOffsetKey from 'draft-js/lib/DraftOffsetKey' export default class Sidebar extends React.Component { state = { position: { transform: 'scale(0)', modalVisible: false, modal: null } } componentDidMount () { this.props.store.subscribeToItem('edit...
src/components/Spinner/cubeGrid.js
hungtruongquoc/shipper_front
import React from 'react'; class CubeGrid extends React.Component { static propTypes = {} render = () => ( <div className="sk-cube-grid"> <div className="sk-cube sk-cube1"></div> <div className="sk-cube sk-cube2"></div> <div className="sk-cube sk-cube3"></div> <div className="sk-cube sk...