path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsInline.js
mroch/flow
// @flow import React from 'react'; class MyComponent extends React.Component { props: {a: number, b: number, c: number}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { props: {a: number, b: numbe...
src/components/chatrooms/ToggleViewMode.js
AleksandrRogachev94/chat-vote-go-frontend
import React from 'react' import PropTypes from 'prop-types' const ToggleViewMode = ({ viewMode, newMessagesCount, newSuggestionsCount, handleChangeMode }) => { return ( <div className="btn-group"> <a className="btn btn-default" data-mode="chat" disabled={viewMode === 'chat'} onClick={handleChange...
ignite/DevScreens/ThemeScreen.js
TylerKirby/Phrontis
import React from 'react' import { View, ScrollView, Text, Image, TouchableOpacity } from 'react-native' import { Colors, Fonts, Images } from './DevTheme' import R from 'ramda' // Styles import styles from './Styles/ThemeScreenStyles' // Colors const colors = R.keys(Colors) // Font Types const types = R.keys(Fonts.t...
src/js/index.js
webcom-components/visio-sample
require('../style.less'); import React from 'react'; import ReactDom from 'react-dom'; import Root from './containers/Root'; import history from './history'; ReactDom.render( <Root history={history} />, document.querySelector('#root') );
examples/esp-chat-react-es6/js/components/ThreadSection.react.js
raybooysen/esp-js
import React from 'react'; import ThreadListItem from './ThreadListItem.react'; export default class ThreadSection extends React.Component { constructor() { super(); this._subscription = null; } componentWillMount() { this._subscription = this.props.router .getModelObser...
node_modules/react-router/es6/Lifecycle.js
mattrusso/mattrusso.github.io
import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On stan...
example/src/label-text.js
Julusian/react-bootstrap-switch
import React from 'react'; import { Col, FormGroup, FormControl } from 'react-bootstrap'; import Switch from '../../src/js/index'; export class LabelText extends React.Component { constructor(props){ super(props); this.state = { text: "Label" }; } _onChange(e){ const text = e.target.val...
client/components/Loading/Loading.js
YMFE/yapi
import React from 'react'; import PropTypes from 'prop-types'; import './Loading.scss'; export default class Loading extends React.PureComponent { static defaultProps = { visible: false }; static propTypes = { visible: PropTypes.bool }; constructor(props) { super(props); this.state = { show: ...
client/test/apps/github-api-sample/containers/App.js
armw4/redux-samples
// NOTE: we've used symlinks to node_modules in the past to get around the '../../../path-to-system-under-test' stuff but doesn't bother me much import React from 'react' import { Provider } from 'react-redux' import nock from 'nock' import { mount } from 'enzyme' import App from '../../../../apps/github-api-sample/con...
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDrop.js
jstockwin/keystone
import React from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import { Sortable } from './ItemsTableRow'; import DropZone from './ItemsTableDragDropZone'; var ItemsTableDragDrop = React.createClass({ displayName: 'ItemsTableDragDrop', propTypes: { colum...
pages/blog/test-article-two.js
fmarcos83/mdocs
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Test Article 2</h1> <p>Co...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
snkrishnan1/PivotGridSample
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'));
ajax/libs/yui/3.10.3/event-custom-base/event-custom-base-debug.js
contolini/cdnjs
YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @mo...
packages/react/src/__tests__/ReactCreateRef-test.js
STRML/react
/** * 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. * * @emails react-core */ 'use strict'; let React; let ReactTestRenderer; describe('ReactCreateRef', () => { beforeEach(() => {...
app/src/components/UserSearch.js
alpcanaydin/github-stats-for-turkey
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import './UserSearch.css'; class UserSearch extends Component { constructor(props) { super(props); this.ha...
src/HstWbInstaller.Imager.GuiApp/ClientApp/src/components/Content.js
henrikstengaard/hstwb-installer
import React from 'react'; import Box from '@mui/material/Box'; import {Route} from 'react-router'; import Start from "../pages/Start"; import Read from "../pages/Read"; import Write from "../pages/Write"; import Info from "../pages/Info"; import Convert from "../pages/Convert"; import Verify from "../pages/Verify"; im...
src/Parser/Shaman/Elemental/Modules/Talents/ElementalBlast.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import StatisticBox, { STATISTIC_ORDER } from 'Main/Statisti...
pkg/users/authorized-keys-panel.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...
doc/assets/js/documentation.js
anastasiyakup/anastasiyakup.github.io
/* Modernizr 2.5.2 (Custom Build) | MIT & BSD * Build: http://www.modernizr.com/download/#-touch-mq-cssclasses-addtest-teststyles-prefixes-ie8compat-load */ function getLeftSpace(){return($("body").width()-$("#main").outerWidth())/2}function getLeftPosition(e,t,n){var r=getLeftSpace(),i=r+960-e-2*t-n;return i}window....
app/javascript/src/components/ImageZoomOverlay.js
michelson/chaskiq
import React from 'react' import { setImageZoom } from '../actions/imageZoom' import Button from '../components/Button' import { CloseIcon } from '../components/icons' import { connect } from 'react-redux' import styled from '@emotion/styled' export const ImageZoomOverlay = styled.div` overflow: auto; positio...
myOne/APP/MyFlatList.js
caopengxu/ReactNative-one
// 'use strict'; import React, { Component } from 'react'; import { StyleSheet, FlatList, } from 'react-native'; class MyFlatList extends Component { render () { return ( <FlatList data={[{key: 'a'}, {key: 'b'}]} renderItem={({item}) => <Text>{item.key}</Text>} /> ) } } c...
packages/material-ui-icons/src/PolymerRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8L19 4z" /> , 'PolymerRounded');
packages/insomnia-app/app/ui/components/keydown-binder.js
Atvaark/insomnia
// @flow import * as React from 'react'; import ReactDOM from 'react-dom'; import autobind from 'autobind-decorator'; import { isMac } from '../../common/constants'; type Props = { children: React.Node, onKeydown?: Function, onKeyup?: Function, disabled?: boolean, scoped?: boolean, stopMetaPropagation?: bo...
src/svg-icons/file/file-download.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFileDownload = (props) => ( <SvgIcon {...props}> <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/> </SvgIcon> ); FileFileDownload = pure(FileFileDownload); FileFileDownload.displayName = 'FileFileDown...
example/react-icu/src/ComponentUsingMacro.js
i18next/react-i18next
import React from 'react'; import { withTranslation } from 'react-i18next'; // importing the macro components from react-i18next import { Trans, Plural, Select } from 'react-i18next/icu.macro'; // as we "bend" some es-lint rules we need to disable those // this let us write "{ trainersCount, number }" or "{ catchDate...
sites/all/modules/devel/jquery-1.4.4-uncompressed.js
lindsaywilson/Pace49
/*! * jQuery JavaScript Library v1.4.4 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/field/index.js
mike-casas/lock
import React from 'react'; import { Map } from 'immutable'; import trim from 'trim'; import OptionSelectionPane from './option_selection_pane'; import * as l from '../core/index'; export function setField(m, field, value, validator = str => trim(str).length > 0, ...args) { const prevValue = m.getIn(["field", field, ...
client/src/components/Explorer/Explorer.js
takeflight/wagtail
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import * as actions from './actions'; import ExplorerPanel from './ExplorerPanel'; const Explorer = ({ isVisible, nodes, path, pushPage, popPage, onClose, }) => { const page = nodes[path[path.length - ...
ui/src/components/GatewayForm.js
jcampanell-cablelabs/lora-app-server
import React, { Component } from 'react'; import { Link } from 'react-router'; import { Map, Marker, TileLayer } from 'react-leaflet'; import Select from "react-select"; import SessionStore from "../stores/SessionStore"; import LocationStore from "../stores/LocationStore"; import GatewayStore from "../stores/GatewayS...
src/redux/utils/createDevToolsWindow.js
adrienhobbs/redux-glow
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import DevTools from '../../containers/DevToolsWindow'; export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window ...
src/js/ui/components/backgroundTasksIndicator.js
hiddentao/heartnotes
import _ from 'lodash'; import React from 'react'; import Loading from './loading' import { connectRedux } from '../helpers/decorators'; var Component = React.createClass({ getInitialState: function() { return { show: false, }; }, componentWillReceiveProps: function(props) { const tasks = _...
src/svg-icons/communication/contact-mail.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationContactMail = (props) => ( <SvgIcon {...props}> <path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3...
client/containers/TimerMulti.js
rickyeh/nimblecode
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import CountdownTimerMulti from './CountdownTimerMulti'; import StartButtonMulti from './StartButtonMulti'; import { endGame, leavePage, updateElapsedTime } from '../actions/index'; class TimerM...
modules/Link.js
yongxu/react-router
import React from 'react'; import warning from 'warning'; var { bool, object, string, func } = React.PropTypes; function isLeftClickEvent(event) { return event.button === 0; } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); } /** * A <Link> is used...
index.ios.js
lvtanxi/HelloReactNative
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class HelloReactNative extends Component { render() { return ( <View style={styles.co...
ajax/libs/flocks.js/0.15.3/flocks.js
noraesae/cdnjs
/** @jsx React.DOM */ /* jshint node: true, browser: true, newcap: false */ /** * The Flocks library module. * * @module Flocks * @main Flocks * @class Flocks */ // if it's in a <script> it's defined already // otherwise assume commonjs if (typeof React === 'undefined') { var Reac...
ajax/libs/react-virtualized/8.1.1/react-virtualized.min.js
wout/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("React.addons.shallowCompare"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","React.addons.shallowCompare","ReactDOM"],t):"object"==typeof exports?exports.ReactVirtualized=t(require("R...
docs/src/sections/PopoverSection.js
pombredanne/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function PopoverSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <A...
lib/svg-icons/communication/dialpad.js
Cerebri/material-ui
'use strict'; var React = require('react'); var PureRenderMixin = require('react-addons-pure-render-mixin'); var SvgIcon = require('../../svg-icon'); var CommunicationDialpad = React.createClass({ displayName: 'CommunicationDialpad', mixins: [PureRenderMixin], render: function render() { return React.crea...
src/components/About.react.js
kitematic/kitematic
import React from 'react/addons'; import metrics from '../utils/MetricsUtil'; import utils from '../utils/Util'; import Router from 'react-router'; import RetinaImage from 'react-retina-image'; var packages; try { packages = utils.packagejson(); } catch (err) { packages = {}; } var Preferences = React.createClass...
blueocean-material-icons/src/js/components/svg-icons/editor/format-shapes.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorFormatShapes = (props) => ( <SvgIcon {...props}> <path d="M23 7V1h-6v2H7V1H1v6h2v10H1v6h6v-2h10v2h6v-6h-2V7h2zM3 3h2v2H3V3zm2 18H3v-2h2v2zm12-2H7v-2H5V7h2V5h10v2h2v10h-2v2zm4 2h-2v-2h2v2zM19 5V3h2v2h-2zm-5.27 9h-3.49l-.73 2H7.89l3.4-9h1....
src/Events.js
nickorsk2020/agave-react-UI
/* * This file is part of the "Agave react UI" package * * Copyright (c) 2016 Stepanov Nickolay <nickorsk2020@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ let Events = { onSubmit:null }; export default Events...
src/components/Achievement/Achievement/Achievement.js
easingthemes/notamagic
import React from 'react'; import SvgLine from 'components/SvgLine'; import data from '../data'; /** * React component implementation. * * @author dfilipovic * @namespace ReactApp * @class Achievement * @extends ReactApp */ export class Achievement extends React.Component { // --------------------------------...
MobileApp/node_modules/react-dropzone/src/index.spec.js
VowelWeb/CoinTradePros.com
import React from 'react' import { mount, render } from 'enzyme' import { spy, stub } from 'sinon' const Dropzone = require(process.env.NODE_ENV === 'production' ? '../dist/index' : './index') // eslint-disable-line import/no-dynamic-require const DummyChildComponent = () => null let files let images describe('Dropz...
packages/material-ui-icons/src/TabRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 16H4c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h9v3c0 .55.45 1 1 1h7v9c0 .55-.45 1-1 1z" /> , 'TabRounded');
admin/client/App/screens/Home/components/ListTile.js
dvdcastro/keystone
import React from 'react'; import { Link } from 'react-router'; /** * Displays information about a list and lets you create a new one. */ var ListTile = React.createClass({ propTypes: { count: React.PropTypes.string, href: React.PropTypes.string, label: React.PropTypes.string, path: React.PropTypes.string, ...
src/components/search/searchButtons/SearchButtons.js
ianroberts131/visual-algorithms
import React from 'react'; import { Link } from 'react-router'; import { Row, Col } from 'react-bootstrap'; import PlayPauseButtons from '../../playPauseButtons/PlayPauseButtons'; import './searchButtons.css'; var classNames = require('classnames'); class SearchButtons extends React.Component { render() { c...
src/common/components/build-log/index.js
canonical-ols/build.snapcraft.io
import PropTypes from 'prop-types'; import React from 'react'; import styles from './build-log.css'; const BuildLog = (props) => { if (props.logUrl) { return ( <iframe className={styles.frame} src={props.logUrl}> </iframe> ); } else { return ( <div> The build log will appear ...
src/FolderInput.js
rajington/vesper-trello
// special file input allowing folder selection import React from 'react'; const giveCustomAttributes = (input) => { input.setAttribute('webkitdirectory', ''); } export default (props) => ( <input type='file' ref={giveCustomAttributes} {...props} /> )
src/header/Navigation.js
ltoddy/ltoddy.github.io
import React from 'react' import PropTypes from 'prop-types' import ReactTooltip from 'react-tooltip' import css from './Navigation.css' // sub component const Channel = props => ( <div className={css.channel} data-tip data-for={props.title}> <a href={props.link}>{props.title}</a> <ReactTooltip id={props.ti...
public/react/react.js
douglas-vaz/tweet-cheep
/** * React v0.11.0 */ !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.React=e()}}(function(){var d...
ajax/libs/react/0.13.0-alpha.1/react.js
dryajov/cdnjs
/** * React v0.13.0-alpha.1 */ !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.React=e()}}(function...
lib/yui/3.4.1/build/event-focus/event-focus.js
whitireia/moodle
/* YUI 3.4.1 (build 4118) Copyright 2011 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ 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....
modules/experimental/AsyncProps.js
flocks/react-router
import React from 'react'; import invariant from 'invariant'; var { func, array, shape, object } = React.PropTypes; var contextTypes = { asyncProps: shape({ reloadComponent: func, propsArray: array, componentsArray: array }) }; var _serverPropsArray = null; function setServerPropsArray(array) { inv...
ajax/libs/backbone-react-component/0.4.1/backbone-react-component-min.js
iamJoeTaylor/cdnjs
/** * Backbone.React.Component * @version 0.4.1 * @author "Magalhas" José Magalhães <magalhas@gmail.com> * @license MIT <http://opensource.org/licenses/MIT> */ !function(a){if("function"==typeof define&&define.amd)define(["react","backbone","underscore"],a);else if("undefined"!=typeof module){var b=require("react"...
client/src/components/kegs/keg-list.js
commoncode/ontap
/** * KegList. * * Lists all the Kegs; current, past, future. * Used for 'Now on Tap' view. */ import React from 'react'; import reactPropTypes from 'prop-types'; import { Container } from 'flux/utils'; import { fetchKegs } from '../../actions/kegs'; import kegsStore from '../../stores/kegs'; import * as propTyp...
src/svg-icons/image/filter-tilt-shift.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterTiltShift = (props) => ( <SvgIcon {...props}> <path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.11-.86 2.44-1.44 3.9-1.62zm7.32.19C16.84 3.05 15.01 2.25 13 2.05v2.02c1.46.18 2.79.76 3.9 1.62...
packages/material-ui-icons/src/Home.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment> , 'Home');
src/routes.js
SabyasachiDhar/react101
import React from 'react'; import {Route, IndexRoute} from 'react-router'; import PostIndex from './components/post_index'; import PostsNew from './components/posts_new'; import PostsShow from './components/posts_show'; import App from './components/app'; const Greeting = () => { return( <div> ...
ajax/libs/rxjs/2.3.6/rx.all.js
Dervisevic/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...
webpack.config.renderer.dev.js
Zyst/Aergia
/* eslint global-require: 0, import/no-dynamic-require: 0 */ /** * Build config for development electron renderer process that uses * Hot-Module-Replacement * * https://webpack.js.org/concepts/hot-module-replacement/ */ import path from "path"; import fs from "fs"; import webpack from "webpack"; import chalk fro...
ajax/libs/react-select/2.0.0-beta.5/react-select.min.js
sashberd/cdnjs
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("emotion"),require("react"),require("react-dom"),require("react-input-autosize"),require("prop-types")):"function"==typeof define&&define.amd?define(["emotion","react","react-dom","react-input-autosize","prop-types"],t):e.Selec...
techCurriculum/ui/solutions/5.1/src/components/TextInput.js
AnxChow/EngineeringEssentials-group
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
ajax/libs/6to5/2.7.2/browser.js
mgoldsborough/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...
ajax/libs/mobx/2.1.6/mobx.min.js
brix/cdnjs
/** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */ "use strict";function B(e,t){o(e,"autorun methods cannot have modifiers"),n("function"==typeof e,"autorun expects a function"),n(0===e.length,"autorun expects a function without arguments"),t&&(e=e.bind(t));var r=new O(e.name||"Autorun",function(){this.track...
src/svg-icons/editor/show-chart.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorShowChart = (props) => ( <SvgIcon {...props}> <path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/> </SvgIcon> ); EditorShowChart = pure(EditorShowChart); EditorShowChart.displayNa...
src/pages/resume.js
H3yfinn/finbarmaunsell.com
import React from 'react' import Link from 'gatsby-link' import { Row, Col, Container } from 'reactstrap'; const SecondPage = () => ( <div> <Container> <Row style={{maxWidth: '30cm', marginLeft: 'auto', marginRight: 'auto', boxShadow: 'rgba(0, 0, 0, 0.498039) 0px 0px 0.5cm', backgroundColor: 'black'}}...
docs/src/HomePage.js
tannewt/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageFooter from './PageFooter'; import Grid from '../../src/Grid'; import Alert from '../../src/Alert'; import Glyphicon from '../../src/Glyphicon'; import Label from '../../src/Label'; export default class HomePage extends React.Component{ render()...
ajax/libs/angular-ui-select/0.16.1/select.js
wout/cdnjs
/*! * ui-select * http://github.com/angular-ui/ui-select * Version: 0.16.0 - 2016-03-23T20:51:56.609Z * License: MIT */ (function () { "use strict"; var KEY = { TAB: 9, ENTER: 13, ESC: 27, SPACE: 32, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, SHIFT: 16, CTRL: 17, ALT: 18,...
src/app/components/ShowUpdate.js
cgrossde/Pullover
import React from 'react' import { Col, Row } from 'react-bootstrap' import { externalLinkHandler } from '../nw/Window' import { getCachedRemotePackageInfo } from '../services/UpdateCheck' class ShowUpdate extends React.Component { getInitialState() { return { remotePackageInfo: null } } render()...
app/containers/LocaleToggle/index.js
j921216063/chenya
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import Toggle from 'components/Toggle'; import Wrapper from './Wrapper'; import messages from './messages'; import { appLocales } from '../../i18n'; import { changeLocale } from ...
src/parser/mage/arcane/CHANGELOG.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { Sharrq, fluffels } from 'CONTRIBUTORS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { change, date } from 'common/changelog'; export default [ change(date(2020, 1, 15), 'Updated Spec Compatibility to 8.3',[Sharrq]), change(date(2019, 10,...
ajax/libs/jquery/1.10.1/jquery.js
nareshs435/cdnjs
/*! * jQuery JavaScript Library v1.10.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-05-30T21:49Z */ (function( window, undefined ) { // ...
test/server/ModalSpec.js
westonplatter/react-bootstrap
import React from 'react'; import {assert} from 'chai'; import Modal from '../../src/Modal.js'; describe('Modal', () => { it('Should be rendered on the server side', () => { let noOp = () => {}; assert.doesNotThrow(function renderOnServerSide() { return React.renderToString( <Modal onHide={noO...
webroot/rsrc/js/application/uiexample/ReactorSendPropertiesExample.js
AceMood/phabricator
/** * @provides phabricator-uiexample-reactor-sendproperties * @requires javelin-install * javelin-dom * javelin-reactor-dom */ JX.install('ReactorSendPropertiesExample', { extend: 'View', members: { render: function() { var color = JX.$N('input', {value: '#fff000'}); var t...
app/containers/App.js
lamosty/spin-bike-ui
import React, { Component } from 'react'; import MainNav from '../components/main-nav'; import 'bootstrap-loader'; import '../assets/style.scss'; export default class App extends Component { constructor(props) { super(props); } render() { const { children } = this.props; return ( <div> <MainNav /> ...
ajax/libs/yui/3.4.1/simpleyui/simpleyui.js
Amomo/cdnjs
/** * The YUI module contains the components required for building the YUI seed * file. This includes the script loading mechanism, a simple queue, and * the core utilities for the library. * @module yui * @submodule yui-base */ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** * The YUI global names...
components/App.js
hydRAnger/ReactLifeCycle
import React, { Component } from 'react'; import Counter from './Counter'; export default class App extends Component { constructor(props) { super(props); this.state = { code: Math.floor(Math.random() * 100) }; } handleRefresh(event: any) { event.preventDefault(); this.setState({ ...
app/javascript/mastodon/components/status.js
haleyashleypraesent/ProjectPrionosuchus
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...
packages/create-razzle-app/templates/default/src/App.js
jaredpalmer/react-production-starter
import React from 'react'; import Route from 'react-router-dom/Route'; import Switch from 'react-router-dom/Switch'; import Home from './Home'; import './App.css'; const App = () => ( <Switch> <Route exact path="/" component={Home} /> </Switch> ); export default App;
dist/1.10.1/jquery-css-deprecated-effects-wrap.min.js
eric-seekas/jquery-builder
/*! jQuery v1.10.1 -wrap,-css,-effects,-offset,-dimensions,-deprecated | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */ (function(e,t){var n,r,i=typeof t,a=e.location,o=e.document,s=o.documentElement,l=e.jQuery,u=e.$,c={},p=[],d="1.10.1 -wrap,-css,-effects,-offset,-di...
ajax/libs/react-bootstrap-table/1.3.1/react-bootstrap-table.min.js
AMoo-Miki/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrapTable=t(require("react"),require("react-dom")):e.ReactBootstrapTable=t(e.React,e.R...
dev/test-studio/schema/plugins/color.js
sanity-io/sanity
/* eslint-disable react/display-name */ import {DropIcon} from '@sanity/icons' import React from 'react' export default { name: 'colorTest', type: 'document', title: 'Color', icon: DropIcon, preview: { select: { title: 'title', color: 'testColor1', }, prepare({title, color}) { ...
src/routes/index.js
buildit/bookit-web
import React from 'react' import { Switch, Route } from 'react-router' import ProtectedRoute from './ProtectedRoute' import Dashboard from '../containers/Dashboard' import Admin from '../containers/Admin' import Login from '../containers/Login' import Forbidden from '../containers/Forbidden' import OpenId from '../c...
src/components/Article/Comment.js
vkarpov15/shidoshi
import DeleteButton from './DeleteButton'; import { Link } from 'react-router'; import React from 'react'; const Comment = props => { const comment = props.comment; const show = props.currentUser && props.currentUser.username === comment.author.username; return ( <div className="card"> <div classNa...
src/js/components/docker/partial/Hero.js
ajainsyn/project
import React from 'react'; import BrandLogo from '../../../shared/BrandLogo'; import introVideoPath from '../../../../assets/images/video/synbaas_intro.mp4'; import videoPlaceholder from '../../../../assets/images/video/video-placholder.jpg'; import docker from '../../../../assets/images/docker_hub.png'; const Her...
ajax/libs/mediaelement/2.0.4/jquery.js
featurist/cdnjs
/*! * jQuery JavaScript Library v1.4.4 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
teichopsia-/conFusion
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
client/components/elements/basic-button.js
zhenyulin/ultimate-hot-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; export class BasicButton extends React.PureComponent { static propTypes = { className: PropTypes.string, func: PropTypes.func, text: PropTypes.string, }; static defaultProps = {}; render() { ...
app/components/ToggleOption/index.js
davecyen/react-boilerplate-material
/** * * ToggleOption * */ import React from 'react'; import { injectIntl, intlShape } from 'react-intl'; const ToggleOption = ({ value, message, intl }) => ( <option value={value}> {message ? intl.formatMessage(message) : value} </option> ); ToggleOption.propTypes = { value: React.PropTypes.string.isRequir...
addons/stock/static/src/js/widgets.js
kirca/odoo
function openerp_picking_widgets(instance){ var module = instance.stock; var _t = instance.web._t; var QWeb = instance.web.qweb; // This widget makes sure that the scaling is disabled on mobile devices. // Widgets that want to display fullscreen on mobile phone need to extend this // wid...
client/src/react/health/Health.js
charlesj/Apollo
import React from 'react' import HealthInput from './HealthInput' import HomeHealth from './HomeHealth' class Health extends React.Component { render() { return ( <div> <HealthInput /> <HomeHealth /> </div> ) } } export default Health
local_modules/phi-nomenal-webapp/app/god/god.js
phi-nomenal/phi-nomenal
import React from 'react' import { render } from 'react-dom' import './god.css' class God extends React.Component { render () { return <div id='god'> <div id='god-overview' /> </div> } } export default God
ajax/libs/analytics.js/2.2.3/analytics.js
gogoleva/cdnjs
(function outer(modules, cache, entries){ /** * Global */ var global = (function(){ return this; })(); /** * Require `name`. * * @param {String} name * @param {Boolean} jumped * @api public */ function require(name, jumped){ if (cache[name]) return cache[name].exports; if (mo...
test/specs/elements/Icon/Icon-test.js
ben174/Semantic-UI-React
import React from 'react' import Icon from 'src/elements/Icon/Icon' import IconGroup from 'src/elements/Icon/IconGroup' import * as common from 'test/specs/commonTests' describe('Icon', () => { common.isConformant(Icon) common.hasSubComponents(Icon, [IconGroup]) common.implementsCreateMethod(Icon) common.prop...
bower_components/tether/examples/resources/js/jquery.js
ribraim/agenda
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
ajax/libs/forerunnerdb/1.3.753/fdb-legacy.min.js
rlugojr/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...
ajax/libs/react-select/1.0.0-rc.1/react-select.min.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 t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Select=e()}}(function(){return function e(t,u,s){functi...
src/ModalTitle.js
victorzhang17/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalTitle extends React.Component { render() { return ( <h4 {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.children } </h4> ); } } ModalTitle.pr...
test/dashboard-test.js
DarwinSmith/tentara-pelajar-client
/** * Created by lightmitch on 4/13/17. */ import React from 'react'; import renderer from 'react-test-renderer'; it('renders correctly', () => { const mainContent = renderer.create( <MainContent/> ).toJSON(); expect(mainContent).toMatchSnapshot(); });