path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
pages/api/form-label.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './form-label.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
src/mixins/cap-mixin.js
WaldoJeffers/react-dc
import React from 'react' import {withProps} from '../utils' const {func, bool, number, oneOfType, string} = React.PropTypes export default withProps({ cap: number, othersGrouper: oneOfType([func, bool]), // disallow true ! only false is accepted othersLabel: string })
src/components/orders.js
AdinoyiSadiq/back-office-tool
import React from 'react'; import Order from './order'; class Orders extends React.Component { render() { return ( <div className="content container"> <div className="row"> <section className="col-md-12 order-data"> <header>ORDERS</header> <div className="panel-group" id="accordion" role=...
episode-261/checkout-before/public/javascripts/jquery.js
dapperAuteur/railscasts-episodes
/*! * jQuery JavaScript Library v1.5.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
pootle/static/js/admin/app.js
mail-apps/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ 'use strict'; import 'backbone-queryparams'; import 'bac...
ajax/libs/vue/1.0.26/vue.common.js
brix/cdnjs
/*! * Vue.js v1.0.26 * (c) 2016 Evan You * Released under the MIT License. */ 'use strict'; function set(obj, key, val) { if (hasOwn(obj, key)) { obj[key] = val; return; } if (obj._isVue) { set(obj._data, key, val); return; } var ob = obj.__ob__; if (!ob) { obj[key] = val; retur...
docs/src/app/components/pages/components/RadioButton/ExampleSimple.js
nathanmarks/material-ui
import React from 'react'; import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton'; import ActionFavorite from 'material-ui/svg-icons/action/favorite'; import ActionFavoriteBorder from 'material-ui/svg-icons/action/favorite-border'; const styles = { block: { maxWidth: 250, }, radioButton: { ...
src/svg-icons/communication/present-to-all.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPresentToAll = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h18c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 16.02H3V4.98h18v14.04zM10 12H8l4-4 4 4h-2v4h-4v-4z"/...
react/src/components/Feedback/Panel.js
donh/charity
import React, { Component } from 'react'; import withStyles from '../../decorators/withStyles'; class Panel extends Component { render (){ return ( <div className="Panel mdl-card"> <div className="mdl-card__title mdl-card--expand"> <h2 className="mdl-card__title-text">加入我們</h2> </...
packages/@lyra/components/src/loading/AppLoadingScreen.js
VegaPublish/vega-studio
/* eslint-disable max-len */ import PropTypes from 'prop-types' import React from 'react' const AppLoadingScreenStyles = ` @keyframes logoAnimation { 0% { color: #26a69a; transform: translate(-50%, -50%) rotate(0); } 50% { transform: translate(-50%, -50%) rotate(0); color: #fff; } 70% { ...
src/app/shopping-list/ShoppingItem.js
brettsvoid/meal-manager
import React from 'react' import cx from 'classnames' import Action from '../components/Action.js' const ShoppingItem = ({name, onSelect, onDelete, purchased}) => ( <div className={cx( 'shopping-item', {'shopping-item_purchased': purchased} )} onClick={onSelect} > <span className='shop...
src/components/Footer/Footer.js
suhodolskiy/bsuir-evt-laba-2017
import React, { Component } from 'react'; import { observer } from 'mobx-react'; import './footer.scss'; import localize from '../../helpers/localize'; @observer export default class Footer extends Component { constructor(props){ super(props); } render(){ return( <footer className="footer"> ...
docs/app/Examples/views/Comment/Types/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const CommentTypes = () => ( <ExampleSection title='Types'> <ComponentExample title='Comments' description='A basic ...
src/__tests__/fileMocks/componentNamespace/Header/User/LoggedIn.js
react-cosmos/fs-playground
// @flow import React from 'react'; const LoggedIn = () => <span />; export default LoggedIn;
upload/admin/view/javascript/jquery/flot/jquery.js
nermeenshoman/opencart-emkan
/*! * jQuery JavaScript Library v1.8.3 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time) */ (function(...
app/components/Login/Login.js
Jberivera/kanban-app
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { logOut, facebookLoginAsync } from '../../actions/user-action-creators'; import style from './Login.scss'; import classNames from 'classnames/bind'; const css = classNames.bind(style); import Soc...
stories/ShortMessage.js
ecmadao/light-ui
import React from 'react'; import { storiesOf } from '@storybook/react'; import ShortMessageWrapper from '../examples/ShortMessageWrapper'; storiesOf('ShortMessage', module) .add('basical', () => ( <ShortMessageWrapper /> ));
Docker/KlusterKiteMonitoring/klusterkite-web/src/components/Form/story.js
KlusterKite/KlusterKite
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; // import StubContainer from 'react-storybooks-relay-container'; import Submit from './submit'; storiesOf('Form') .add('submit enabled', () => { return <Submit canSubmit={true} />; }) .add('submit can\'t submit', () => { r...
node_modules/react-bootstrap/es/MediaRight.js
premcool/getmydeal
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 ...
test/SplitButtonSpec.js
deerawan/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import SplitButton from '../src/SplitButton'; import MenuItem from '../src/MenuItem'; import Button from '../src/Button'; describe('SplitButton', function() { const simple = ( <SplitButton title='Title' id='test-id'> <MenuIte...
ajax/libs/6to5/1.14.7/browser.js
joeyparrish/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...
source/client/components/todos/TodoItem.js
flipace/lovli.js
import React from 'react'; import { deleteDoc } from 'horizon-react/lib/utils'; import styles from './styles'; /** * A single todo list item. * * Includes a remove action. * * @param {Object} todo The todo item * @param {Object} horizon The horizon object which will be passed to deleteDoc * @return {React...
packages/material-ui-icons/src/SportsTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M11.23 6c-1.66 0-3.22.66-4.36 1.73C6.54 6.73 5.61 6 4.5 6 3.12 6 2 7.12 2 8.5S3.12 11 4.5 11c.21 0 .41-.03.61-.08-.05.25-.09.51-.1.78-.18 3.68 2.95 6.68 6.68 6.27 2.55-.28 4.68-2.26 5....
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js
Dreezydraig/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import { MessageContentTypes } from 'constants/ActorAppConstants'; import MessageActionCreators from 'actions/MessageActionCreators'; ...
draft-js-emoji-plugin/src/components/EmojiSelect/Popover/Nav/Entry/index.js
dagopert/draft-js-plugins
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class Entry extends Component { static propTypes = { theme: PropTypes.object.isRequired, icon: PropTypes.oneOfType([ PropTypes.element, PropTypes.string, ]).isRequired, groupIndex: PropTypes.numbe...
packages/react-router-website/modules/ReactRouterDOMShim.js
react-translate-team/react-router-CN
import React from 'react' export { HashRouter, Link, MemoryRouter, NavLink, Prompt, Redirect, Route, Router, StaticRouter, Switch, matchPath, withRouter } from '../../react-router-dom' // Need to shim <BrowserRouter> so people can copy/paste // examples into create-react-app but our docs site ...
src/containers/DevTools.js
akoltun/reblog-front
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; const DevTools = createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' ...
docs/src/app/components/FullWidthSection.js
owencm/material-ui
import React, {Component, PropTypes} from 'react'; import ClearFix from 'material-ui/internal/ClearFix'; import spacing from 'material-ui/styles/spacing'; import withWidth, {SMALL, LARGE} from 'material-ui/utils/withWidth'; const desktopGutter = spacing.desktopGutter; class FullWidthSection extends Component { sta...
src/main.js
aibolik/my-todomvc
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import './styles/main.scss' // Store Initialization // ------------------------------------ const store = createStore(window.__INITIAL_STATE__) // Render Setup // ------------------------------------ const MOUNT_N...
app/javascript/mastodon/components/__tests__/avatar-test.js
yi0713/mastodon
import React from 'react'; import renderer from 'react-test-renderer'; import { fromJS } from 'immutable'; import Avatar from '../avatar'; describe('<Avatar />', () => { const account = fromJS({ username: 'alice', acct: 'alice', display_name: 'Alice', avatar: '/animated/alice.gif', avatar_static:...
view/src/page/SnsAuthorize.js
reliablejs/reliable-master
import React from 'react'; import Script from 'react-load-script'; import queryString from 'query-string'; import safeGet from 'lodash.get'; import { DingdingOutlined } from '@ant-design/icons'; import ReliableLayout from '../components/ReliableLayout'; const appid = safeGet(window, 'context.dingtalkAuth.appid'); con...
app/renderer/presentational/generic/Tabs.js
AbsoluteZero273/Deezic
import React from 'react' const Tabs = ({ children, tabData }) => { return ( <div className='mdl-tabs mdl-js-tabs mdl-js-ripple-effect custom-tabs'> <div className='mdl-tabs__tab-bar'> { tabData.map(tab => ( <a key={tab.keyID} href={`#${tab.id}`} classN...
ajax/libs/react/0.3.2/JSXTransformer.js
leecrossley/cdnjs
/** * JSXTransformer v0.3.2 */ (function(e){if("function"==typeof bootstrap)bootstrap("jsxtransformer",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeJSXTransformer=e}else"undefined"!=typeof wi...
src/scenes/home/scholarshipApplication/head/head.js
miaket/operationcode_frontend
import React from 'react'; import dateFormat from 'dateformat'; import PropTypes from 'prop-types'; import styles from './head.css'; const Head = ({ scholarship }) => ( <div> <h3 className={styles.scholarshipAppHeader}> {scholarship.name} </h3> <p> {scholarship.description} </p> <p> {scholarship.location...
client/src/components/Explorer/ExplorerHeader.js
iansprice/wagtail
import PropTypes from 'prop-types'; import React from 'react'; import { ADMIN_URLS, STRINGS } from '../../config/wagtailConfig'; import Button from '../../components/Button/Button'; import Icon from '../../components/Icon/Icon'; /** * The bar at the top of the explorer, displaying the current level * and allowing a...
src/js/ui/app/pages/dashboard.js
bastuijnman/carpi
import React from 'react'; import { Link } from 'react-router-dom'; import Header from './../components/header'; import Button from './../components/dashboard/button'; const contentStyle = { display: 'flex', alignItems: 'center', justifyContent: 'center', position: 'absolute', left: '0', top: ...
ajax/libs/rxjs/2.3.7/rx.lite.js
calebmer/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false...
app/javascript/mastodon/features/account_gallery/components/media_item.js
Craftodon/Craftodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Permalink from '../../../components/permalink'; export default class MediaItem extends ImmutablePureComponent { static propTypes = { media: Immutable...
ajax/libs/forerunnerdb/1.3.562/fdb-legacy.min.js
cdnjs/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...
app/components/main/__tests__/Loading-test.js
harryworld/react-slick-integration
import React from 'react'; import TestUtils from 'react/lib/ReactTestUtils'; import Loading from '../Loading'; describe('Loading', () => { beforeEach(function() { this.renderer = TestUtils.createRenderer(); this.renderer.render(<Loading />); }); it('renders', () => { let element = TestUtils.renderI...
packages/material-ui-icons/src/SlideshowRounded.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M10 9.04v5.92c0 .42.48.65.81.39l3.7-2.96c.25-.2.25-.58 0-.78l-3.7-2.96c-.33-.26-.81-.03-.81.39zM19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1....
node_modules/react/lib/ReactReconcileTransaction.js
Shwrndasink/btholt-react-tutorial
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ...
src/components/Layout/Col.js
LIQIDTechnology/liqid-react-components
import './styles.scss'; import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; const classMap = { // Define width for breakpoints xs: 'liq_layout-fb-col-xs', sm: 'liq_layout-fb-col-sm', md: 'liq_layout-fb-col-md', lg: 'liq_layout-fb-col-lg', // Defin...
node_modules/grunt-google-cdn/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/rx/dist/rx.lite.js
serrodcal/cv_manager
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false }; ...
src/server/index.js
interacthings/framer-modules
import 'babel-core/polyfill'; import path from 'path'; import Express from 'express'; import React from 'react'; import { Provider } from 'react-redux'; import App from 'containers/App'; import serveStatic from 'serve-static'; import fs from 'fs'; const app = Express(); const port = process.env.PORT || 8080; ...
webpack.config.js
yamadayuki/mdl-color
import path from 'path'; import webpack from 'webpack'; const config = { devtool: 'eval', entry: [ 'babel-polyfill', 'webpack-dev-server/client?http://localhost:3000', 'webpack/hot/only-dev-server', path.join(__dirname, 'app.js'), ], output: { path: `${__dirname}/`, filename: 'bundle.js...
src/static/containers/Root/Root.dev.js
24HeuresINSA/pass-checker
import React from 'react'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import routes from '../../routes'; import DevTools from './DevTools'; export default class Root extends React.Component { static propTypes = { store: React.PropTypes.shape().isRequired, histo...
ajax/libs/htm/3.0.2/react/index.js
cdnjs/cdnjs
var e,t=require("react"),r=((e=require("htm"))&&"object"==typeof e&&"default"in e?e.default:e).bind(t.createElement);exports.html=r;
src/utils/applicationInit.js
LiskHQ/lisk-nano
import React from 'react'; import { createStore, combineReducers, applyMiddleware } from 'redux'; import { HashRouter as Router } from 'react-router-dom'; import { Provider } from 'react-redux'; import { I18nextProvider } from 'react-i18next'; import i18n from '../i18n'; // initialized i18next instance export const pr...
admin/src/components/PopoutList.js
geminiyellow/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var PopoutList = React.createClass({ displayName: 'PopoutList', propTypes: { children: React.PropTypes.node.isRequired, }, render () { let className = classnames('PopoutList', this.props.className); let props =...
app/javascript/mastodon/components/status_action_bar.js
summoners-riftodon/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import DropdownMenuContainer from '../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureCompo...
src/drive/web/modules/move/Header.spec.js
cozy/cozy-files-v3
import React from 'react' import { shallow } from 'enzyme' import Header from './Header' const onCloseSpy = jest.fn() describe('Header', () => { const setupComponent = ({ entries = [], onClose, title, subTitle }) => { const props = { entries, onClose, title, subTitle } return shal...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
Gss615/Swiemianshi
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
packages/mineral-ui-icons/src/IconFileUpload.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 IconFileUpload(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPro...
app/js/sign-up/views/_email.js
blockstack/blockstack-portal
/** * Email / Backup ID page * * This screen is our current backup option (email) * This might change to other options outside of just email (eg phone, download, etc) */ import React from 'react' import { ShellScreen, Type } from '@blockstack/ui' import Yup from 'yup' import PropTypes from 'prop-types' const vali...
docs/src/SupportPage.js
jakubsikora/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; export default class Page extends React.Component { render() { return ( <div> <NavMain activePage="support" /> <PageHeader title="Nee...
app/containers/SignUp/index.js
g00dman5/freemouthmedia
/* * * SignUp * */ import React from 'react'; import Helmet from 'react-helmet'; export default class SignUp extends React.PureComponent { constructor(props){ super(props); this.state= { email:"", name:"", password:"", } } handleEmail = (event)=> { this.setState({ e...
src/browser/app/Root.js
skallet/este
// @flow import App from './App'; import React from 'react'; import configureFela from '../configureFela'; import { BrowserRouter } from 'react-router'; import { Provider as Fela } from 'react-fela'; import { Provider as Redux } from 'react-redux'; type Props = { store: Object, }; // This should be part of Fela. //...
ajax/libs/react-faux-dom/4.0.2/ReactFauxDOM.min.js
nolsherry/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactFauxDOM=e(require("react")):t.ReactFauxDOM=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r]...
geoevents/static/js/event-pages.js
jaycrossler/geo-events
// This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and // is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012) //-------------------------------------------- // Functionality used on multiple event pages. //---------------...
packages/material-ui-icons/src/SwapHorizontalCircleSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12s4.48 10 10 10 10-4.48 10-10zm-7-5.5l3.5 3.5-3.5 3.5V11h-4V9h4V6.5zm-6 11L5.5 14 9 10.5V13h4v2H9v2.5z" /> , 'SwapHorizontalCircleSharp');
examples/simple/src/components/header.js
herschel666/phox
import React from 'react'; import PropTypes from 'prop-types'; import { MAX_WIDTH, BREAKPOINT_MEDIUM } from '../constants'; const Header = ({ headline }) => ( <header> <style jsx> {` header { padding: 18px 0; background-color: #444; color: #f4f4f4; border-bot...
src/PageHeader.js
andrew-d/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const PageHeader = React.createClass({ render() { return ( <div {...this.props} className={classNames(this.props.className, 'page-header')}> <h1>{this.props.children}</h1> </div> ); } }); export default PageHeader;
client/containers/HomeContainer.js
FlammableHairnet/HireOrbit
import React, { Component } from 'react'; import Home from '../components/Home'; import { connect } from 'react-redux'; import { updateCurrentSearch, updateCurrentQuery } from '../actions'; class HomeContainer extends Component { render() { return ( <Home {...this.props}/> ); } } export default connect(null,...
ajax/libs/angular.js/0.9.7/angular-scenario.min.js
contentfree/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. ...
js/rendererjs/statusbar.js
NebulousLabs/New-Sia-UI
import PropTypes from 'prop-types' import React from 'react' import { hot } from 'react-hot-loader' // -- helper functions -- // currentEstimatedHeight returns the estimated block height for the current time. const currentEstimatedHeight = () => { const knownBlockHeight = 100e3 const knownBlockTime = new Date(149...
app/javascript/mastodon/components/column_header.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { createPortal } from 'react-dom'; import classNames from 'classnames'; import { FormattedMessage, injectIntl, defineMessages } from 'react-intl'; import Icon from 'mastodon/components/icon'; const messages = defineMessages({ show: { id: 'column_h...
src/components/CommonComponent/FeedCard/feedImages.js
sourabh-garg/react-starter-kit
import React from 'react'; const baseurl = "https://res.wooplr.com/image/upload/f_auto,q_auto,fl_lossy,c_pad,w_800/"; class FeedImages extends React.Component{ constructor(props) { super(props); } componentDidMount() { } render () { let feedType = this.props.feedType; let photoCollection...
ajax/libs/vkui/4.21.1/cssm/hooks/useKeyboard.js
cdnjs/cdnjs
import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; import * as React from 'react'; import { useDOM } from "../lib/dom"; import { useGlobalEventListener } from "./useGlobalEventListener"; /** Проверяет, закрыла ли клавиатура часть экрана, 24% подошло к большиству устройств Работает на iOS и Android, г...
src/demo/react-router/modalGallery.js
dadiaoguai/blog-react-demo-front
import React from 'react' import { Switch, Route, Link } from 'react-router-dom' class ModalSwitch extends React.Component { constructor (props) { super(props) this.previousLocation = this.props.location } componentWillUpdate (nextProps) { const {location} = this.props if ( nextPro...
ajax/libs/extjs/4.2.1/src/AbstractComponent.js
kirbyfan64/cdnjs
/* This file is part of Ext JS 4.2 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in...
node_modules/react-icons/io/ios-partlysunny.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoIosPartlysunny = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m16.3 11.7v-4.2h1.2v4.2h-1.2z m-11.3 8.3v-1.2h4.3v1.2h-4.3z m3.4-8.4l0.8-0.8 2.5 2.5-0.8 0.8z m14 2.5l-0.8-0.9 2.5-2.5 0.8 0.9z m-13 13.4l-0.8-0.9 2.4-2.4 0.9 ...
app/src/containers/App.js
OpenSauced/OpenSauce
import React, { Component } from 'react'; import Footer from '../components/Footer/Footer'; import '../assets/styles/main.scss'; import '../assets/styles/recipe_card.scss'; export default class App extends Component { componentDidMount() { $(window).scroll(function() { if ($(this).scrollTop() > 400) { ...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/date-picker/wrapPicker.js
bhathiya/test
import _extends from 'babel-runtime/helpers/extends'; 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/possib...
webapp/client/src/LoginPage.js
mikemag/MonkeyCAM
/* * Copyright 2013-2017 Michael M. Magruder (https://github.com/mikemag) * * This source code is licensed under the Apache license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { Alert } from 'react-bootstrap'; const LoginPage = () => ( <div> <...
blueocean-material-icons/src/js/components/svg-icons/image/blur-off.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageBlurOff = (props) => ( <SvgIcon {...props}> <path d="M14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm-.2 4.48l.2.02c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5l.02.2c.09.67.61 1.19 1.28 1.28zM14 3.5c.28 0 .5-.22.5-.5s-.22-...
src/svg-icons/places/pool.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesPool = (props) => ( <SvgIcon {...props}> <path d="M22 21c-1.11 0-1.73-.37-2.18-.64-.37-.22-.6-.36-1.15-.36-.56 0-.78.13-1.15.36-.46.27-1.07.64-2.18.64s-1.73-.37-2.18-.64c-.37-.22-.6-.36-1.15-.36-.56 0-.78...
src/components/video_list_item.js
williammw/learning-react
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { const imageUrl = video.snippet.thumbnails.default.url; // 13.2 //const onVideoSelect = props.onVideoSelect. //const video = props.video is === const VideoListItem = ({video}}) // 13.1 //console.log(video); retur...
app/components/Balance/__tests__/BalanceRow-test.js
ModusCreateOrg/budgeting-sample-app-webpack2
import React from 'react'; import renderer from 'react-test-renderer'; import BalanceRow from '../BalanceRow'; it('renders correctly', () => { const tree = renderer.create(<BalanceRow>test</BalanceRow>).toJSON(); expect(tree).toMatchSnapshot(); });
src/components/Document/components/InitialState/InitialState.js
grxy/boilerplate
import { object } from 'prop-types'; import React from 'react'; const InitialState = ({ initialState }) => ( <script dangerouslySetInnerHTML={{ __html: `window.__INITIAL_STATE__ = ${JSON.stringify(initialState)}` }} id="initial-state" /> ); InitialState.displayName = 'Initi...
web/assets/js/jquery_jquery-1.11.1_1.js
fred771/fredProduction
/*! * jQuery JavaScript Library v1.11.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-05-01T17:42Z */ (function( global, factory ) { if ...
ajax/libs/forerunnerdb/1.3.460/fdb-all.js
nolsherry/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/promo/Promo.js
AlanMorel/aria
import React from 'react'; import { Link } from 'react-router-dom'; class Promo extends React.Component { render() { var page = this.props.page; var text = this.props.text; var link = { pathname: page }; return ( <div className="promo"> ...
spec/javascripts/jsx/shared/components/PaginatorSpec.js
djbender/canvas-lms
/* * Copyright (C) 2018 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
app/imports/ui/client/layouts/Sidebar/index.js
valcol/ScrumNinja
import React, { Component } from 'react'; class Sidebar extends Component { render() { return ( <aside className="control-sidebar control-sidebar-dark"> {/* Create the tabs */} <ul className="nav nav-tabs nav-justified control-sidebar-tabs"> <li className="active"><a href="#contr...
ajax/libs/forerunnerdb/1.3.411/fdb-core+persist.js
maruilian11/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...
redux/js/todo/containers/RouteVisibleTodoList.js
quiaro/js-playground
import React, { Component } from 'react'; import { connect } from 'react-redux' import { withRouter } from 'react-router'; import * as actions from '../actions/todo' import TodoList from '../components/TodoList' import FetchTodosError from '../components/errors/FetchTodosError' import { getVisibleServerTodos, getIsFet...
others/react-vr/WelcomeToVR/index.vr.js
fengnovo/diary
import React from 'react'; import { AppRegistry, asset, StyleSheet, Pano, Text, View, } from 'react-vr'; export default class WelcomeToVR extends React.Component { render() { return ( <View> <Pano source={asset('chess-world.jpg')}/> <Text style={{ backgroun...
packages/react-instantsearch-dom/src/widgets/ToggleRefinement.js
algolia/react-instantsearch
import { connectToggleRefinement } from 'react-instantsearch-core'; import ToggleRefinement from '../components/ToggleRefinement'; /** * The ToggleRefinement provides an on/off filtering feature based on an attribute value. * @name ToggleRefinement * @kind widget * @requirements To use this widget, you'll need an ...
JS Web/ReactJS/Event and Forms/src/components/form/validationComponents/Invalid.js
mitaka00/SoftUni
import React from 'react' let Valid = prop => { return ( <span role='img' aria-label='valid' style={{ display: prop.display ? 'none' : '', marginLeft: '-23px' }} > ❌ </span> ) } export default Valid
app/components/LoadingIcon/index.js
openactive/open-sessions
import React from 'react'; import styles from './styles.css'; export default class LoadingIcon extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return <span className={styles.icon} />; } }
ajax/libs/reacthttp/0.0.7/react-http.min.js
tonytomov/cdnjs
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:...
ajax/libs/highlight.js/9.15.4/languages/gml.min.js
joeyparrish/cdnjs
hljs.registerLanguage("gml",function(e){var _={k:"begin end if then else while do for break continue with until repeat exit and or xor not return mod div switch case default var globalvar enum #macro #region #endregion",built_in:"is_real is_string is_array is_undefined is_int32 is_int64 is_ptr is_vec3 is_vec4 is_matrix...
ajax/libs/forerunnerdb/1.3.549/fdb-all.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/svg-icons/action/picture-in-picture-alt.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPictureInPictureAlt = (props) => ( <SvgIcon {...props}> <path d="M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"/> </Svg...
docs/src/app/components/pages/components/Card/ExampleExpandable.js
frnk94/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; const CardExampleExpandable = () => ( <Card> <CardHeader title="Without Avatar" subtitle="Subtitle" actAsExpander={true} showExpandableButt...
user_guide/_static/jquery.js
JensErikChristiansen/Lab2
/*! 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===...
src/mixins.js
rxgx/react-timeframes
import React from 'react'; import Rx from 'rx'; export class BindAllMixin extends React.Component { bindAll(...methods) { methods.forEach(method => this[method] = this[method].bind(this)); } } export class ReactiveMixin extends React.Component { componentDidMount() { if (!this.subjects) ...
src/internal/AutoLockScrolling.js
pancho111203/material-ui
import {Component, PropTypes} from 'react'; let originalBodyOverflow = null; let lockingCounter = 0; class AutoLockScrolling extends Component { static propTypes = { lock: PropTypes.bool.isRequired, }; componentDidMount() { if (this.props.lock === true) { this.preventScrolling(); } } com...
app/webpack/taxa/show/containers/photo_chooser_modal_container.js
inaturalist/inaturalist
import { connect } from "react-redux"; import HTML5Backend from "react-dnd-html5-backend"; import TouchBackend from "react-dnd-touch-backend"; import { DragDropContext as dragDropContext } from "react-dnd"; import PhotoChooserModal from "../components/photo_chooser_modal"; import { updatePhotos, hidePhotoChooser } from...