path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
client/src/pages/game.js
DailyGrind/Chain-Reaction
import React, { Component } from 'react'; import Game from 'src/components/game'; import Stats from 'src/containers/stats'; import Matrix from 'src/containers/matrix'; import PlayerUp from '../components/settings'; export default class GamePage extends Component { render() { return ( <Game> <Matrix...
routes/type.js
jefgodesky/thefifthworld
'use strict'; (function () { require('../lib/extensions') const express = require('express') const passport = require('passport') const permission = require('../lib/permission') const errors = require('../lib/errors') const pathExists = require('../lib/pathExists') const router = express.Router() const Project = r...
app/src/components/content/UserPage/GroupStatus/index.js
ouxu/NEUQ-OJ
/** * Created by out_xu on 17/5/16. */ import React from 'react' import { Card, Table } from 'antd' import './index.less' const GroupStatus = (props) => { const columns = [ { title: 'avatar', dataIndex: 'avatar', width: 48 }, { title: 'content', dataIndex: 'content', rend...
jenkins-design-language/src/js/components/material-ui/svg-icons/places/child-care.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const PlacesChildCare = (props) => ( <SvgIcon {...props}> <circle cx="14.5" cy="10.5" r="1.25"/><circle cx="9.5" cy="10.5" r="1.25"/><path d="M22.94 12.66c.04-.21.06-.43.06-.66s-.02-.45-.06-.66c-.25-1.51-1.36-2.74-2.81-3.17-.53-1.12-1.28-2.1-2.19-2....
ajax/libs/react-virtualized/2.7.0/react-virtualized.min.js
extend1994/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["react-virtualized"]=t(require("react")):e["react-virtualized"]=t(e.React)}(this,function(e){return function(e){function t(r){if(...
src/components/common/statbar/Stat.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import DataCard from '../DataCard'; import withHelp from '../hocs/HelpfulContainer'; class Stat extends React.Component { UNSAFE_componentWillMount() { const { helpTitleMsg, helpContentMsg, s...
src/NavDropdown.js
AlexKVal/react-bootstrap
import React from 'react'; import Dropdown from './Dropdown'; class NavDropdown extends React.Component { render() { let { children, title, noCaret, ...props } = this.props; return ( <Dropdown {...props} componentClass='li'> <Dropdown.Toggle useAnchor disabled={props.disab...
src/smif/app/src/components/ConfigForm/General/NotFound.js
willu47/smif
import React from 'react' const NotFound = () => ( <div className="alert alert-danger"> <strong>Nothing found here</strong> &ndash; try the main menu. </div> ) export default NotFound
src/app/containers/AppContainer/index.js
anekpattanakij/react-redux-i18n-hot-universal-boilerplate
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import App from 'app/components/App'; export default class AppContainer extends Component { static propTypes = { children: PropTypes.element.isRequired, localization: PropTypes.object, }; render() { return <App {...this.pr...
ajax/libs/vkui/4.28.1/cssm/components/Slider/Slider.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/extends"; import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; var _excluded = ["onChange", "defaultValue", "min", "max", "value"]; import { createScopedElement } from "../.....
src/components/Footer/Footer.js
c-hernandez/codex-5e
import React from 'react'; const Footer = () => ( <h5>By: Candido Hernandez</h5> ); export default Footer;
src/parser/druid/feral/modules/features/EnergyCapTracker.js
FaideWW/WoWAnalyzer
import React from 'react'; import Icon from 'common/Icon'; import SPELLS from 'common/SPELLS'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import { formatDuration, formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import RegenResourceCapTracker...
src/components/Counter/Counter.js
aurel-tackoen/spencer.io
import React from 'react' import classes from './Counter.scss' export const Counter = (props) => ( <div> <h2 className={classes.counterContainer}> Counter: {' '} <span className={classes['counter--green']}> {props.counter} </span> </h2> <button className='btn btn-default' ...
src/svg-icons/image/wb-auto.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbAuto = (props) => ( <SvgIcon {...props}> <path d="M6.85 12.65h2.3L8 9l-1.15 3.65zM22 7l-1.2 6.29L19.3 7h-1.6l-1.49 6.29L15 7h-.76C12.77 5.17 10.53 4 8 4c-4.42 0-8 3.58-8 8s3.58 8 8 8c3.13 0 5.84-1.81 7.1...
admin/client/components/PopoutFooter.js
Ftonso/keystone
import React from 'react'; const buttonBaseClassname = 'Popout__footer__button Popout__footer__button--'; var PopoutFooter = React.createClass({ displayName: 'PopoutFooter', propTypes: { children: React.PropTypes.node, primaryButtonAction: React.PropTypes.func, primaryButtonIsSubmit: React.PropTypes.bool, p...
node_modules/react-hot-loader/lib/AppContainer.prod.js
juhov/travis-test
/* eslint-disable react/prop-types */ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descrip...
ajax/libs/react-instantsearch/4.3.0-beta.0/Dom.min.js
sufuf3/cdnjs
/*! ReactInstantSearch 4.3.0-beta.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e.ReactInstantSearch=e.ReactInstantSearch||{...
ajax/libs/axios/0.9.1/axios.js
jonathantneal/cdnjs
/* axios v0.9.1 | (c) 2016 by Matt Zabriskie */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exp...
src/svg-icons/editor/bubble-chart.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBubbleChart = (props) => ( <SvgIcon {...props}> <circle cx="7.2" cy="14.4" r="3.2"/><circle cx="14.8" cy="18" r="2"/><circle cx="15.2" cy="8.8" r="4.8"/> </SvgIcon> ); EditorBubbleChart = pure(EditorBub...
src/components/tvshows/episode-table.js
scholtzm/arnold
import React from 'react'; import { Table } from 'semantic-ui-react'; import LoaderSegment from '../misc/loader-segment.js'; import PlayEpisodeButton from './play-episode-button.js'; const EpisodeTable = (props) => { if(!props.episodes) { return <LoaderSegment size='medium' />; } return ( <Table celled>...
src/containers/Charts/recharts/charts/index.js
EncontrAR/backoffice
import React from 'react'; import Async from '../../../../helpers/asyncComponent'; const SimpleLineCharts = (props) => <Async load={import(/* webpackChunkName: "rechartx-simpleLineCharts" */ './simpleLineCharts')} componentProps={props} />; const CustomizedDotLineChart = (props) => <Async load={import(/* webpackChunkN...
ajax/libs/react-virtualized/4.7.1/react-virtualized.js
extend1994/cdnjs
!function(root, factory) { "object" == typeof exports && "object" == typeof module ? module.exports = factory(require("react"), require("react-dom")) : "function" == typeof define && define.amd ? define([ "react", "react-dom" ], factory) : "object" == typeof exports ? exports["react-virtualized"] = factory(require(...
entry_types/scrolled/package/spec/frontend/MediaPlayerControls-spec.js
codevise/pageflow
import {MediaPlayerControls} from 'frontend/MediaPlayerControls'; import {useFile} from 'entryState'; import React from 'react'; import {fireEvent} from '@testing-library/react'; import {useFakeTranslations} from 'pageflow/testHelpers'; import {renderInEntry} from 'support'; import {getInitialPlayerState, getPlayerAc...
Libraries/Inspector/Inspector.js
supercocoa/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
public/javascripts/_components/DashboardTile.js
Algram/autocard
import React from 'react'; import ReactDOM from 'react-dom'; export default class DashboardTile extends React.Component { constructor(props) { super(props); // Operations usually carried out in componentWillMount go here } render() { return ( <div className="col-md-10"> <button onClick=...
src/index.js
LaylaWang119/Star-Wars-Search
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
client/ui/atoms/litter.js
LestaD/InstaClone
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' export const Litter = styled.div` position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; background-color: rgba(0, 0, 0, 0.75); z-index:...
packages/@vega/article-state-tool/src/components/ArticleStateTool.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import {get} from 'lodash' import {withRouterHOC} from 'part:@vega/core/router' import ArticleFeatures from './ArticleFeatures' import styles from './styles/ArticleStateTool.css' // eslint-disable-next-line class ArticleStateTool extends React.Component { ...
app/containers/Spa/SpaReport/EmailModal.js
vollmerr/app-hub
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { DefaultButton, PrimaryButton } from 'office-ui-fabric-react/lib/Button'; import { Dialog, DialogType, DialogFooter } from 'office-ui-fabric-react/lib/Dialog'; import { Form } from 'react-final-form'; import ...
src/client/state/stateWrapper.component.js
DBCDK/tanterne
/** * @file * Wrap a component in a statefull container. * * Props are updated when globalState changes. * It is possible to transfer props to the wrapped component, using the transfer property. */ import React from 'react'; export default class StateWrapper extends React.Component { constructor(props) { ...
website/core/SnackPlayer.js
mironiasty/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/SanityVision.js
rexxars/sanity-vision
import React from 'react' import client from 'part:@sanity/base/client' import Button from 'part:@sanity/components/buttons/default' import Select from './sanity/Select' import Vision from './Vision' import visionGui from './css/visionGui.css' import jsonInspector from './css/jsonInspector.css' import jsonDump from '....
vendor/jquery/jquery.min.js
RCasatta/eternitywall.com_draft
/*! jQuery v1.12.4 | (c) jQuery Foundation | 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 window?window:this,fu...
assets/js/project.js
iOSHaven/ioshaven
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
screens/Wallets/AddWallet.js
haaswill/open-wallet-app
import React, { Component } from 'react'; import { Text } from 'react-native'; import { MainView } from '../../components'; import styles from './styles'; class AddWallet extends Component { render() { return ( <MainView style={styles.container}> <Text>AddWallet Screen</Text> <Text>AddWalle...
examples/src/components/Cities.js
taifen/react-select
import React from 'react'; import VirtualizedSelect from 'react-virtualized-select'; const DATA = require('../data/cities'); var CitiesField = React.createClass({ displayName: 'CitiesField', getInitialState () { return {}; }, updateValue (newValue) { this.setState({ selectValue: newValue }); }, render ...
generators/app/templates/app/src/helpers/DevTools/DevTools.js
hasura/generator-hasura-web
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q"> <LogMonitor /...
js/src/dapps/registry.js
immartian/musicoin
// Copyright 2015, 2016 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any la...
src/routes/Battle/components/MonUnit.js
eunvanz/handpokemon2
import React from 'react' import PropTypes from 'prop-types' import { isScreenSize, getMsg } from 'utils/commonUtil' import { colors } from 'constants/colors' import Img from 'components/Img' import MonModal from 'components/MonModal' import MonAttr from 'components/MonAttr' class MonUnit extends React.Component { ...
src/components/WidgetForm/WidgetForm.js
trungtin/react-redux-universal-hot-example
import React, {Component, PropTypes} from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {connectReduxForm} from 'redux-form'; import widgetValidation, {colors} from './widgetValidation'; import * as widgetActions from 'redux/modules/widgets'; @connect( state => ({ ...
src/js/components/icons/base/SocialProductHunt.js
odedre/grommet-final
/** * @description SocialProductHunt SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textCol...
src/node_modules/struct/containers/layout/index.js
react-store/react-store.ml
import React from 'react' import Sidebar from 'struct/components/sidebar' const Layout = ({ children }) => ( <div className='row'> <div className='col-md-3 hidden-xs hidden-sm'> <Sidebar /> </div> <div className='col-md-9'> {children} ...
src/collections/Table/TableHeader.js
Semantic-Org/Semantic-UI-React
import cx from 'clsx' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, useKeyOnly, } from '../../lib' /** * A table can have a header. */ function TableHeader(props) { const { children, className, content, fullWidth ...
src/client/products/nothingFound.js
r3dDoX/geekplanet
import grey from '@material-ui/core/colors/grey'; import React from 'react'; import { FormattedMessage } from 'react-intl'; import styled from 'styled-components'; const grey500 = grey['500']; const Container = styled.p` margin: 0; padding: 25px 15px; color: ${grey500}; text-align: center; `; export default ...
components/todo-list.js
pho3nixf1re/followupboss-example
import React from 'react'; import {Table, Checkbox} from 'elemental'; function TodoList({ items }) { let rowElements = items.map(item => { return ( <tr key={item}> <td><Checkbox /></td> <td>{item}</td> </tr> ); }); return ( <T...
src/rendering/fields.js
MGrin/mgr-form-react
import React from 'react'; import PropTypes from 'prop-types'; import { FIELD_RENDERER_PROPS } from '../props'; export const input = ({ value, className, fieldNameAsCss, validate, disabled, onValueChange, ...otherProps }) => ( <input value={value} className={`${className} ${className}-renderer ${className}-$...
src/svg-icons/image/filter-9-plus.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter9Plus = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 7V8c0-1.11-.9-2-2-2h-1c-1.1 0-2 .89-2 2v1c0 1.11.9 2 2 2h1v1H9v2h3c1.1 0 2-.89 2-2zm-3-3V8h1v1h-1zm10-8H7c-1.1...
examples/todomvc/test/components/Footer.spec.js
gajus/redux
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import Footer from '../../components/Footer' import { SHOW_ALL, SHOW_ACTIVE } from '../../constants/TodoFilters' function setup(propOverrides) { const props = Object.assign({ completedCount: 0, activeCount: ...
packages/rocketchat-lib/package.js
mhurwi/Rocket.Chat
Package.describe({ name: 'rocketchat:lib', version: '0.0.1', summary: 'RocketChat libraries', git: '' }); Package.onUse(function(api) { api.versionsFrom('1.0'); api.use('reactive-var'); api.use('reactive-dict'); api.use('coffeescript'); api.use('random'); api.use('check'); api.use('ddp-rate-limiter'); api...
react-native/project/my_first_rn_app/src/components/Button.js
khaosdoctor/my-notes
import React from 'react' import {TouchableOpacity, Text, StyleSheet} from 'react-native' export function Button ({onPress, text}) { return ( <TouchableOpacity style={styles.button} activeOpacity={.8} onPress={onPress} > <Text style={styles.text}>{text}</Text> </TouchableOpacity> ...
src/Parser/Paladin/Protection/Modules/Features/BuffedHOTP.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Combatants from 'Parser/Core/Mo...
helene/assets/js/components/ShortForecast.js
voidpp/Helene
import React from 'react'; import {ComponentAsFactory, bind} from '../tools'; import WeatherStore from '../stores/WeatherStore'; import Lang from '../lang'; export class ShortForecast extends React.Component { constructor(props) { super(props); bind(this, this.onWeatherChange); this.state = ...
ajax/libs/jQRangeSlider/5.0.0/jQRangeSliderBar.js
calebmer/cdnjs
/** * jQRangeSlider * A javascript slider selector that supports dates * * Copyright (C) Guillaume Gautreau 2012 * Dual licensed under the MIT or GPL Version 2 licenses. * */ (function($, undefined){ "use strict"; $.widget("ui.rangeSliderBar", $.ui.rangeSliderDraggable, { options: { leftHandle: null, ...
App/Views/Widgets/CameraRollItem.js
Chandler-Sun/react-native-app-template
import React, { Component } from 'react'; import { Image, StyleSheet, Dimensions, TouchableOpacity, Text, View, Animated, findNodeHandle } from 'react-native'; const RCTUIManager = require('NativeModules').UIManager; import {Icon} from 'native-base' import renderIf from '../../Utils/Visibility' import v...
packages/material-ui-icons/src/SignalWifi2BarLockRounded.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 fillOpacity=".3" d="M15.5 14.5c0-2.8 2.2-5 5-5 .36 0 .71.04 1.05.11L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l10.08 12.56c.8 1 2.32 1...
misc/tabledrag.js
solnalag/sandudden
(function ($) { /** * Drag and drop table rows with field manipulation. * * Using the drupal_add_tabledrag() function, any table with weights or parent * relationships may be made into draggable tables. Columns containing a field * may optionally be hidden, providing a better user experience. * * Created tableD...
react-flux-mui/js/material-ui/src/svg-icons/device/battery-charging-80.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging80 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L11...
app/javascript/mastodon/features/compose/components/search.js
pso2club/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { searchEnabled } from '../...
ajax/libs/preact/5.0.1-beta.14/preact.js
tonytomov/cdnjs
!function(global, factory) { 'object' == typeof exports && 'undefined' != typeof module ? factory(exports) : 'function' == typeof define && define.amd ? define([ 'exports' ], factory) : factory(global.preact = global.preact || {}); }(this, function(exports) { function VNode(nodeName, attributes, children) { ...
ajax/libs/analytics.js/2.2.4/analytics.js
jmusicc/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...
code/wp-content/themes/akvo-sites/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
akvo/akvo-sites-zz-template
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'));
src/styles/muiThemeable.js
rscnt/material-ui
import React from 'react'; import getMuiTheme from './getMuiTheme'; let DEFAULT_THEME; function getDefaultTheme() { if (!DEFAULT_THEME) { DEFAULT_THEME = getMuiTheme(); } return DEFAULT_THEME; } export default function muiThemeable() { return (Component) => { const MuiComponent = (props, context) => ...
client/index/bundle.js
sliwei/react16-koa2
import React from 'react' export default class Bundle extends React.Component { state = { // short for "module" but that's a keyword in js, so "mod" mod: null } componentWillMount() { this.load(this.props) } componentWillReceiveProps(nextProps) { if (nextProps.loa...
ajax/libs/babel-core/5.6.20/browser-polyfill.min.js
BobbieBel/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...
ajax/libs/react-virtualized/4.1.0/react-virtualized.min.js
emmy41124/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["react-virtualized"]=t(require("react")):e["react-virtualized"]=t(e.React)}(this,function(e){return function(e){function t(n){if(...
packages/observe-sequence/observe_sequence.js
williambr/meteor
var warn = function () { if (ObserveSequence._suppressWarnings) { ObserveSequence._suppressWarnings--; } else { if (typeof console !== 'undefined' && console.warn) console.warn.apply(console, arguments); ObserveSequence._loggedWarnings++; } }; var idStringify = MongoID.idStringify; var idParse...
ajax/libs/material-ui/5.0.0-alpha.7/internal/svg-icons/ArrowDownward.min.js
cdnjs/cdnjs
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault"),_interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var React=_interopRequireWildcard(require("react")),_createSvgIco...
examples/todos-flow/src/components/App.js
heyesther/redux
// @flow import React from 'react' import Footer from './Footer' import AddTodo from '../containers/AddTodo' import VisibleTodoList from '../containers/VisibleTodoList' const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> </div> ) export default App
src/components/Layout/Footer.js
mapengze/Antd-Backstage
import React from 'react' import styles from './Footer.less' import { config } from '../../utils' const Footer = () => <div className={styles.footer}> {config.footerText} </div> export default Footer
source/view/commentAdd.js
togayther/react-native-cnblogs
import React, { Component } from 'react'; import { View, Text, Image, TextInput, StyleSheet, ScrollView, TouchableOpacity } from 'react-native'; import _ from 'lodash'; import TimerMixin from 'react-timer-mixin'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import To...
packages/react-router-website/modules/components/SourceViewer.js
goblortikus/react-router
/*eslint-disable react/no-danger*/ import React from 'react' import PropTypes from 'prop-types' import 'prismjs/themes/prism-tomorrow.css' import { Block } from 'jsxstyle' const SourceViewer = ({ code, ...rest }) => ( <Block component="pre" background="rgb(45, 45, 45)" color="white" margin="0" ov...
app/javascript/flavours/glitch/features/follow_recommendations/index.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import { fetchSuggestions } from 'flavours...
client/App/Shell/Admin/index.js
noamokman/project-starter-sample
import React from 'react'; import {Flex} from 'reflexbox'; import {Card, CardTitle, CardText} from 'material-ui'; export default () => ( <Flex auto column align='center' justify='center'> <Card> <CardTitle title='Admin' /> <CardText> <Flex column> <span>{'You are an admin!'}</span> ...
assets/jqwidgets/demos/react/app/treegrid/celledit/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; class App extends React.Component { componentDidMount() { let log = document.getElementById('log'); // Cell Begin Edit this.refs.myTreeGrid.on('cellBeginEdi...
5.ParentChildComunication/src/Header.js
hiren2728/ReactDemo
import React from 'react'; export default class Header extends React.Component{ render(){ return <h1>{this.props.message}</h1> } }
ajax/libs/antd/4.18.4/antd.min.js
cdnjs/cdnjs
/*! * * antd v4.18.4 * * Copyright 2015-present, Alipay, Inc. * All rights reserved. * */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("moment")):"function"==typeof define&&define.amd?define(["react","react-dom","moment"]...
ajax/libs/react-redux/0.2.2/react-redux.min.js
him2him2/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReduxReact=t(require("react")):e.ReduxReact=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exp...
node_modules/react/lib/ReactNativeReconcileTransaction.js
ivanhristov92/bookingCalendar
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/routes/Synthesizer/components/Keybed.js
prestonbernstein/react-redux-synthesizer
import React from 'react' const Key = (props) => ( <button className='key' onClick={() => props.playSound(props.frequency)} > {props.note} </button> ) Key.propTypes = { note: React.PropTypes.string, frequency: React.PropTypes.number, playSound: React.PropTypes.func } const Keybed = (props) =>...
src/server.js
bmatthews/haze-lea
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present 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 path from 'path'; import express from 'express';...
test/integration/image-component/default/pages/layout-fill.js
zeit/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <p>Layout Fill</p> <div style={{ position: 'relative', width: '600px', height: '350px' }}> <Image id="fill1" src="/wide.png" layout="fill" /> </div> <p>Layout Fill</p> <div style={{ ...
webpack/components/Content/Details/ContentDetailInfo.js
pmoravec/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Table } from 'react-bootstrap'; // using Map to preserve order const createRows = (details, mapping) => { const rows = []; /* eslint-disable no-restricted-syntax, react/jsx-closing-tag-location */ for (const key of mapping.keys()) { row...
scripts/client/components/Resume.js
antca/antca.github.io
import Utils from '../Utils'; import React from 'react'; import Reflux from 'reflux'; var Resume = React.createClass({ updateResume() { Utils.getAjax(`public/resume/resume-${this.props.lang}.html`, (response) => { this.refs.container.getDOMNode().innerHTML = response; }); }, shouldCompo...
src/components/Nav/Nav.spec.js
KashGit/react-component-lib
import React from 'react'; import { Nav, NavIcon, NavText } from './index'; import { mount } from 'enzyme'; describe.only('Nav', () => { it('should take children of NavIcon and NavText and renders it but not NavIcon', () => { const wrapper = mount( <Nav id='nav'> <NavIcon><spa...
app/javascript/mastodon/features/followers/index.js
narabo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchAccount, fetchFollowers, expandFollowers, } from '../../actions/account...
app/components/List/index.js
mamaracas/MEventsRegistration
import React from 'react'; import Ul from './Ul'; import Wrapper from './Wrapper'; function List(props) { const ComponentToRender = props.component; let content = (<div></div>); // If we have items, render them if (props.items) { content = props.items.map((item, index) => ( <ComponentToRender key={...
src/app/components/App.js
eveld/isomorphic-js
'use strict'; import React from 'react'; /** * The root component of the application. */ class App extends React.Component { constructor(props) { super(props); this.state = {}; } /** * @inheritdoc * @return {boolean} Whether or not the component should update */ shouldComponentUpdate() { ...
frontend/app/components/Pagination/PaginationContainer.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' import PaginationPresentation from './PaginationPresentation' import PaginationData from './PaginationData' /** * @summary PaginationContainer * @version 1.0.1 * @component * * @param {object} props * @param {node} props.children Content to be paged ...
internals/templates/app.js
SenyOrg/kekecmed-frontend
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved, import/extensions */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name]....
ajax/libs/styled-components/1.3.0/styled-components.js
seogi1004/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : (factory((global.styled = global.styled || {}),global.React)); }(this, (function (exports,React) { 'us...
examples/flux-todomvc/js/components/TodoApp.react.js
YakovAvramenko/flux
/** * Copyright (c) 2014-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. */ /** * This c...
wp-content/themes/customizr/inc/assets/js/parts/main.js
tlan16/Customizr
//@global TCParams var czrapp = czrapp || {}; (function($, czrapp) { //short name for the slice method from the built-in Array js prototype //used to handle the event methods var slice = Array.prototype.slice; $.extend( czrapp, { instances : {},//will store all subclasses instances methods ...
src/index.js
ZSarver/cooldowns
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
ajax/libs/recompose/0.21.1/Recompose.min.js
dlueth/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.Recompose=e(require("react")):t.Recompose=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].expor...
Kudu.Web/Scripts/jquery-1.7.min.js
YOTOV-LIMITED/kudu
/*! jQuery v1.7 jquery.com | jquery.org/license */ (function(a,b){function cA(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cx(a){if(!cm[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cn||(cn=c.createElement("iframe"),cn.frameBorder=...
main.js
rauchs-jewelry/rauchs-jewelry-website
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present 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 'babel-polyfill'; im...
docs/src/app/components/pages/components/Card/ExampleControlled.js
rhaedes/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import Toggle from 'material-ui/Toggle'; export default class CardExampleControlled extends React.Component { constructor(props) { super(pro...
ajax/libs/rxjs/2.2.21/rx.lite.compat.js
mival/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...
ajax/libs/react-dnd/16.0.1/core/DndProvider.min.js
cdnjs/cdnjs
function _objectWithoutProperties(e,t){if(null==e)return{};var r,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),a=0;a<n.length;a++)r=n[a],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}function _objectWithoutProperti...
packages/example-phone/src/scripts/components/connection-status.js
glhewett/spark-js-sdk
import React from 'react'; export default function ConnectionStatus({connected, connecting}) { let message; if (connected) { message = `connected`; } else if (connecting) { message = `connecting`; } else { message = `not connected`; } return <span className="connection-status">{message}</s...