path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
app/components/Form/FieldFile.js
vollmerr/app-hub
import React from 'react'; import PropTypes from 'prop-types'; import Dropzone from 'react-dropzone'; import styled from 'styled-components'; import { DefaultButton, IconButton } from 'office-ui-fabric-react/lib/Button'; import { Label } from 'office-ui-fabric-react/lib/Label'; // import { downloadFile } from 'utils/r...
packages/strapi-admin/files/public/app/components/PluginHeaderActions/index.js
skelpook/strapi
/** * * PluginHeaderActions * */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import styles from './styles.scss'; class PluginHeaderActions extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { const actions = this.props.actions && this.pro...
src/screen/WaveGenerator/components/InstrumentCluster.js
wavicles/fossasia-pslab-apps
import React from 'react'; import SineWavePanel from './SineWavePanel'; import SquareWavePanel from './SquareWavePanel'; import { SettingsContainer } from './InstrumentCluster.styles'; const InstrumentCluster = () => { return ( <SettingsContainer> <div> <SineWavePanel /> </div> <div> ...
stories/Card.stories.js
reactstrap/reactstrap
import React from 'react'; export default { title: 'Components/Card', parameters: { docs: { description: { component: ` [Bootstrap Card](https://getbootstrap.com/docs/5.1/components/card/) Cards provide a flexible and extensible content container with multiple variants and options. `, ...
src/app/src/assets/specializations/WaitIndicator.js
istreight/eggbeatr
/** * FILENAME: WaitIndicator.js * AUTHOR: Isaac Streight * START DATE: July 7th, 2018 * * This file contains the WaitIndicator class, the class for displaying * wait indicators throughout the application. */ import React from 'react'; import PropTypes from 'prop-types'; class WaitIndicator extends ...
src/containers/App/component.js
Hylozoic/hylo-redux
import React from 'react' import cx from 'classnames' import { intercom } from '../../config' import { debounce, isEmpty } from 'lodash' import { get } from 'lodash/fp' import NetworkMonitor from '../../components/NetworkMonitor' import Notifier from '../../components/Notifier' import LiveStatusPoller from '../../compo...
react-apps/GeneReactNative/src/native/containers/App/App.js
thevikas/genealogy
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { Provider } from 'react-redux'; import configureStore from './store/configureStore.dev'; const store = configureStore(); export default class App extends React.Component { render() { return ( <Provider store={store...
src/svg-icons/file/cloud-queue.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudQueue = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.9...
ajax/libs/core-js/2.0.2/library.js
seogi1004/cdnjs
/** * core-js 2.0.2 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2016 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require f...
clase3/app/node_modules/debug/src/browser.js
hanucito/utn-fullstack
/** * 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...
examples/huge-apps/routes/Course/components/Nav.js
maksad/react-router
import React from 'react'; import { Link } from 'react-router'; import AnnouncementsRoute from '../routes/Announcements'; import AssignmentsRoute from '../routes/Assignments'; import GradesRoute from '../routes/Grades'; const styles = {}; styles.nav = { borderBottom: '1px solid #aaa' }; styles.link = { display: ...
docs/app/Examples/elements/Input/Variations/InputExampleSize.js
ben174/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleSize = () => ( <div> <Input size='mini' icon='search' placeholder='Search...' /> <br /> <br /> <Input size='small' icon='search' placeholder='Search...' /> <br /> <br /> <Input size='large' icon='search'...
ajax/libs/angular.js/1.0.3/angular-scenario.js
ghidinelli/cdnjs
/*! * jQuery JavaScript Library v1.7.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
packages/material-ui-icons/src/DevicesOtherSharp.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 6h18V4H1v16h6v-2H3V6zm10 6H9v1.78c-.61.55-1 1.33-1 2.22 0 .89.39 1.67 1 2.22V20h4v-1.78c.61-.55 1-1.34 1-2.22s-.39-1.67-1-2.22V12zm-2 5.5c...
node_modules/react-bootstrap/es/Thumbnail.js
cmccandless/SolRFrontEnd
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 ...
src/parser/mage/frost/modules/talents/LonelyWinter.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import Analyzer from 'parser/core/Analyzer'; import { SELECTED_PLAYER } from 'parser/core/EventFilter'; import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage'; impor...
app/javascript/mastodon/features/compose/components/poll_form.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import IconButton from 'mastodon/components/icon_butt...
packages/giu/src/components/heightMeasurer.js
guigrpa/giu
// @flow import React from 'react'; import throttle from 'lodash/throttle'; // ================================================ // Declarations // ================================================ type Props = { children: Function, // function-as-a-child }; type State = { height: ?number, }; // ==================...
src/components/basic/H.js
casesandberg/react-mark
'use strict'; import React from 'react'; export class H extends React.Component { render() { return React.createElement('h' + this.props.level, {}, this.props.children); } } export default H;
node_modules/react-icons/md/linear-scale.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdLinearScale = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m32.5 15.9c2.3 0 4.1 1.8 4.1 4.1s-1.8 4.1-4.1 4.1c-1.7 0-3.2-1-3.8-2.5h-4.9c-0.6 1.5-2.1 2.5-3.8 2.5s-3.2-1-3.8-2.5h-4.9c-0.6 1.5-2.1 2.5-3.8 2.5-2.3 0-4.1-1.8-4....
client/src/containers/MoveModal/MoveModal.js
silverstripe/silverstripe-asset-admin
import React from 'react'; import { connect } from 'react-redux'; import { compose } from 'redux'; import i18n from 'i18n'; import CONSTANTS from 'constants/index'; import PropTypes from 'prop-types'; import { deactivateModal, setFileBadge, } from 'state/gallery/GalleryActions'; import { display as displayToast } f...
news/components/Nav/components/NavLogo.js
MiloATH/FreeCodeCamp
import React from 'react'; import { NavbarBrand } from 'react-bootstrap'; import Media from 'react-media'; const fCClogo = 'https://s3.amazonaws.com/freecodecamp/freecodecamp_logo.svg'; const fCCglyph = 'https://s3.amazonaws.com/freecodecamp/FFCFire.png'; const propTypes = {}; function NavLogo() { return ( <Na...
information/blendle-frontend-react-source/app/modules/signup/LogoutContainer.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import Auth from 'controllers/auth'; export default class LogoutContainer extends React.Component { static propTypes = { params: PropTypes.object, }; componentDidMount() { Auth.logout().then(() => { const { email } = this.props.params;...
lib/yui/3.2.0/build/event/event-debug.js
vuchannguyen/web
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 3.2.0 build: 2676 */ /* * DOM event listener abstraction layer * @module event * @submodule event-base */ (function() { // Unlike most of the library, this code has to ...
src/svg-icons/notification/airline-seat-legroom-normal.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomNormal = (props) => ( <SvgIcon {...props}> <path d="M5 12V3H3v9c0 2.76 2.24 5 5 5h6v-2H8c-1.66 0-3-1.34-3-3zm15.5 6H19v-7c0-1.1-.9-2-2-2h-5V3H6v8c0 1.65 1.35 3 3 3h7v7h4.5c.83 0 1....
components/partials/Header.js
freyconner24/Quizzly
"use strict"; import React from 'react' import {Link} from 'react-router' import {browserHistory} from 'react-router' export class Header extends React.Component { constructor(props) { super(props); this.state = { term: props.term, terms: props.terms, course: props.course, courses: p...
ajax/libs/6to5/3.0.10/browser-polyfill.js
iwdmb/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/forerunnerdb/1.3.530/fdb-core+views.min.js
wil93/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
src/components/screen/ScreenBar.js
hostables/musicquiz
import React from 'react' import './ScreenBar.css' import '../../variables.css' const ScreenBar = ({ children, backgroundColor, className }) => ( <div className={className ? `ScreenBar ${className}` : 'ScreenBar'} style={{backgroundColor: backgroundColor}} > {children} </div> ) ScreenBar.defaultProp...
src/list/ListItem.js
fengshanjian/react-native-komect-uikit
import PropTypes from 'prop-types'; import React from 'react'; import { View, StyleSheet, TouchableHighlight, TouchableOpacity, Platform, Switch, TextInput, } from 'react-native'; import Avatar from '../avatar/Avatar'; import Badge from '../badge/badge'; import Icon from '../icons/Icon'; import Text from ...
ajax/libs/angular.js/1.1.4/angular-scenario.js
dmsanchez86/cdnjs
/*! * jQuery JavaScript Library v1.8.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time) */ (function(...
docs/src/app/components/pages/components/RefreshIndicator/ExampleReady.js
pomerantsev/material-ui
import React from 'react'; import RefreshIndicator from 'material-ui/RefreshIndicator'; const style = { container: { position: 'relative', }, refresh: { display: 'inline-block', position: 'relative', }, }; const RefreshIndicatorExampleSimple = () => ( <div style={style.container}> <RefreshIn...
src/elements/reveal.js
jessy1092/react-semantify
import React from 'react'; import filter from '../filter'; import Div from '../commons/div'; const stateArray = ['disabled']; const defaultClassName = 'ui reveal'; const componentName = 'Reveal'; const Reveal = new filter(Div) .stateFilter(stateArray) .classGenerator(defaultClassName) .getComposeC...
ajax/libs/yui/3.14.1/event-custom-base/event-custom-base.js
ruo91/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...
client/src/components/LabelField/LabelField.js
silverstripe/silverstripe-admin
import React from 'react'; import PropTypes from 'prop-types'; const LabelField = ({ id, className, title, extraClass, data }) => { const htmlFor = data && data.target; const classes = `${className} ${extraClass}`; return ( <label id={id} className={classes} htmlFor={htmlFor}>{title}</label> ); }; LabelF...
pkg/interface/publish/src/js/components/lib/notebook.js
jfranklin9000/urbit
import React, { Component } from 'react'; import { Link, Switch, Route } from 'react-router-dom'; import { SidebarSwitcher } from './icons/icon-sidebar-switch'; import { NotebookPosts } from './notebook-posts'; import { Subscribers } from './subscribers'; import { Settings } from './settings'; import Sidebar from './si...
ajax/libs/forerunnerdb/1.3.521/fdb-core+views.min.js
honestree/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...
source/web/js/jquery_min.js
d2phap/quanlybanhang
/*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc...
packages/material-ui-icons/src/EventBusy.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1...
flight_schedule_system/bootstrap-3.0.0/assets/js/jquery.js
babykiss4ever/FlightScheduleSystem
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
src/components/Header/index.js
calpa/blog
import React from 'react'; import PropTypes from 'prop-types'; import './index.scss'; import JueJin from '../JueJin'; import { parseImgur } from '../../api/images'; const Header = ({ img, title, subTitle, authorImage, authorName, jueJinPostLink, jueJinLikeIconLink, }) => ( <div className="col-12 head...
node_modules/babel-types/lib/index.js
MorganPeterson/report-maker
"use strict"; exports.__esModule = true; exports.createTypeAnnotationBasedOnTypeof = exports.removeTypeDuplicates = exports.createUnionTypeAnnotation = exports.valueToNode = exports.toBlock = exports.toExpression = exports.toStatement = exports.toBindingIdentifierName = exports.toIdentifier = exports.toKeyAlias = expo...
app/javascript/mastodon/features/public_timeline/index.js
unarist/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
ajax/libs/clappr/0.0.10/clappr.js
r3x/cdnjs
require=(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]...
examples/js/basic/basic-table.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/svg-icons/editor/format-align-left.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignLeft = (props) => ( <SvgIcon {...props}> <path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignLeft = pure(EditorFormatAlignL...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch02/02_06/finish/src/index.js
yevheniyc/Autodidact
import React from 'react' import { render } from 'react-dom' import { hello, goodbye } from './lib' render( <div> {hello} {goodbye} </div>, document.getElementById('react-container') )
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/devportal/source/src/defaultTheme.js
bhathiya/carbon-apimgt
const DefaultConfigurations = { direction: 'ltr', palette: { primary: { // light: will be calculated from palette.primary.main, main: '#006e9c', // dark: will be calculated from palette.primary.main, // contrastText: will be calculated to contrast with pal...
O3656/O3656-1 Developing Advanced Workflow Scenarios in Office 365/CompletedSolutions/StateMachineInitForm/Scripts/jquery-1.9.1.js
johnseto/TrainingContent
/* 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/frontend/initApp.js
bsr203/ripster
import { createHistory } from 'history'; import React from 'react'; import { render } from 'react-dom'; import Relay from 'react-relay'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import { syncReduxAndRouter } from 'redux-simple-router'; import { RelayRoutingContext } from 'react-rou...
packages/material-ui-icons/src/ImageSearchTwoTone.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="M17.7 11.53c-.7.31-1.45.47-2.21.47C12.46 12 10 9.53 10 6.5c0-.17.01-.34.03-.5H4v14h14v-8.17l-.3-.3zM5.5 18l2.75-3.53 1.96 2.36 2.75-3.54L16.5...
10-react-refs/src/logPropsHOC.js
iproduct/course-node-express-react
import React from 'react'; function logPropsHOC(WrappedComponent) { class LogProps extends React.Component { componentDidUpdate(prevProps) { console.log('old props:', prevProps); console.log('new props:', this.props); } render() { const {forwardedRef, ...rest} = this.props; ...
ui/src/components/Callout.js
LastCallMedia/Mannequin
import React from 'react'; import PropTypes from 'prop-types'; import './Callout.css'; import cx from 'classnames'; const Callout = ({ type, title, content }) => ( <div className={cx('callout', type)}> {title && <h3>{title}</h3>} {content} </div> ); Callout.propTypes = { type: PropTypes.string, title:...
stories/components/form/formSelect/index.js
sethbergman/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import FormSelect from 'shared/components/form/formSelect/formSelect'; storiesOf('shared/components/form/formSelect', module) .add( 'Default', () => ( <FormSelect prompt="Se...
app/components/ListItem/index.js
rajeshbhatt/shopping-cart-redux
import React from 'react'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: React.PropTypes.any, }; export default ListItem;
src/routes.js
bendozy/reminder-app-frontend
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import AppContainer from './containers/App'; import ManageContactForm from './containers/ManageContactForm'; import ContactList from './containers/ContactList'; import NotFoundPage from './components/NotFoun...
ajax/libs/react-faux-dom/4.0.2/ReactFauxDOM.min.js
sashberd/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactFauxDOM=e(require("react")):t.ReactFauxDOM=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r]...
server/sonar-web/src/main/js/apps/system/section.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program 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 3 of the License, o...
src/views/components/task-item/task-item.js
connorbanderson/CoinREXX
import React, { Component } from 'react'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import Button from '../button'; import Icon from '../icon'; import './task-item.css'; export class TaskItem extends Component { constructor() { super(...arguments); this.state = {editing: fal...
source/components/_STATELESS.react.js
argaskins/ThinkReact-Jenkins
import React from 'react'; const <NAME> = (parameters) => ( <div>{parameters}</div> ); export default <NAME>;
app/javascript/mastodon/components/common_counter.js
cobodo/mastodon
// @ts-check import React from 'react'; import { FormattedMessage } from 'react-intl'; /** * Returns custom renderer for one of the common counter types * * @param {"statuses" | "following" | "followers"} counterType * Type of the counter * @param {boolean} isBold Whether display number must be displayed in bold ...
assets/javascripts/sso/pages/AdminUsersPage.js
wchaoyi/sso
import StyleSheet from 'react-style'; import React from 'react'; import {History} from 'react-router'; import AdminDeleteUserCard from '../components/AdminDeleteUserCard'; import AdminListUserCard from '../components/AdminListUserCard'; import AdminListInactiveUsersCard from '../components/AdminListInactiveUsersCard';...
frontend/components/lists/AddListLink.spec.js
Londeren/lists
import chai, {expect} from 'chai'; import spies from 'chai-spies'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import AddListLink from './AddListLink'; import AddItemButton from '../AddItemButton'; chai.use(spies); function setup(templateList = []) { let props = { templateList, ...
test/SafeAnchorSpec.js
rapilabs/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import SafeAnchor from '../src/SafeAnchor'; describe('SafeAnchor', function() { it('renders an anchor tag', function() { const instance = ReactTestUtils.renderIntoDocument(<SafeAnchor />); const node = React.findDOMNode(instanc...
src/parser/deathknight/blood/modules/talents/Tombstone.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import SpellLink from 'common/SpellLink'; import { formatNumber, formatPercentage } from 'common/format'; import DamageTracker from 'parser/shared/modules/AbilityTracker'; import TalentStatisticBox from 'in...
bin/abcjs_plugin_2.1.user.js
gabrielsanchez/abcjs
// ==UserScript== // @name abcjs // @namespace http://code.google.com/p/abcjs // @description This searches any page you load for ABC-formatted music and inserts the standard notation for it. // ==/UserScript== // Because the js files are concatenated, these variables will be visible to the ones in abcj...
admin/client/App/components/Navigation/Mobile/SectionItem.js
linhanyang/keystone
/** * A mobile section */ import React from 'react'; import MobileListItem from './ListItem'; import { Link } from 'react-router'; const MobileSectionItem = React.createClass({ displayName: 'MobileSectionItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, curren...
src/svg-icons/device/network-cell.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNetworkCell = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/> </SvgIcon> ); DeviceNetworkCell = pure(DeviceNetworkCell); DeviceNetworkCell.displayNam...
src/components/FuelSavingsResults.spec.js
calvellido/reactjs-training
import React from 'react'; import {shallow} from 'enzyme'; import FuelSavingsResults from './FuelSavingsResults'; describe('<FuelSavingsResults />', () => { it('should display savings when savings exist', () => { const savings = { monthly: '10', annual: '120', threeYear: '360' }; const...
shared/components/SubComponents/Question/Radio.js
KCPSoftware/KCPS-React-Starterkit
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { saveQuestion } from '../../../actions/questionActions'; import Validation from '../../../utils/validation/Validation'; import InputValidation from '../../../utils/validation/InputValidation'; import { TooltipTrigger } from 'pui-re...
src/docs/patterns/VerticalNarrativeDoc.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Anchor from 'grommet/components/Anchor'; import Box from 'grommet/components/Box'; import Header from 'grommet/components/Header'; import Heading from 'grommet/components/Heading'; import Label from 'g...
packages/lore-react-forms-bootstrap/src/actions/default.js
lore/lore-forms
import React from 'react'; export default function(form, props) { const { label, ...other } = props; return ( <button type="button" className="btn btn-default" {...other} > {label} </button> ); }
modules/plugins/shared/__tests__/Figure-test.js
devrieda/arc-reactor
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Immutable from 'immutable'; import Figure from '../Figure'; const findByClass = TestUtils.findRenderedDOMComponentWithClass; const render = TestUtils.renderIntoDocument; describe('Figure', () => { it('should render', () => { con...
src/component.js
tictail/tide
import React from 'react' import PropTypes from 'prop-types' import shallowEqual from 'shallowequal' import mapValues from 'lodash.mapvalues' import Tide from './base' const NOT_KEY_PATH_PROPS = [ 'children', 'tide', 'tideOptions', 'key', 'ref', ] function omit(object, func) { return Object.keys(object).r...
node_modules/bower/node_modules/inquirer/node_modules/rx/src/core/linq/observable/ambproto.js
EMCWorld/2015-REST
/** * Propagates the observable sequence or Promise that reacts first. * @param {Observable} rightSource Second observable sequence or Promise. * @returns {Observable} {Observable} An observable sequence that surfaces either of the given sequences, whichever reacted first. */ observableProto.amb = funct...
src/__tests__/ZenPage.js
YutHelloWorld/vortex-react
import React from 'react'; import ReactDOM from 'react-dom'; import Zen from '../components/Zen'; describe('(Component) Zen', () => { it('fetching', () => { const props = { fetchZen() {}, clearZen() {}, zen: { fetching: true, text: [] } }; const div = document.crea...
docs/src/app/components/pages/components/Snackbar/ExampleAction.js
ArcanisCz/material-ui
import React from 'react'; import Snackbar from 'material-ui/Snackbar'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; export default class SnackbarExampleSimple extends React.Component { constructor(props) { super(props); this.state = { autoHideDur...
src/components/SideMenu/SideMenu.js
deltaidea/planning-app
import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; import './SideMenu.css'; import photoUrl from './profile-photo.png'; import iconSettings from './icon-settings.png'; import iconUpload from './icon-upload.png'; import iconSchedule from './icon-schedule.png'; import iconClient from '...
src/components/App.js
ThibWeb/unidentified
import React from 'react'; import { Link } from 'react-router'; export default React.createClass({ displayName: 'App', propTypes: { children: React.PropTypes.any, }, render() { return ( <div> <Link to="/">Home</Link> <Link to="/test">Test</L...
src/components/SearchPage.js
guilhermehn/all-mangas-reader
import React from 'react' import LoadingIcon from './LoadingIcon' import SearchStore from '../stores/SearchStore' import SearchWarning from './search/SearchWarning' import SearchField from './search/SearchField' import SearchResultsTable from './search/SearchResultsTable' import ReadingListAPI from '../apis/ReadingList...
packages/material-ui-icons/src/FormatColorText.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 fillOpacity=".36" d="M0 20h24v4H0z" /><path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z" /></React.Fragment>...
ajax/libs/js-data/2.2.3/js-data-debug.js
iros/cdnjs
/*! * js-data * @version 2.2.3 - Homepage <http://www.js-data.io/> * @author Jason Dobry <jason.dobry@gmail.com> * @copyright (c) 2014-2015 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Robust framework-agnostic data store. */ (function webpackUniversalModul...
app/components/Header/Navbar.js
VonIobro/ab-web
/* eslint-disable react/jsx-filename-extension */ import React from 'react'; import styled from 'styled-components'; import { transitionSpeed, transitionFn, navbarHeight, screenXsMax, black, } from '../../variables'; const StyledNavbarMenuList = styled.ul` -webkit-margin-before: 1em; -webkit-margin-afte...
files/yasgui/1.1.11/yasgui.bundled.min.js
yaplas/jsdelivr
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r...
node_modules/react-icons/io/podium.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoPodium = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m0 35v-15h10v15h-10z m12.5 0v-22.5h10v22.5h-10z m12.5 0v-10h10v10h-10z"/></g> </Icon> ) export default IoPodium
node_modules/material-ui/svg-icons/av/queue.js
Rabbit884/reactapp
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
test/specs/addons/TextArea-test.js
jamiehill/stardust
import React from 'react' import TextArea from 'src/addons/TextArea/TextArea' import * as common from '../commonTests' describe('TextArea', () => { common.isConformant(TextArea) it('accepts a default value', () => { const wrapper = mount(<TextArea defaultValue='Hello World' />) wrapper .should.hav...
webpack/scenes/ModuleStreams/Details/Profiles/TableSchema.js
adamruzicka/katello
import React from 'react'; import { translate as __ } from 'foremanReact/common/I18n'; import { headerFormatter, cellFormatter, } from '../../../../move_to_foreman/components/common/table'; import ProfileRpmsCellFormatter from './ProfileRpmsCellFormatter'; const TableSchema = [ { property: 'name', header...
app/components/QuoteDiv.js
mAustinKos/Random-Quote-Generator
import React from 'react'; import axios from 'axios'; import Quote from './Quote.js'; export default class QuoteDiv extends React.Component { constructor() { super(); this.state = { quote: "" }; } randomQuote() { axios.get("https://api.whatdoestrumpthink.com/api/v1/quotes/random...
ajax/libs/forerunnerdb/1.3.924/fdb-legacy.min.js
sashberd/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...
server/game/cards/06.2-GtR/GuardingTheRealm.js
DukeTax/throneteki
const DrawCard = require('../../drawcard.js'); class GuardingTheRealm extends DrawCard { setupCardAbilities(ability) { this.action({ title: 'Take control of character in discard pile', phase: 'marshal', target: { cardCondition: card => card.controller !==...
ajax/libs/react-slick/0.6.0/react-slick.min.js
sashberd/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.Slider=t(require("react")):e.Slider=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var...
src/svg-icons/image/filter-2.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter2 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 ...
docs/src/examples/modules/Accordion/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import Advanced from './Advanced' import Types from './Types' import Variations from './Variations' import Usage from './Usage' const AccordionExamples = () => ( <div> <Types /> <Variations /> <Usage /> <Advanced /> </div> ) export default AccordionExamples
ajax/libs/yui/3.13.0/datatable-core/datatable-core-coverage.js
agraebe/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/datatable-core/datatable-core.js']) { __coverage__['build/datatable-core/datatable-core.js'] = {"path":"build/datatable-core/datatable-core.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13"...
admin/client/App/shared/AlertMessages.js
cermati/keystone
import React from 'react'; import { Alert } from '../elemental'; import { upcase } from '../../utils/string'; /** * This renders alerts for API success and error responses. * Error format: { * error: 'validation errors' // The unique error type identifier * detail: { ... } // Optional details specific t...
react/js/form/ValidateInput.js
quiaro/js-playground
import React from 'react'; class ValidateInput extends React.Component { constructor(props) { super(props); this.state = { validate: false } this.startValidating = this.startValidating.bind(this); this.validate = this.validate.bind(this); } startValidating(e) { if (!this.state.valid...
public/js/cat_source/es6/components/header/manage/FilterProjects.js
riccio82/MateCat
import React from 'react' import IconDown from '../../icons/IconDown' import FilterProjectsStatus from './FilterProjectsStatus' import SearchInput from './SearchInput' import ManageActions from '../../../actions/ManageActions' import ManageConstants from '../../../constants/ManageConstants' class FilterProjects extend...
files/rxjs/2.2.27/rx.lite.extras.js
Swatinem/jsdelivr
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'unde...
packages/material-ui-icons/src/SettingsPower.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SettingsPower = props => <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-5.12...