path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/main/viz/FeatureTrack.js
piotr-gawron/pileup.js
/** * Visualization of features. * @flow */ 'use strict'; import type {DataSource} from '../sources/DataSource'; import Feature from '../data/feature'; import GenericFeature from '../data/genericFeature'; import {GenericFeatureCache} from './GenericFeatureCache'; import type {VisualGroup} from './AbstractCache'; im...
stories/components/atoms/footer/index.js
one-love/storybook
import React from 'react'; import cssModules from 'react-css-modules'; import styles from './footer.scss'; function Footer() { return ( <div styleName="footer"> Made by: <a href="http://tilda.center/" target="_blank">Tilda Center</a> </div> ); } export default cssModules(Footer, styles);
docs/src/Routes.js
johanneshilden/react-bootstrap
import React from 'react'; import Root from './Root'; import HomePage from './HomePage'; import IntroductionPage from './IntroductionPage'; import GettingStartedPage from './GettingStartedPage'; import ComponentsPage from './ComponentsPage'; import SupportPage from './SupportPage'; import NotFoundPage from './NotFound...
src/components/Pager.js
yiweimatou/yishenghoutai
import React from 'react' import { IconButton} from 'material-ui' import NavigationChevronLeft from 'material-ui/svg-icons/navigation/chevron-left' import NavigationChevronRight from 'material-ui/svg-icons/navigation/chevron-right' const styles = { root:{ paddingBottom:20, paddingTop:20 }, footerContent:...
actor-apps/app-web/src/app/components/common/EmojiDropdown.react.js
yangchenghu/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import { map } from 'lodash'; import React, { Component } from 'react'; import classnames from 'classnames'; import { Path } from 'constants/ActorAppConstants'; import EmojiUtils from 'utils/EmojiUtils'; export default class EmojiDropdown extends Component { ...
src/stories/TestComponent.js
TempusWebDev/ComponentLibrary
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; // Components import TestComponent from '../components/TestComponent'; storiesOf('TestComponent', module) .add('Just a test', () => ( <TestComponent/> ))
example_components/RadioInput.react.js
blueberryapps/react-bluekit
import Component from '../src/app/PureRenderComponent.react'; import Radium from 'radium'; import React from 'react'; import RPT from 'prop-types'; import ToolTip from '../src/app/atoms/ToolTip.react'; @Radium export default class RadioInput extends Component { static propTypes = { horizontal: RPT.bool, nam...
ajax/libs/material-ui/4.9.7/es/List/ListContext.js
cdnjs/cdnjs
import * as React from 'react'; /** * @ignore - internal component. */ const ListContext = React.createContext({}); if (process.env.NODE_ENV !== 'production') { ListContext.displayName = 'ListContext'; } export default ListContext;
app/components/List/index.js
mikejong0815/Temp
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={...
app/pages/changeInfoPage.js
shiyunjie/scs
/** * Created by shiyunjie on 16/12/30. */ /** * Created by shiyunjie on 16/12/6. */ import React, { Component } from 'react'; import { StyleSheet, Text, View, ScrollView, TouchableOpacity, TextInput, ActivityIndicator, ActivityIndicatorIOS, ProgressBarAndroid, Platform, ...
src/index.js
sadooghi/React_Blog
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import promise from 'redux-promise'; import reducers from './reducers'; import PostsIndex from './...
packages/spust-koa/src/Middleware.js
michalkvasnicak/spust
// @flow import compose from 'koa-compose'; import React from 'react'; import FinishMiddlewareError from './FinishMiddlewareError'; import SkipToNextMiddlewareError from './SkipToNextMiddlewareError'; import { type Context as ServerContext, type MiddlewareFn, serverContextType } from './Server'; export type Props =...
frontend/app/models/post.js
Flaredown/FlaredownEmber-2
import attr from 'ember-data/attr'; import Typeable from 'flaredown/mixins/typeable'; import Reactable from 'flaredown/models/reactable'; import Topicable from 'flaredown/mixins/topicable'; import BodyFormatable from 'flaredown/mixins/body-formatable'; import { hasMany } from 'ember-data/relationships'; export defaul...
node_modules/finalhandler/node_modules/debug/src/browser.js
pcclarke/civ-techs
/** * This is the web browser implementation of `debug()`. * * Expose `debug()` as the module. */ exports = module.exports = require('./debug'); exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = 'undefined' != typeof chrom...
src/routes/customConfig/CustomConfig.js
macdja38/pvpsite
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import deepmerge from 'deepmerge'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './CustomConfig.css'; import ServerMenu from '../../components/ServerMenu'; import CustomServerMenu from '../../components/menuI...
src/client.js
pitLancer/pbdorb
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import ReactDOM from 'react-dom...
test/PagerItemSpec.js
dozoisch/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import Pager from '../src/Pager'; describe('PagerItem', () => { it('Should output a "list item" as root element, and an "anchor" as a child item', () => { let instance = ReactTestUtils.renderIntoD...
src/BoardSquare.js
bthj/chain-reaction-board
import React, { Component, PropTypes } from 'react'; import Square from './Square'; import { /*canMoveKnight, moveKnight,*/ canMoveUnit, placeUnit } from './Game'; import { ItemTypes } from './Constants'; import UnitTypes from './UnitTypes'; import { DropTarget} from 'react-dnd'; function getPosTo( props ) { return ...
src/shared/components/imageCard/imageCard.js
NestorSegura/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import LinkButton from 'shared/components/linkButton/linkButton'; import styles from './imageCard.css'; const ImageCard = ({ buttonText, cardText, image, link, title }) => ( <div className={styles.imageCard}> <img className={styles.cardImag...
examples/official-storybook/preview.js
storybooks/react-storybook
import React from 'react'; import { addDecorator, addParameters } from '@storybook/react'; import { Global, ThemeProvider, themes, createReset, convert } from '@storybook/theming'; import { withCssResources } from '@storybook/addon-cssresources'; import { withA11y } from '@storybook/addon-a11y'; import { withNotes } fr...
docs/src/examples/elements/Input/States/InputExampleDisabled.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputDisabled = () => <Input disabled placeholder='Search...' /> export default InputDisabled
actor-apps/app-web/src/app/components/Deactivated.react.js
ONode/actor-platform
import React from 'react'; class Deactivated extends React.Component { render() { return ( <div className="deactivated row center-xs middle-xs"> <div className="deactivated__window"> <h2>Tab deactivated</h2> <p> Oops, you have opened another tab with Actor, so we had...
src/views/components/util/FancyPanelToggleTitle.js
Domiii/project-empire
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Panel } from 'react-bootstrap'; import Flexbox from 'flexbox-react'; import FAIcon from 'src/views/components/util/FAIcon'; function OpenIndicatorDefault() { return ( <FAIcon name="angle-down" /> ); } function ClosedIndi...
src/svg-icons/action/https.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHttps = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-...
packages/canvas-rce/src/rce/plugins/instructure_record/UploadMedia/MediaRecorder.js
djbender/canvas-lms
/* * Copyright (C) 2019 - 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...
src/Table.js
Firfi/meteor-react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Table = React.createClass({ propTypes: { striped: React.PropTypes.bool, bordered: React.PropTypes.bool, condensed: React.PropTypes.bool, hover: React.PropTypes.bool, responsive: React.PropTypes.bool }, render() { let c...
src/js/components/ui/ToolBar.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import connectToStores from '../../utils/connectToStores'; import shouldPureComponentUpdate from '../../../../node_modules/react-pure-render/function'; import LoginStore from '../../stores/LoginStore'; import RouterActionCreators from '../../...
app/src/common/hoc/withIcons.js
BlackBoxVision/react-native-redux-todo
import React from 'react'; import PropTypes from 'prop-types'; export default function withIcons() { return ReactComponent => { class IconComponent extends React.Component { static contextTypes = { icons: PropTypes.object.isRequired }; constructor(props,...
src/components/MenuItemIconAbove.js
shockry/editest
import React, { Component } from 'react'; import '../css/MenuItemIconAbove.css'; class MenuItemIconAbove extends Component { render() { return ( <div className={`menu-item ${this.props.className}`} onClick={this.props.onClick} data-disabled={this.props.disabled} data-label={this.props.label}> ...
node_modules/react-icons/fa/angle-right.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaAngleRight = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m26.3 21.4q0 0.3-0.2 0.5l-10.4 10.4q-0.3 0.3-0.6 0.3t-0.5-0.3l-1.1-1.1q-0.2-0.2-0.2-0.5t0.2-0.5l8.8-8.8-8.8-8.7q-0.2-0.3-0.2-0.6t0.2-0.5l1.1-1.1q0.3-0.2 0.5-0.2t0....
Samples/Branding.CustomCSS/Branding.CustomCSSWeb/Scripts/jquery-1.9.1.js
chrisobriensp/PnP
/* NUGET: BEGIN LICENSE TEXT jQuery v1.9.1 Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc...
src/Glyphicon.js
chilts/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Glyphicon = React.createClass({ propTypes: { /** * bootstrap className * @private */ bsClass: React.PropTypes.string, /** * An icon name. See e.g. http://getbootstrap.com/components/#glyphicons */ glyph: Re...
src/components/Nav/index.js
fathomlondon/fathomlondon.github.io
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Link } from 'gatsby'; import { LogoIcon, MenuIcon, CloseIcon } from '../../icons'; import { NavLinks } from '../NavLinks'; export class Nav extends React.Component { constructor() { super(); this.state = {...
src/containers/Asians/TabControls/RegistrationsSlots/Overview/index.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import Table, { TableHead, TableCell, TableRow, TableBody, TableFooter } from 'material-ui/Table' import Paper from 'material-ui/Paper' import returnTableRow from './returnTableRow' import returnTotal from './returnTotal' import * as utils fro...
app/components/DashboardEdit.js
cqlanus/bons
import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router' import { updateProfile } from '../reducers/auth' class DashboardEdit extends React.Component { constructor() { super() this.state = { name: '', email: '', password: '', confirmPassword:...
vendor/assets/javascripts/backbone.js
mokhan/cakeside
// Backbone.js 1.1.2 // (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(root, factory) { // Set up Backbone appropriately for ...
src/svg-icons/action/perm-contact-calendar.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermContactCalendar = (props) => ( <SvgIcon {...props}> <path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-...
src/routes.js
iwollmann/WebPoshTestUI
import React from 'react'; import {Route, IndexRoute } from 'react-router'; import App from './components/App'; export default ( <Route path="/" component={App}>> </Route> );
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/routes/app/routes/ui/routes/typography/components/Typography.js
ahthamrin/kbri-admin2
import React from 'react'; import QueueAnim from 'rc-queue-anim'; const Typography = () => ( <section> <article className="article"> <h2 className="article-title">Typeface</h2> <div className="box box-transparent"> <div className="box-body no-padding"> <div className="row"> ...
src/components/common/Badge.js
mark4carter/react-hrtbus
import React from 'react' import Radium from 'radium' import Colors from './Colors' let container = { height: '3rem', minWidth: '4rem', display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center' } class Badge extends React.Component { render() { return ( ...
node_modules/selenium-webdriver/lib/test/data/js/jquery-1.4.4.min.js
Makrau/provaAEB
/*! * 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. ...
ajax/libs/react/0.8.0/react.js
marxo/cdnjs
/** * React v0.8.0 */ !function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.React=e():"undefined"!=typeof global?global.React=e():"undefined"!=typeof self&&(self.React=e())}(function(){var define,module,exports;return (function e(t,n...
ajax/libs/material-ui/5.0.0-alpha.3/esm/BottomNavigation/BottomNavigation.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import * as React from 'react'; import { isFragment } from 'react-is'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/with...
packages/material-ui-icons/src/VerticalSplitSharp.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="M3 15h8v-2H3v2zm0 4h8v-2H3v2zm0-8h8V9H3v2zm0-6v2h8V5H3zm10 0h8v14h-8V5z" /></g></React.Fragment> , 'VerticalSplitSharp');
components/Blinds.js
pattern/react-poker
import React from 'react'; class Blind extends React.Component { render() { let classString = ''; if ( this.props.active ) { classString += 'active'; } return <li key={ this.props.key } className={ classString }>{ this.props.blind } / { this.props.blind * 2 }</li> ...
ajax/libs/F2/1.3.0/f2.no-bootstrap.js
JimBobSquarePants/cdnjs
;(function(exports) { if (exports.F2 && !exports.F2_TESTING_MODE) { return; } /*! JSON.org requires the following notice to accompany json2: Copyright (c) 2002 JSON.org http://json.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d...
ajax/libs/primereact/5.0.1/components/paginator/CurrentPageReport.js
cdnjs/cdnjs
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CurrentPageReport = void 0; var _react = _interopRequireWildcard(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { def...
js/actions/details.js
bavuongco10/react-native-school-board
import axios from 'axios'; import Config from 'react-native-config'; import path from 'path'; import { FETCH_MOVIE_DETAILS_SUCCESS, ITEM_IS_LOADING, } from '../constants/actionType'; export const fetchMovieDetailsSuccess = res => ({ type: FETCH_MOVIE_DETAILS_SUCCESS, details: res.data }); export const fetchM...
layout/app/dashboard-detail/energy-country-explorer/country-indicators/indicator-card/indicator-tooltip/component.js
resource-watch/resource-watch
import React from 'react'; import PropTypes from 'prop-types'; function IndicatorTooltip(props) { const { ranking, count } = props; return ( <div className="c-indicator-tooltip"> <div className="text">Rank</div> <div className="value">{ranking}</div> <div className="text"> of ...
src/svg-icons/maps/local-phone.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPhone = (props) => ( <SvgIcon {...props}> <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-...
src/views/pages/LearnerKBPage.js
Domiii/project-empire
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { dataBind } from 'dbdi/react'; import { Alert, Button, Jumbotron, Well, Panel } from 'react-bootstrap'; import { LoadOverlay } from 'src/views/components/overlays'; import LearnerQuestionsOverview from 'src/views/components/kb/Le...
ajax/libs/yui/3.9.1/datatable-core/datatable-core-debug.js
mayur404/cdnjs
YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @since 3.5.0 **/ var INVALID = Y.Attribute.INVALID_VALUE, Lang = Y.Lang, isFunction = Lang.isFunction, isObject = Lang.isO...
ui/js/dfv/src/components/iframe-modal.js
pods-framework/pods
/** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; /** * WordPress dependencies */ import { Modal } from '@wordpress/components'; /** * Other Pods dependencies */ import './iframe-modal.scss'; const IframeModal = ( { title, iframeSrc, onClose, } ) => { return ( ...
src/donations/index.js
dyegolara/sismo-frontend
import React from 'react' const SOURCE = [ { link: 'http://www.topos.mx/', label: 'Topos – Brigada de Rescate Topos Tlaltelolco, A.C. (Earthquake help team)' }, { link: 'https://www.amazon.com.mx/b?ie=UTF8&node=17290014011', label: 'Cruz Roja Mexico (Red Cross Mexico) - Amazon Wishlist ' }, {...
src/js/components/settingTable.js
tohashi/css-typesetter
import React from 'react'; export default class SettingTable extends React.Component { render() { const text = this.props.text; return ( <table> <tbody> <tr> <td>class</td> <td><input type="text" name="key" value={text.key} onChange={this.props.handleChange} />...
node_modules/react-bootstrap/es/ButtonToolbar.js
xuan6/admin_dashboard_local_dev
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
ajax/libs/yui/3.10.2/event-custom-base/event-custom-base-coverage.js
whardier/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/event-custom-base/event-custom-base.js']) { __coverage__['build/event-custom-base/event-custom-base.js'] = {"path":"build/event-custom-base/event-custom-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,...
src/components/CreateNewModal/CreateGroupTypeForm.js
dialogs/dialog-web-components
/* * Copyright 2019 dialog LLC <info@dlg.im> * @flow */ import React from 'react'; import { Text } from '@dlghq/react-l10n'; import Radio from '../Radio/Radio'; import RadioGroup from '../Radio/RadioGroup'; import styles from './CreateNewModal.css'; type Props = { id: string, maxGroupSize: number, maxChannel...
classic/src/scenes/wbfa/generated/FAREdit.free.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faEdit } from '@fortawesome/free-regular-svg-icons/faEdit' export default class FAREdit extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faEdit} />) } }
packages/material-ui-icons/src/LaptopChromebook.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm6-3H4V5h16v10z" /></React.Fragment> , 'LaptopChromebook');
src/spares/paragraph/Paragraph.js
korchemkin/spares-uikit
/** * * Spares-uikit * * @author Dmitri Korchemkin * @source https://github.com/korchemkin/spares-uikit */ import React, { Component } from 'react'; import './Paragraph.css'; class Paragraph extends Component { render() { return ( <p className="spares-paragraph">{this.props.children}</p> ); } } e...
sites/all/libraries/superfish/sfsmallscreen.js
paramjeetkumawat/demo
/* * sf-Smallscreen v1.0b - Provides small-screen compatibility for the jQuery Superfish plugin. * * Developer's note: * Built as a part of the Superfish project for Drupal (http://drupal.org/project/superfish) * Found any bug? have any cool ideas? contact me right away! http://drupal.org/user/619294/contact * *...
imports/plugins/included/payments-paypal/lib/api/payflow.js
khayong/reaction
/* eslint camelcase: 0 */ import { Meteor } from "meteor/meteor"; import { Packages } from "/lib/collections"; import Reaction from "/lib/api"; // using global instance of Reaction // Paypal is a shared client/server stub // to provide normalized PayPal tooling export const PayFlow = { payflowAccountOptions: functi...
src/components/Filter/Filter.stories.js
joshwcomeau/react-collection-helpers
/* eslint-disable react/prop-types */ import React from 'react'; import { storiesOf } from '@kadira/storybook'; import Filter from '../Filter'; import Sort from '../Sort'; import FilterController from '../../helpers/story/FilterController'; storiesOf('Filter', module) .add('Filtering a few items', () => ( <Fil...
src/parser/warrior/arms/modules/talents/DefensiveStance.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/talents/warrior'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatNumber, formatThousands } from 'common/format'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import StatisticBox, { STAT...
node_modules/_rc-switch@1.5.3@rc-switch/es/Switch.js
ligangwolai/blog
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/help...
client/containers/projects/index.js
Elektro1776/Project_3
import React, { Component } from 'react'; import ProjLayout from './Layout'; import ButtonBar from '../../components/ButtonBar/Button_Bar'; import styles from './project_style.css'; import CollaboratorsBar from '../../components/Collaborators'; import { connect } from 'react-redux'; class Projects extends Component { ...
misc/jquery.js
teeple/messaging_gateway
/*! * 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....
extensions/dicom-html/src/DicomHtmlViewport.js
OHIF/Viewers
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import dcmjs from 'dcmjs'; import TypedArrayProp from './TypedArrayProp'; import './DicomHtmlViewport.css'; function getRelationshipString(data) { switch (data.RelationshipType) { case 'HAS CONCEPT MOD': return 'Concept modifier...
packages/react-reconciler/src/forks/ReactFiberErrorDialog.native.js
ericyang321/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. * * @flow */ import type {Fiber} from '../ReactFiber.old'; import type {CapturedValue} from '../ReactCapturedValue'; import {Class...
ajax/libs/rxjs/2.3.11/rx.compat.js
neveldo/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...
docs/src/Anchor.js
kwnccc/react-bootstrap
import React from 'react'; const Anchor = React.createClass({ propTypes: { id: React.PropTypes.string }, render() { return ( <a id={this.props.id} href={'#' + this.props.id} className='anchor'> <span className='anchor-icon'>#</span> {this.props.children} </a> ); } }); e...
react_docs/src/components/content.js
GobHash/GobHash-Backend
import React from 'react'; import PropTypes from 'prop-types'; import Section from './section'; import GithubSlugger from 'github-slugger'; import { transformURL } from '../custom'; let slugger = new GithubSlugger(); let slug = title => { slugger.reset(); return slugger.slug(title); }; var roundedToggleOptionType = Pr...
src/routes/error/ErrorPage.js
malinowsky/dataroot_03
/** * 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 React from 'react'; import PropTypes from 'prop-...
app/containers/Commande/containers/CommandesLongTerme.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { createStructuredSelector } from 'reselect'; import round from 'lodash/round'; import { Card, CardActions, CardHeader } from 'material-ui/Card'; import Shoppi...
imports/ui/components/surveyBuilder/FormInspector.js
ctagroup/home-app
import React from 'react'; import AutoForm from 'uniforms-bootstrap3/AutoForm'; import AutoField from 'uniforms-bootstrap3/AutoField'; import VariableField from '/imports/ui/components/surveyBuilder/formFields/VariableField'; import { handleFormTransform } from './helpers'; export default class FormInspector extends ...
gatsby-browser.js
LuisLoureiro/placard-wrapper
import React from 'react' import ComponentRenderer from './src/components/component-renderer-with-pagination' import Layout from './src/components/layout' export const replaceComponentRenderer = ({ props, loader }) => { return <ComponentRenderer {...props} loader={loader} /> } export const wrapPageElement = ({ ele...
ajax/libs/x-editable/1.4.5/bootstrap-editable/js/bootstrap-editable.js
enricodeleo/cdnjs
/*! X-editable - v1.4.5 * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery * http://github.com/vitalets/x-editable * Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */ /** Form with single input element, two buttons and two states: normal/loading. Applied as jQuery method to DIV tag (not to for...
src/routes/Dashboard/components/recentSales.js
pmg1989/dva-admin
import React from 'react' import PropTypes from 'prop-types' import { Table, Tag } from 'antd' import { color } from 'utils' import styles from './recentSales.less' const status = { 1: { color: color.green, text: 'SALE', }, 2: { color: color.yellow, text: 'REJECT', }, 3: { color: color.re...
examples/simple/index.js
chentsulin/react-redux-sweetalert
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; render( <App />, document.getElementById('root') );
src/ModalHeader.js
cgvarela/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalHeader extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.closeButton && <button cla...
frontend/src/Components/Form/LanguageSelectInputConnector.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import EnhancedSelectInput from './EnhancedSelectInput'; function createMapStateToProps() { return createSelector( (state, { values }) => values, ( l...
ajax/libs/6to5/1.13.7/browser.js
pvnr0082t/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...
packages/cli/tests/subjects/multiple-prerendering-with-provider/routes/custom.js
developit/preact-cli
import { h, Component } from 'preact'; import './custom.css'; import { PreRenderDataSource } from '@preact/prerender-data-provider'; class Custom extends Component { render(props) { return ( <PreRenderDataSource {...props} render={({ value }) => { return <div>{(value || {}).myProp}</div>; }} /...
src/rsg-components/Message/MessageRenderer.js
bluetidepro/react-styleguidist
import React from 'react'; import PropTypes from 'prop-types'; import Markdown from 'rsg-components/Markdown'; import Styled from 'rsg-components/Styled'; const styles = ({ space }) => ({ root: { marginBottom: space[4], }, }); export function MessageRenderer({ classes, children }) { return ( <div className={cl...
ajax/libs/shariff/1.4.2/shariff.min.js
sashberd/cdnjs
/* * shariff - v1.4.1 - 28.11.2014 * https://github.com/heiseonline/shariff * Copyright (c) 2014 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli * Licensed under the MIT <http://www.opensource.org/licenses/mit-license.php> license */ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){...
frontend/js/components/ecosystems/SidebarMenu.js
Code4HR/okcandidate-platform
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import MenuListItem from './../organisms/MenuListItem'; class SidebarMenu extends Component { constructor(props) { super(props); } render() { return ( <div> { this.props.menu.map((menuIt...
example/containers/App.js
idolize/redux-react-router-transitions
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import App from '../components/App'; import sessionActions from '../actions/Session'; import routingActions from '../actions/Routing'; const mapStateToProps = ({ session }) => ({ loggedIn: session.loggedIn ...
packages/material-ui-icons/src/RemoveCircleOutlineRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M7 12c0 .55.45 1 1 1h8c.55 0 1-.45 1-1s-.45-1-1-1H8c-.55 0-1 .45-1 1zm5-10C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4....
ajax/libs/jquery-mobile/1.3.1/jquery.mobile.js
reustle/cdnjs
/* * jQuery Mobile 1.3.1 * Git HEAD hash: 74b4bec049fd93e4fe40205e6157de16eb64eb46 <> Date: Wed Apr 10 2013 21:57:23 UTC * http://jquerymobile.com * * Copyright 2010, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license. * http://jquery.org/license * */ (function ( root, doc, factory )...
src/svg-icons/device/signal-cellular-null.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularNull = (props) => ( <SvgIcon {...props}> <path d="M20 6.83V20H6.83L20 6.83M22 2L2 22h20V2z"/> </SvgIcon> ); DeviceSignalCellularNull = pure(DeviceSignalCellularNull); DeviceSignalCellularN...
demo/components/feedback/FeedbackDemo.js
f0zze/rosemary-ui
import DemoWithSnippet from '../../../demo/layout/DemoWithSnippet'; import {FeedbackManager} from '../../../src'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {feedbackAction, removeFeedback} from '../../actions/feedback-action'; import React from 'react'; class FeedbackDemo e...
docs/src/app/components/pages/components/Toggle/ExampleSimple.js
ruifortes/material-ui
import React from 'react'; import Toggle from 'material-ui/Toggle'; const styles = { block: { maxWidth: 250, }, toggle: { marginBottom: 16, }, }; const ToggleExampleSimple = () => ( <div style={styles.block}> <Toggle label="Simple" style={styles.toggle} /> <Toggle label...
src/components/Sidebar/Menu/Menu.js
apalhu/website
// @flow strict import React from 'react'; import { Link } from 'gatsby'; import styles from './Menu.module.scss'; type Props = { menu: { label: string, path: string }[] }; const Menu = ({ menu }: Props) => ( <nav className={styles['menu']}> <ul className={styles['menu__list']}> {menu.map((ite...
stories/index.js
ngduc/react-setup
import React from 'react' import { storiesOf, action, linkTo } from '@kadira/storybook' import Button from './Button' import Welcome from './Welcome' import BlogPost from '../src/components/BlogPost/BlogPost' storiesOf('Welcome', module) .add('to Storybook', () => ( <Welcome showApp={linkTo('Button')}/> )) st...
src/Parser/Shaman/Restoration/Modules/Spells/ChainHeal.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; im...
src/containers/App.js
afikris6/afikris6.github.io
import 'react-mdl/extra/material'; import 'react-mdl/extra/material.css'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { HashRouter as Router, Route, Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { updateGeo } from '../reducers/main'; impo...
js/jquery.js
MatttB/hashcode-sheffield
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
src/app/utils/WithRouter.js
alexlbr/apollo-client-exercise
import React from 'react' import PropTypes from 'prop-types' const WithRouter = (MyComponent) => { const withRouter = (props, context) => <MyComponent {...props} router={context.router} /> withRouter.contextTypes = { router: PropTypes.object.isRequired } return withRouter } export default WithRouter