path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
app/javascript/mastodon/features/account_timeline/components/header.js
MitarashiDango/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import InnerHeader from '../../account/components/header'; import ImmutablePureComponent from 'react-immutable-pure-component'; import MovedNote from './moved_note'; import { FormattedMessage } fro...
client/page/home/crash-handler.js
johngodley/search-regex
/** * External dependencies */ import React from 'react'; import { translate as __ } from 'i18n-calypso'; /** * Internal dependencies */ import { ExternalLink, Error } from 'wp-plugin-components'; import DebugReport from './debug'; import { getErrorLinks, getErrorDetails } from 'lib/error-links'; function CrashH...
ajax/libs/analytics.js/1.3.6/analytics.js
ksaitor/cdnjs
;(function(){ /** * Require the given path. * * @param {String} path * @return {Object} exports * @api public */ function require(path, parent, orig) { var resolved = require.resolve(path); // lookup failed if (null == resolved) { orig = orig || path; parent = parent || 'root'; var err = new ...
src/svg-icons/image/exposure-neg-2.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposureNeg2 = (props) => ( <SvgIcon {...props}> <path d="M15.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17s.19-.79.19-1.18c0-.53-.09-1.02-.27-1.46-.18-.44-.44-.81...
src/index.js
nice00xt/React-user-app
/* eslint-disable import/default */ import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; require('./favicon.ico'); import './styles...
Fire/src/index.js
deepmehtait/React-Native-Firebase-Auth
import React, { Component } from 'react'; import { AppRegistry, View } from 'react-native'; import firebase from 'firebase'; import { Button, CardSection, Header, Spinner } from './components/common'; import { CONFIG_KEYS } from './firebase-config'; import LoginForm from './components/LoginForm'; class Fire extends C...
docs/app/Examples/modules/Popup/Types/index.js
ben174/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const PopupTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Popup' description='An ele...
client/src/components/shared/seo.js
FreeCodeCampBA/freecodecampba.github.io
import React from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import { StaticQuery, graphql } from 'gatsby' function SEO({ description, lang, meta, keywords, title }) { return ( <StaticQuery query={detailsQuery} render={data => { const metaDescription = descri...
node_modules/react-bootstrap/es/DropdownToggle.js
ASIX-ALS/asix-final-project-frontend
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
webpack/ForemanTasks/Components/TasksTable/formatters/selectionCellFormatter.js
adamruzicka/foreman-tasks
import React from 'react'; import { translate as __ } from 'foremanReact/common/I18n'; import TableSelectionCell from '../Components/TableSelectionCell'; export default (selectionController, additionalData) => ( <TableSelectionCell id={`select${additionalData.rowIndex}`} disabled={!additionalData.rowData.can...
packages/netlify-cms-ui-default/src/Loader.js
netlify/netlify-cms
import React from 'react'; import PropTypes from 'prop-types'; import styled from '@emotion/styled'; import { css, keyframes } from '@emotion/core'; import { CSSTransition } from 'react-transition-group'; import { colors, zIndex } from './styles'; const styles = { disabled: css` display: none; `, active: cs...
src/text.js
flywingdevelopers/rn-naive
/** * <Text h1...h6 /> and <Text d1...d6 /> * also bold, italic * and backgroundColor, color * Kevin Lee 4 Sept 2017 **/ import React from 'react' import { Text as RNText, TouchableHighlight, TouchableOpacity, TouchableWithoutFeedback } from 'react-native' import Device from './device' import BaseStyle fro...
node_modules/@material-ui/core/es/CardMedia/CardMedia.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import warning from 'warning'; import withStyles from '../styles/withStyles'; ex...
src/browser/me/ProfilePage.js
TheoMer/este
// @flow import React from 'react'; import linksMessages from '../../common/app/linksMessages'; import { Box, Paragraph } from '../../common/components'; import { FormattedMessage } from 'react-intl'; import { Title } from '../components'; const ProfilePage = () => ( <Box> <Title message={linksMessages.profile} ...
pkg/users/accounts-list.js
cockpit-project/cockpit
/* * This file is part of Cockpit. * * Copyright (C) 2020 Red Hat, Inc. * * Cockpit 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 2.1 of the License, or * (at your option) any l...
src/components/About/AboutPage.spec.js
marinbgd/coolbeer
import React from 'react'; import {shallow} from 'enzyme'; import AboutPage from './AboutPage'; describe('<AboutPage />', () => { it('should have a header called \'About\'', () => { const wrapper = shallow(<AboutPage />); const actual = wrapper.find('h2').text(); const expected = 'About'; expect(actual).toEq...
src/components/Dashboard/sidebar.js
gperl27/liftr-v2
import React, { Component } from 'react'; import { Link } from 'react-router'; import FontAwesome from 'react-fontawesome'; // save nav where left off if user reloads the page let nav = localStorage.getItem('nav'); if(!nav){ nav = ''; } export default class Sidebar extends Component { constructor(props){ super...
src/components/Header.js
hofnarwillie/weather-demo
import React from 'react'; import { Navbar } from 'react-bootstrap'; import { Link, IndexLink } from 'react-router'; const Header = () => { return ( <Navbar inverse fixedTop> <Navbar.Header> <Navbar.Brand> Weather App </Navbar.Brand> ...
node_modules/rc-tabs/es/Tabs.js
prodigalyijun/demo-by-antd
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-run...
packages/examples/pages/clipboard/index.js
necolas/react-native-web
import { Button, Clipboard, StyleSheet, TextInput, View } from 'react-native'; import React from 'react'; import Example from '../../shared/example'; export default function ClipboardPage() { const setString = () => { const success = Clipboard.setString('This text was copied to the clipboard by React Native'); ...
ajax/libs/reactable/0.5.0/reactable.js
keicheng/cdnjs
/** @jsx React.DOM */ Reactable = (function() { "use strict"; // Array.prototype.map polyfill - see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map#Polyfill if (!Array.prototype.map) { Array.prototype.map = function(fun /*, thisArg */) { "use s...
tests/routes/Home/components/HomeView.spec.js
Dimitrievskislavcho/funfunfuncReduxCI
import React from 'react' import { HomeView } from 'routes/Home/components/HomeView' import { render } from 'enzyme' describe('(View) Home', () => { let _component beforeEach(() => { _component = render(<HomeView />) }) it('Renders a welcome message', () => { const welcome = _component.find('h4') ...
ajax/libs/rxjs/2.2.15/rx.lite.compat.js
ColinEberhardt/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, 'u...
src/index.js
chenqingspring/react-lottie
import React from 'react'; import PropTypes from 'prop-types'; import lottie from 'lottie-web'; export default class Lottie extends React.Component { componentDidMount() { const { options, eventListeners, } = this.props; const { loop, autoplay, animationData, renderer...
src/pages/NotificationDetailPage.js
LinDing/two-life
import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, Navigator, Dimensions, TouchableOpacity, WebView } from 'react-native'; import CommonNav from '../common/CommonNav'; const WIDTH = Dimensions.get("window").width const HEIGHT = Dimensions.get("window").height export def...
src/components/panupload.js
sumit12dec/instasleuth
import React, { Component } from 'react'; import Dropzone from 'react-dropzone'; import { connect } from "react-redux"; import { uploadPAN } from "../actions"; class ImageUpload extends Component { constructor(props){ super(props); this.state={ fileError:0, processing:0 ...
ajax/libs/vue/2.0.0-beta.4/vue.common.min.js
sufuf3/cdnjs
"use strict";function _toString(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function toNumber(e){var t=parseFloat(e,10);return t||0===t?t:e}function makeMap(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return t?function(e){return n[e.toLowerCase()]}:func...
ajax/libs/react-imgix/9.5.0/react-imgix-bg.js
cdnjs/cdnjs
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.__BackgroundImpl = exports.Background = exports.__shouldComponentUpdate = void 0; var _react = _interopRequireDefault(require("react")); var _reactMeasure = require("react-measure"); var _constants = require("./constants"); var ...
client/src/App.js
teddy-ma/github-comment
import React, { Component } from 'react'; import Header from './components/Header.js'; import Comments from './components/Comments.js'; import Footer from './components/Footer.js'; class App extends Component { constructor(props) { super(props); this.state = { loading: true, init: { ...
react-native-demo/Bestsellers/index.android.js
zhangjunhd/react-examples
/** * Sample React Native App * https://github.com/facebook/react-native */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class Bestsellers extends Component { render() { return ( <View style={styles.container}> <Text style...
packages/material-ui-icons/src/FormatItalic.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z" /> , 'FormatItalic');
src/routes/Register/Register.js
arvigeus/studentlife
import React from 'react'; import Relay from 'react-relay'; import cx from 'classnames'; import Picture from '../../components/Picture'; import Form from '../../components/Input/Form'; import Field from '../../components/Input/Field'; import DateTime from '../../components/Input/DateTime'; import Checkbox from '../../c...
files/jquery.multiselect/1.13/jquery.multiselect.js
bonbon197/jsdelivr
/* jshint forin:true, noarg:true, noempty:true, eqeqeq:true, boss:true, undef:true, curly:true, browser:true, jquery:true */ /* * jQuery MultiSelect UI Widget 1.13 * Copyright (c) 2012 Eric Hynds * * http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/ * * Depends: * - jQuery 1.4.2+ * - jQuery UI 1...
node_modules/react-bootstrap/es/Tooltip.js
nikhil-ahuja/Express-React
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
ajax/libs/redux-form/1.6.3/redux-form.js
BitsyCode/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["ReduxForm"] = facto...
ajax/libs/react-native-web/0.12.1/exports/Text/index.js
cdnjs/cdnjs
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } /** * Copyright (c) Nicolas Gallagher. * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under th...
ajax/libs/react/0.12.2/react-with-addons.min.js
GaryChamberlain/cdnjs
/** * React (with addons) v0.12.2 * * 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...
entry_types/scrolled/package/src/frontend/AudioPlayer/index.js
tf/pageflow
import React from 'react'; import classNames from 'classnames'; import {MediaPlayer} from '../MediaPlayer'; import {useTextTracks} from '../useTextTracks'; import {useMediaMuted} from '../useMediaMuted'; import {AudioStructuredData} from './AudioStructuredData'; import styles from '../AudioPlayer.module.css'; /** *...
src/components/layout/Footer.js
huang6349/react-dva
import React, { Component } from 'react'; import { Row, Col, } from 'antd'; import { version } from '../../../package.json'; import styles from './Footer.css'; class Footer extends React.Component { render() { return ( <Row type="flex" justify="space-between"> <Col xs={0} sm={0} md={12}>Ant&n...
src/test/common/component/homeComponentTest.js
yusinto/movie-time
import {expect} from 'chai'; import React from 'react'; import {renderIntoDocument, findRenderedDOMComponentWithClass, scryRenderedDOMComponentsWithTag, Simulate} from 'react-addons-test-utils'; import HomeComponent from '../../../../src/common/component/homeComponent'; describe('Home Component Tests', () => { it(...
App.WebSite2/Scripts/jquery-1.10.2.min.js
Digiman/Custom-ASP.NET-MVC-Identity-2.0
/* 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...
src/svg-icons/device/bluetooth-disabled.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetoothDisabled = (props) => ( <SvgIcon {...props}> <path d="M13 5.83l1.88 1.88-1.6 1.6 1.41 1.41 3.02-3.02L12 2h-1v5.03l2 2v-3.2zM5.41 4L4 5.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l4.29-4.29 2.3 2.29...
src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js
yabhis/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/containers/Home.js
ccfcheng/react-native-web-demo
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import rootReducer from '../reducers'; import HomeView from '../components/Home/HomeView'; const store = createStore( rootReducer, applyMiddleware...
examples/react-redux/src/components/ui/Button.js
rangle/redux-segment
import React from 'react'; const Button = (props) => { const { children, className = '', style = {}, type = 'button', onClick, } = props; return ( <button type={ type } className={ `btn btn-primary ${ className }` } style={{ ...styles.base, ...style }} onClick={ ...
src/svg-icons/av/av-timer.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAvTimer = (props) => ( <SvgIcon {...props}> <path d="M11 17c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1zm0-14v4h2V5.08c3.39.49 6 3.39 6 6.92 0 3.87-3.13 7-7 7s-7-3.13-7-7c0-1.68.59-3.22 1.58-4.42L12 13l1.41-...
app/containers/NotFoundPage/index.js
coocooooo/webapp
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import messages from './messages'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; export default function NotFound() { return ( <article> ...
client/components/balance/Balance.js
kanehara/yostock
import React from 'react'; import { GainLoss } from '../gainloss/GainLoss' export function Balance(props) { const style = { display: 'flex' } const colStyle = { margin: '10px' } return ( <div style={style}> <div style={colStyle}> <h3>Available Cash:</h3> {props.balance.ava...
app/components/Authentication/Login/index.js
trevornelson/wld-frontend
/** * * Login * */ import React from 'react'; import { bind, partial } from 'lodash'; // import styled from 'styled-components'; class Login extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function handleLogin() { const email = this.emailInput.value; const password = this.password...
packages/material-ui-icons/legacy/BatteryCharging30Rounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M15.67 4H14V3c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1H8.33C7.6 4 7 4.6 7 5.33v9.17h2.83c-.38 0-.62-.4-.44-.74l2.67-5c.24-.45.94-.28.94.24v3.5h1.17c.38 0 .62.4.44.74l-.67...
node_modules/browser-sync/node_modules/rx/dist/rx.lite.compat.js
prgvijaysoft/examplerepo
// Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'function': true, 'object': true }; function checkGlobal(value) { return (value && value.Object === Object) ? value : null; } var freeExpor...
src/renderer/components/Frame/Controls/Close.js
MovieCast/moviecast-desktop
import React from 'react'; const Close = props => ( <svg height="100%" width="100%" shapeRendering="crispEdges" {...props}> <line x1="18" y1="7" x2="27" y2="16" stroke="white" /> <line x1="27" y1="7" x2="18" y2="16" stroke="white" /> </svg> ); export default Close;
src/components/dumb/CategoriesList/CategoriesList.js
arfianadam/react-swapi
import React from 'react' import { Link } from 'react-router' import styles from './CategoriesList.scss' import '../../../polyfill/capitalizeFirstLetter' class CategoriesList extends React.Component { constructor(props) { super(props) } render() { const title = this.props.slug.capitalizeFirstLetter() return...
src/components/Navigation/Navigation.js
seeds-of-creativity/home
/** * 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, { PropTypes } from 'react'; import cx from '...
components/sub/Section.js
AnthonyJeamme/Resume
import React from 'react' const Section = ( props ) => { return( <div className="Section"> <h2>{props.title}</h2> {props.children} </div> ) } export default Section;
ajax/libs/forerunnerdb/1.3.589/fdb-all.js
sashberd/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/index.js
Helloylj/gallery-by-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/app-client.js
2dareis2do/five-day-forecast
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App />, document.getElementById('main') );
src/Fade.js
kwnccc/react-bootstrap
import React from 'react'; import Transition from './Transition'; class Fade extends React.Component { render() { return ( <Transition {...this.props} className='fade' enteredClassName='in' enteringClassName='in' > {this.props.children} </Transition> ...
src/components/seo/article.js
Khaledgarbaya/chocolate-free-website
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; function Article({ updateTime, publishedTime, url, }) { return ( <Helmet> <link rel="canonical" key={url} href={url} data-baseprotocol="https" data-basehost="chocolate-free.com" /> <meta property="...
web/src/components/Header.js
nokia/LearningStore
/* @author Félix Fuin Copyright Nokia 2017. All rights reserved. */ import React, { Component } from 'react'; import {Link} from 'react-router-dom' import '../css/Header.css'; import FaSearch from 'react-icons/lib/fa/search'; import FaTH from 'react-icons/lib/fa/th'; export default class Header extends Component ...
app/static/vendor/jquery/jquery.js
crtarsorg/izborna-platforma
/*! * jQuery JavaScript Library v1.12.4 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-05-20T17:17Z */ (function( global, factory ) { if ( typeof module =...
packages/react-native-codegen/src/generators/modules/GenerateModuleObjCpp/index.js
arthuralee/react-native
/** * 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. * * @flow strict * @format */ 'use strict'; import type {SchemaType} from '../../../CodegenSchema'; import type {MethodSerializat...
ajax/libs/yui/3.5.1/event-focus/event-focus-debug.js
mikaelbr/cdnjs
YUI.add('event-focus', function(Y) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Event = Y.Event, YLang = Y.Lang, isString = YLang.isString, arrayIndex = Y.Array.indexOf, useActivate = YLang.isFunction( Y...
packages/material-ui-icons/src/Accessibility.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z" /> , 'Accessibility');
config/webpack/loaders/babel.js
hyuki0000/mastodon
const { resolve } = require('path'); const env = process.env.NODE_ENV || 'development'; module.exports = { test: /\.js$/, // include react-intl because transform-react-remove-prop-types needs to apply to it exclude: { test: /node_modules/, exclude: /react-intl[\/\\](?!locale-data)/, }, loader: 'babe...
src/js/components/modal/modal_footer.js
working-minds/realizejs
import React, { Component } from 'react'; import PropTypes from '../../prop_types'; import themes from '../../theme'; import { mixin } from '../../utils/decorators'; import { CssClassMixin } from '../../mixins'; @mixin(CssClassMixin) export default class ModalFooter extends Component { static propTypes = { sepa...
test/test_helper.js
ashishsinha14/myfirstreactapp
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
packages/material-ui-icons/src/AirlineSeatReclineNormalRounded.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="M7.59 5.41c-.78-.78-.78-2.05 0-2.83s2.05-.78 2.83 0 .78 2.05 0 2.83c-.79.79-2.05.79-2.83 0zM6 16V8c0-.55-.45-1-1-1s-1 .45-1 1v8c0 2.76 2.24 5...
frontend/src/routes.js
OpenCollective/opencollective-website
import React from 'react'; import { Route, Redirect } from 'react-router'; import About from './containers/About'; import AddGroup from './containers/AddGroup'; import ConnectedAccounts from './components/ConnectedAccounts'; import ConnectProvider from './containers/ConnectProvider'; import Discover from './containers...
ajax/libs/es6-shim/0.32.1/es6-shim.js
mgoldsborough/cdnjs
/*! * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com) * and contributors, MIT License * es6-shim: v0.32.1 * see https://github.com/paulmillr/es6-shim/blob/0.32.0/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-...
App/__tests__/index.android.js
DupK/dashboard-epitech
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 /> ); });
examples/js/selection/externally-managed-selection.js
opensourcegeek/react-bootstrap-table
'use strict'; import React from 'react'; import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table'; var products = []; function addProducts(quantity) { var startId = products.length; for (var i = 0; i < quantity; i++) { var id = startId + i; products.push({ id: id, name: "Item...
js/Search.spec.js
jaabiri/react-film-app
import React from 'react' import { Provider } from 'react-redux' import { shallow, render } from 'enzyme' import { shallowToJson } from 'enzyme-to-json' import store from './store' import { setSearchTerm } from './actionCreators' import Search, { Unwrapped as UnwrappedSearch } from './Search' import ShowCard from './Sh...
local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js
cdlewis/react-native
import React, { Component } from 'react'; import { ActivityIndicator, Image, FlatList, Platform, StyleSheet, View, } from 'react-native'; import ListItem from '../../components/ListItem'; import Backend from '../../lib/Backend'; export default class ChatListScreen extends Component { static navigationOp...
myriad-scheduler/src/main/resources/webapp/js/components/RawJSONComponent.js
yufeldman/myriad
var React = require('react'); // Renders a json object in a pre var RawJSONComponent = React.createClass({ displayName: "RawJSONComponent", render: function () { return( <pre>{JSON.stringify(this.props.json, null, ' ')}</pre> )} }); module.exports = RawJSONComponent;
test/ModalTriggerSpec.js
Azerothian/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ModalTrigger from '../src/ModalTrigger'; describe('ModalTrigger', function() { it('Should create ModalTrigger element', function() { const instance = ReactTestUtils.renderIntoDocument( <ModalTrigger modal={<div>test</d...
public/assets/scripts/containers/blocks/contribute.js
luisfbmelo/reda
import React from 'react'; import { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import ContributeBlock from '@/components/blocks/contribute'; function mapStateToProps(state) { return { auth: state.auth }; } export default connect(mapStateToProp...
ajax/libs/video.js/4.8.1/video.dev.js
ripple0328/cdnjs
/** * @fileoverview Main function src. */ // HTML5 Shiv. Must be in <head> to support older browsers. document.createElement('video'); document.createElement('audio'); document.createElement('track'); /** * Doubles as the main function for users to create a player instance and also * the main library object. * ...
templates/js/postcss/client/ssr.js
reimagined/resolve
import React from 'react' import ReactDOM from 'react-dom/server' import { createMemoryHistory } from 'history' import { ResolveProvider } from '@resolve-js/react-hooks' import { Helmet } from 'react-helmet' import { getRoutes } from './get-routes' import { StaticRouter } from 'react-router' import { renderRoutes } fro...
screens/CreateAccountScreen.js
concensus/react-native-ios-concensus
import React from 'react'; import { View, ScrollView, AlertIOS, Keyboard } from 'react-native'; import ConcensusButton from '../components/ConcensusButton'; const t = require('tcomb-form-native'); const Form = t.form.Form; const axios = require('axios'); const CreateAccountScreen = ({ navigation }) => { function o...
src/assets/scripts/components/Graph/LineGraphSmall.js
Eastern-Research-Group/epa-digital-services-rfi-js
import React, { Component } from 'react'; import d3 from 'd3'; const margin = {top:20,right:20,bottom:20,left:50}; const fullWidth = 350; const fullHeight = 200; const width = fullWidth - margin.left - margin.right; const height = fullHeight - margin.top - margin.bottom; const xScale = d3.scale.linear().range([margin....
docs/src/app/components/pages/components/AutoComplete/Page.js
frnk94/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import autoCompleteReadmeText from './README'; import autoCompleteCode from '!ra...
bower_components/jquery/dist/jquery.min.js
joksina/chatnow
/*! jQuery v1.11.3 | (c) 2005, 2015 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...
docs/src/Routes.js
SSLcom/Bootsharp
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import ComponentsPage from './ComponentsPage'; import NotFoundPage from './NotFoundPage'; import Root from './Root'; export default ( <Route path="/" component={Root}> <IndexRoute component={ComponentsPage} /> <Route path="componen...
src/js/components/Form/stories/Custom.js
HewlettPackard/grommet
import React from 'react'; import { Box, Button, CheckBox, Form, FormField, Grommet, MaskedInput, RadioButtonGroup, RangeInput, Select, TextArea, TextInput, } from 'grommet'; import { grommet } from 'grommet/themes'; import { deepMerge } from 'grommet/utils'; const customTheme = { global: { ...
ajax/libs/6to5/2.0.4/browser.js
wallin/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/Creatable.js
foxbroadcasting/react-select
import React from 'react'; import PropTypes from 'prop-types'; import Select from './Select'; import defaultFilterOptions from './utils/defaultFilterOptions'; import defaultMenuRenderer from './utils/defaultMenuRenderer'; class CreatableSelect extends React.Component { constructor (props, context) { super(props, co...
docs/client/components/pages/Emoji/index.js
koaninc/draft-js-plugins
/* eslint-disable no-template-curly-in-string */ import React, { Component } from 'react'; // eslint-disable-next-line import/no-unresolved import gettingStarted from '!!../../../loaders/prism-loader?language=javascript!./gettingStarted'; // eslint-disable-next-line import/no-unresolved import simpleExampleCode from '...
client/modules/comments/components/.stories/comment_list.js
gotrecillo/daw-euskalvideo
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import CommentList from '../comment_list'; storiesOf('comments.CommentList', module) .add('no comments', () => { return ( <CommentList comments={[]}/> ); }) .add('with comments', () => { const comments = [ {...
src/App.js
hszeto/askout-react-native
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxThunk from 'redux-thunk'; import reducers from './reducers'; import Router from './Router'; class App extends Component { render() { const store = createStore(reduce...
node_modules/react-icons/md/screen-lock-rotation.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdScreenLockRotation = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m28 4.1v0.9h5.7v-0.9q0-1.1-0.8-2t-2-0.8-2.1 0.8-0.8 2z m-1.4 10.9q-0.7 0-1.1-0.5t-0.5-1.1v-6.8q0-0.7 0.5-1.1t1.1-0.5v-0.9q0-1.7 1.3-2.9t3-1.2 2.9 1.2 1.2 2...
src/components/Modal.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; class Modal extends React.Component { static propTypes = { onClose: PropTypes.func, show: PropTypes.bool, }; constructor(props) { super(props); } render() { if (typeof document !== 'undefined') document.body.classList[this.props...
src/svg-icons/maps/directions-subway.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsSubway = (props) => ( <SvgIcon {...props}> <path d="M12 2c-4.42 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.5...
src/components/font-awesome.js
LaserWeb/LaserWeb4
/** * Font-Awesome module. * @module */ // React import React from 'react' /** * Communication component. * * @extends module:react~React~Component * @param {Object} props Component properties. */ class Icon extends React.Component { /** * @type {Object} * @member module:components/font-awesome~...
stories/Image/index.js
Fineighbor/ui-kit
import React from 'react' import createStory from '../../storybook/createStory' import Image from '../../src/Image' const sourceUrl = 'https://raw.githubusercontent.com/Node-us/ui-kit/master/screenshots/web.png' createStory('Image', module) .add('with fit `contain`', () => <Image fit='contain' src={...
ajax/libs/yui/3.9.1/event-focus/event-focus-debug.js
taydakov/cdnjs
YUI.add('event-focus', function (Y, NAME) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Event = Y.Event, YLang = Y.Lang, isString = YLang.isString, arrayIndex = Y.Array.indexOf, useActivate = (function() { ...
packages/babel-plugin-transform-react-pure-annotations/test/fixtures/react/createRef/input.js
hzoo/babel
import React from 'react'; React.createRef();
web/static/js/views/boards/show.js
everydayhoodie/phoenix-trello-notes
import React, {PropTypes} from 'react'; import { connect } from 'react-redux'; import {DragDropContext} from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import Actions from '../../actions/current_board'; import Constants from '../../constants'; import { setDocumentTitle } from '../../utils'; impor...
src/svg-icons/action/offline-pin.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOfflinePin = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 16H7v-2h10v2zm-6.7-4L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3L17 7.3 10.3 14z"/> </SvgIcon> ...