path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/rv-hookup.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationRvHookup = (props) => ( <SvgIcon {...props}> <path d="M20 17v-6c0-1.1-.9-2-2-2H7V7l-3 3 3 3v-2h4v3H4v3c0 1.1.9 2 2 2h2c0 1.66 1.34 3 3 3s3-1.34 3-3h8v-2h-2zm-9 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm7-6h-4v-3h4v3zM17 2v2...
ajax/libs/mediaelement/2.0.3/jquery.js
LaurensRietveld/cdnjs
/*! * jQuery JavaScript Library v1.4.4 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
react-flux-mui/js/material-ui/src/svg-icons/hardware/headset.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareHeadset = (props) => ( <SvgIcon {...props}> <path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9z"/> </SvgIcon> ...
src/svg-icons/content/delete-sweep.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentDeleteSweep = (props) => ( <SvgIcon {...props}> <path d="M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zM14 5h-3l-1-1H6L5 5H2v2h12z"/> </SvgIcon> ); ContentDeleteSwee...
src/renderer/components/MapFilter/ObservationDialog/DateTimeField.js
digidem/ecuador-map-editor
// @flow import React from 'react' import { DateTimePicker } from '@material-ui/pickers' type Props = { value: Date | void, onChange: (string | void) => any } const DateTimeField = ({ value, onChange, ...otherProps }: Props) => { return ( <DateTimePicker fullWidth variant='inline' inputVar...
Examples/UIExplorer/TextInputExample.js
michaelchucoder/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
app/components/overview/index.js
wfa207/portfolio-page
'use strict'; import React, { Component } from 'react'; import SocialBtn from '../social_button'; import { buttons } from '../../data'; export default class Overview extends Component { constructor(props) { super(props); } render() { return ( <header> <div className='container'> ...
src/components/FormFields/DropDown.spec.js
ro-savage/nwa-react-redux-boilerplate
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import DropDown from './DropDown'; import { Input } from 'react-bootstrap'; function shallowRender(component) { const renderer = TestUtils.createRenderer(); renderer.render(component); return renderer.getRenderOutput(); } function sha...
src/svg-icons/image/transform.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTransform = (props) => ( <SvgIcon {...props}> <path d="M22 18v-2H8V4h2L7 1 4 4h2v2H2v2h4v8c0 1.1.9 2 2 2h8v2h-2l3 3 3-3h-2v-2h4zM10 8h6v6h2V8c0-1.1-.9-2-2-2h-6v2z"/> </SvgIcon> ); ImageTransform = pure(I...
src/svg-icons/toggle/star-border.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStarBorder = (props) => ( <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1...
src/interface/statistics/Statistic.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import Tooltip from 'common/Tooltip'; import InfoIcon from 'interface/icons/Info'; import DrilldownIcon from 'interface/icons/Link'; import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY'; import './S...
app/javascript/mastodon/features/ui/components/zoomable_image.js
pixiv/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const MIN_SCALE = 1; const MAX_SCALE = 4; const getMidpoint = (p1, p2) => ({ x: (p1.clientX + p2.clientX) / 2, y: (p1.clientY + p2.clientY) / 2, }); const getDistance = (p1, p2) => Math.sqrt(Math.pow(p1.clientX - p2.clientX, 2) + Math.pow(p1.client...
node_modules/material-ui/lib/transition-groups/scale-in.js
dominikgar/flask-search-engine
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) {...
ajax/libs/rxjs/2.2.21/rx.lite.compat.js
jmusicc/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...
src/optionalContext.js
MrCheater/text-resize-and-word-wrap-provider
import React from 'react'; import { contextTypes } from './contextTypes'; import { TextResizeAndWordWrapProvider } from './TextResizeAndWordWrapProvider'; export const optionalContext = (Component) => { const ComponentWithOptionalContext = (props, context) => { if( context.textResizeAndWordWrap...
ajax/libs/onsen/1.3.6/js/onsenui_all.min.js
dakshshah96/cdnjs
/*! onsenui - v1.3.6 - 2015-07-23 */ !function(){function getAttributes(element){return Node_get_attributes.call(element)}function setAttribute(element,attribute,value){try{Element_setAttribute.call(element,attribute,value)}catch(e){}}function removeAttribute(element,attribute){Element_removeAttribute.call(element,attr...
external-plugins/tiny_mce/plugins/legacyoutput/editor_plugin_src.js
randikha01/RBI-System
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing * * This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements...
client/src/components/dashboard/messaging/compose-message.js
WebTalentTop/newsfere-mern
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; import { fetchRecipients, startConversation } from '../../../actions/messaging'; const form = reduxForm({ form: 'composeMessage', validate, }); function validate(formProps) { const err...
docs/pages/api-docs/tooltip.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'api/tooltip'; const requireRaw = require.context('!raw-loader!./', false, /\/tooltip\.md$/); export default function Page({ docs...
src/svg-icons/communication/invert-colors-off.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationInvertColorsOff = (props) => ( <SvgIcon {...props}> <path d="M20.65 20.87l-2.35-2.35-6.3-6.29-3.56-3.57-1.42-1.41L4.27 4.5 3 5.77l2.78 2.78c-2.55 3.14-2.36 7.76.56 10.69C7.9 20.8 9.95 21.58 12 21.5...
src/components/Cashflows.js
micahh2/means
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { InputPercent } from './InputPercent'; import { CashflowSettings } from './CashflowSettings'; import * as cashActions from '../actions/cashflows'; import { getMoreCashflow } from '../selectors/cashflows'; expo...
website/core/Prism.js
barakcoh/react-native
/** * Prism: Lightweight, robust, elegant syntax highlighting * MIT license http://www.opensource.org/licenses/mit-license.php/ * @author Lea Verou http://lea.verou.me * * @providesModule Prism */ var React = require('React'); var _ = { util: { type: function (o) { return Object.prototype.toString.c...
showcase/misc/synced-charts.js
Apercu/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
packages/reactor-kitchensink/src/examples/TitleBar/TitleBar.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { SearchField, TitleBar, Container, Button, Menu, MenuItem } from '@extjs/ext-react'; export default class TitleBarExample extends Component { render() { return ( <Container> <TitleBar title="App Title" docked="top" ...
src/svg-icons/image/rotate-left.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRotateLeft = (props) => ( <SvgIcon {...props}> <path d="M7.11 8.53L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47zM6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1....
ajax/libs/hyperform/0.9.21/hyperform.js
jonobr1/cdnjs
/*! hyperform.js.org */ var hyperform = (function () { 'use strict'; /* the following code is borrowed from the WebComponents project, licensed * under the BSD license. Source: * <https://github.com/webcomponents/webcomponent...
src/js/components/search/results/Results.js
pushvote/charms
//This is needed for all react files? import React from "react"; import Tab_Results from "./tabs/TabResults"; import Tab_Personal from "./tabs/TabPersonal"; import Tab_Master from "./tabs/TabMaster"; import Tab_History from "./tabs/TabHistory"; import Tab_Marked from "./tabs/TabMarked"; import ViewSettings from "./View...
src/containers/App/App.js
NightFury2/react-test-req
import React from 'react'; import Helmet from 'react-helmet'; import config from '../../config'; import MenuContent from '../../components/MenuContent/MenuContent'; import RightMenuComponent from '../../components/RightMenuComponent/RightMenuComponent'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvide...
src/jsx/medicinesystem.js
adrienthiery/cormorant
/* Thing > Intangible > Enumeration > MedicineSystem - Systems of medical practice.. Generated automatically by the reactGenerator. */ var MedicineSystem= React.createClass({ getDefaultProps: function(){ return { } }, render: function(){ var props = this.props.props; var code; ...
actor-apps/app-web/src/app/components/DialogSection.react.js
ganquan0910/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'components/dialog/ComposeSection.react'; i...
src/library/pagination/components/PaginationControls.js
zdizzle6717/universal-react-movie-app
'use strict'; import React from 'react'; import classNames from 'classnames'; export default class PaginationControls extends React.Component { constructor() { super(); this.state = { pages: [], currentPage: 1 } } componentWillReceiveProps(nextProps) { let startPage, endPage, phantomArraySlice; l...
src/docs/examples/Label/ExampleRequiredLabel.js
zeegeek/ps-react-reusable-comp
import React from 'react'; import Label from 'rc-react/Label'; /** Required Label */ export default function ExampleOptionalLabel() { return <Label htmlFor='test' label='test' required='true' /> }
application/components/profile/UserTechnologies.js
buildreactnative/assemblies-tutorial
import Icon from 'react-native-vector-icons/Ionicons'; import NavigationBar from 'react-native-navbar'; import Dropdown, { Select, Option, OptionList } from 'react-native-selectme'; import React, { Component } from 'react'; import { Text, View, ScrollView, TextInput, TouchableOpacity, Dimensions } from 'react-native'; ...
ajax/libs/material-ui/5.0.0-alpha.17/useAutocomplete/useAutocomplete.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; /* eslint-disable no-constant-condition */ import * as React from 'react'; import { setRef, useEventCallback, useControlled, unstable_useId as useId } from '../utils'; // https://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javas...
lib/client/components/TransferRate.react.js
imsnif/wtorrent
"use strict"; import React from 'react'; export default class TransferRate extends React.Component { render () { let uploadSpeed = Math.round(this.props.uploadSpeed / 1000); let downloadSpeed = Math.round(this.props.downloadSpeed / 1000); return ( <span> Rate (U/D): {uploadSpeed} / {down...
components/TextSection/TextSection.js
cobbweb/golittle.red
import React from 'react'; import './TextSection.scss'; function TextSection({ children }) { return ( <div className="Section TextSection"> {children} </div> ); } export default TextSection;
dist/1.8.2/jquery-ajax-effects-offset.min.js
michael829/jquery-builder
/*! jQuery v1.8.2 -ajax,-ajax/jsonp,-ajax/script,-ajax/xhr,-effects,-offset jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(t...
misc/jquery.js
imwota/youlight
/*! * 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....
MobileApp/node_modules/react-native/local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js
VowelWeb/CoinTradePros.com
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Image, ListView, Platform, StyleSheet, View, } from 'react-native'; import ListItem from '../../components/ListItem'; import Backend from '../../lib/Backend'; export default class ChatListScreen extends Component { stat...
Samples/Branding.DisplayTemplates/Branding.DisplayTemplatesWeb/Scripts/jquery-1.9.1.min.js
gautekramvik/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...
assets/js/application/test/imaginery/components/ImagineryTest.js
ominidi/ominidi.org
import assert from 'assert'; import sinon from 'sinon'; import React from 'react'; import { shallow } from 'enzyme'; import Imaginery from '../../../src/imaginery/component/Imaginery'; describe('#Imaginery', () => { let sandbox, getRatio, values = { width: 800, height: 6...
src/containers/demo/web.js
duheng/Mozi
import React, { Component, } from 'react'; import { WebView, StyleSheet, ActivityIndicator, } from 'react-native'; const styles = StyleSheet.create({ webview: { flex: 1, }, }); export default class Web extends Component { static navigationOptions = { headerTitle: 'Web', }; // 这是返回刷新的demo,如果需要就取消注释调试...
app/javascript/mastodon/components/permalink.js
Craftodon/Craftodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Permalink extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { className: PropTypes.string, href: PropTypes.string.isRequired, to: PropTypes.string.isRequired, ...
src/components/admin/ItemList.js
katima-g33k/blu-react-desktop
/* eslint class-methods-use-this: 0 */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Col, Panel, Row } from 'react-bootstrap'; import i18n from '../../lib/i18n'; import { Item } from '../../lib/models'; import Spinner from '../general/Spinner'; import statusHelper from '../../l...
src/components/MovieList.spec.js
rak2112/movie-base
import React from 'react'; import {shallow} from 'enzyme'; import {expect} from 'chai'; import MovieList from '../components/MovieList'; describe('<MovieList />', () => { it(`should find the genres related to movie id: `, () => { const state = { genre: [{id: 4, name: 'action'}, {id: 5, name: 'thriller'}, ...
examples/tree-view/containers/Node.js
tatsuhino/reactPractice
import React from 'react' import { Component } from 'react' import { connect } from 'react-redux' import * as actions from '../actions' export class Node extends Component { constructor(props) { super(props) this.handleIncrementClick = this.handleIncrementClick.bind(this) this.handleRemoveClick = this.ha...
src/components/common/svg-icons/communication/contact-mail.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationContactMail = (props) => ( <SvgIcon {...props}> <path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3...
src/routes/dashboardPages/review/review.js
bhavik3jain/LibertyMutual320Project
import React, { Component } from 'react'; import Panel from 'react-bootstrap/lib/Panel'; import Alert from 'react-bootstrap/lib/Alert'; import Button from 'react-bootstrap/lib/Button'; import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger'; import Tooltip from 'react-bootstrap/lib/Tooltip'; import Popover from...
lib/yuilib/2in3/2.9.0/build/yui2-yuiloader/yui2-yuiloader-debug.js
dwaynetin/garage
YUI.add('yui2-yahoo', function(Y) { Y.use('yui2-yuiloader'); }, '3.3.0' ,{}); YUI.add('yui2-get', function(Y) { Y.use('yui2-yuiloader'); }, '3.3.0' ,{"requires": ["yui2-yahoo"]}); YUI.add('yui2-yuiloader', function(Y) { /* Copyright (c) 2011, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: htt...
webpack/scenes/ModuleStreams/Details/ModuleStreamDetailArtifacts.js
cfouant/katello
import React from 'react'; import PropTypes from 'prop-types'; const ModuleStreamDetailArtifacts = ({ artifacts }) => ( <div> <ul> {artifacts.map(({ id, name }) => <li key={id}>{name}</li>)} </ul> </div> ); ModuleStreamDetailArtifacts.propTypes = { artifacts: PropTypes.arrayOf(PropTypes.shape({ ...
examples/01 Dustbin/Single Target/index.js
nagaozen/react-dnd
import React from 'react'; import Container from './Container'; export default class DustbinSingleTarget { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Single%20Target'>Browse the Source</a></b> </p> <p> ...
app/settlement/order/orderList.js
oursite/my-react
import React from 'react' import { render } from 'react-dom' import { Router, Route, IndexRoute, Link, IndexLink, browserHistory } from 'react-router' const ACTIVE = { color: 'red' } const App = ({ children }) => ( <div> <h1>APP!</h1> <ul> <li><Link to="/" activeStyle={ACTIVE}>/</Link><...
docs/src/app/components/pages/components/DatePicker/Page.js
pancho111203/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import datePickerReadmeText from './README'; import DatePickerExampleSimple from...
src/svg-icons/hardware/tablet-android.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTabletAndroid = (props) => ( <SvgIcon {...props}> <path d="M18 0H6C4.34 0 3 1.34 3 3v18c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V3c0-1.66-1.34-3-3-3zm-4 22h-4v-1h4v1zm5.25-3H4.75V3h14.5v16z"/> </SvgIcon...
server/sonar-web/src/main/js/apps/projects-admin/AppContainer.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact 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...
www/docs/en/operations-guide/2015.06-rev1/content/search/nwSearchFnt.js
midonet/midonet-docs
/*---------------------------------------------------------------------------- * JavaScript for webhelp search *---------------------------------------------------------------------------- This file is part of the webhelpsearch plugin for DocBook WebHelp Copyright (c) 2007-2008 NexWave Solutions All Rights Rese...
src/CarouselCaption.js
mmarcant/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import elementType from 'react-prop-types/lib/elementType'; import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils'; const propTypes = { componentClass: elementType, }; const defaultProps = { componentClass: 'div', }; class Caro...
src/parser/paladin/retribution/modules/features/Checklist/Module.js
FaideWW/WoWAnalyzer
import React from 'react'; import BaseChecklist from 'parser/shared/modules/features/Checklist2/Module'; import CastEfficiency from 'parser/shared/modules/CastEfficiency'; import Combatants from 'parser/shared/modules/Combatants'; import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist2/Preparati...
ajax/libs/react-bootstrap-typeahead/3.0.2/react-bootstrap-typeahead.js
extend1994/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["react", "react-dom"], factory); else if(typeof exports === 'obje...
test/helpers/shallowRenderHelper.js
bb595700239/react-Dome
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src/components/Fragments/DonationMatch/info.js
StudentRND/www
import React from 'react' import axios from 'axios' import WithAppContext from '../../Context' import './index.sass' export default WithAppContext(class DonationMatchInfo extends React.Component { constructor(props) { super(props); this.state = { matching: null }; } ren...
fields/types/name/NameField.js
Pylipala/keystone
import Field from '../Field'; import React from 'react'; import { FormField, FormInput, FormRow } from 'elemental'; module.exports = Field.create({ displayName: 'NameField', focusTargetRef: 'first', valueChanged: function(which, event) { this.props.value[which] = event.target.value; this.props.onChange({ ...
app/assets/lib/jquery.min.js
henryszex42s/teamform-seed
/*! 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...
sites/all/modules/jquery_update/replace/jquery/1.8/jquery.min.js
healthcommcore/cwhwb
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===...
ajax/libs/6to5/1.14.0/browser.js
Dervisevic/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return...
ajax/libs/aui/5.6.10/aui/js/aui-all.js
RNELord/cdnjs
!function(){"use strict";function a(c,d){p||(p=new o(function(b){b.forEach(function(b){a.init(b.addedNodes),f(b.removedNodes)})}),p.observe(document,{childList:!0,subtree:!0})),d||(d={}),"function"==typeof d&&(d={insert:d}),l(d,a.defaults);var e=m(c,d);d.ready&&n.sheet.insertRule(c+":not(."+d.classname+"),["+c+"]:not(....
packages/material-ui-icons/lib/PhoneAndroidOutlined.js
mbrookes/material-ui
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
pages/events.js
Slava/zbt-website
import React from 'react' import { Link } from 'react-router' import DocumentTitle from 'react-document-title' import { config } from 'config' import { Row, Splash, Split, } from './_sharedComponents' import { prefixLink } from '../utils/urls.js' import CoverImg from '../static/events-cover.jpg'; import DinnerIm...
src/stage.js
yipjiajie/TopBloc
import React from 'react'; import Dancer from './dancer'; /* The main stage that is shown for user editing */ var Stage = React.createClass({ updateDancerPosition: function(i, pos) { this.props.updateDancerPosition(i, pos); }, setSelectedDancer: function(i) { this.props.setSelectedDancer(i); }, re...
src/views/PlayersView.js
nullobject/hexgrid
import React from 'react' import classnames from 'classnames' import styles from '../../assets/stylesheets/styles.scss' export default ({ game }) => <ul className={styles.players}>{renderPlayers(game)}</ul> function renderPlayers (game) { return game.players.map((player, index) => { const armies = game.armie...
src/applications/third-party-app-directory/createThirdPartyApps.js
department-of-veterans-affairs/vets-website
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import reducer from './reducers'; export { reducer as thirdPartyAppsReducer }; export default (store, widgetType) => { // Derive the element to render our widget. const root = document.querySelector(`[data-widget...
apps/fwo_reports/src/FwoReportMetaField.js
oventi/employer-watch
'use strict' import React from 'react' import ReactDOM from 'react-dom' import { InputGroup, InputGroupAddon, Input } from 'reactstrap' class FwoReportMetaField extends React.Component { render() { return ( <InputGroup> <InputGroupAddon>{this.props.label}</InputGroupAddon> ...
packages/material-ui-icons/src/NotificationsNone.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.0...
ajax/libs/react/0.5.1/react-with-addons.js
jaggedsoft/cdnjs
/** * React (with addons) v0.5.1 */ !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 ...
lib/components/modification/__tests__/frequency-entry.js
conveyal/scenario-editor
// @flow import renderer from 'react-test-renderer' import React from 'react' import { mockFeed, mockPattern, mockTimetable } from '../../../utils/mock-data' import FrequencyEntry from '../frequency-entry' describe('Component > FrequencyEntry', () => { it('renders correctly', () => { const replaceTimetab...
src/svg-icons/maps/local-printshop.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPrintshop = (props) => ( <SvgIcon {...props}> <path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"...
node_modules/react-router/lib/applyRouterMiddleware.js
tousif101/YouTube-Clone-React
'use strict'; exports.__esModule = true; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _react = requi...
boilerplates/basic/src/index.js
flicker85/react-redux-saga-cli
// import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import configureStore from './store'; import createRoutes from './routes'...
src/components/Cards/StackedCard-test.js
Climb-social/react-climb-social
import test from 'tape'; import React from 'react'; import { shallow } from 'enzyme'; import StackedCard from './StackedCard'; test('StackedCard classes', assert => { const props = { message: 'I am the message', link: 'http://climb.social', timestamp: 1455811260, author: { picture: 'http://url...
example/react-native-gifted-chat/src/InputToolbar.js
Karkin/react-native-gifted-chat
import React from 'react'; import { StyleSheet, View, } from 'react-native'; import Composer from './Composer'; import Send from './Send'; import Actions from './Actions'; import Record from './Record'; export default class InputToolbar extends React.Component { constructor(props) { super(props); this.o...
client/src/index.js
WesJones127/rh-dash
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; import { Provider } from 'react-redux'; import configureStore from './redux/store/configureStore'; import defaultState from './redux/store/defaultState'; const reduxStore = configureStore(defaultState); ReactDO...
app/view/ios/DoKitchenPager/index.js
1598692232/rn-xcf
/** * Created by bll on 2017/7/17. */ import React from 'react'; import { Text, Button, View, TouchableOpacity, ScrollView, Alert } from 'react-native'; import TopKinds from './TopKinds'; import KitchenList from './KitchenList'; // const KitchenList = require('./KitchenList') import styles from '../../../static...
jchemhub/controller/plugin.js
chemhack/jchemhub
goog.provide('jchemhub.controller.Plugin'); goog.require('goog.events.EventTarget'); goog.require('goog.functions'); goog.require('goog.debug.Logger'); goog.require('goog.object'); goog.require('goog.reflect'); /** * Abstract API for reaction editor plugins. * * @constructor * @extends {goog.events.EventTarget} ...
docs/app/Examples/views/Feed/Content/FeedExampleSummaryDate.js
koenvg/Semantic-UI-React
import React from 'react' import { Feed } from 'semantic-ui-react' const FeedExampleSummaryDate = () => ( <Feed> <Feed.Event> <Feed.Label> <img src='http://semantic-ui.com/images/avatar/small/jenny.jpg' /> </Feed.Label> <Feed.Content> <Feed.Summary> You added <a>Jenny ...
client/src/index.js
brandon-pineda/BasedReviews
import React from 'react'; import ReactDOM from 'react-dom'; import { HashRouter } from 'react-router'; import App from './js/components/App'; import './styles/index.min.css'; ReactDOM.render( <HashRouter> <App /> </HashRouter>, document.getElementById('root') );
src/pwa.js
leopoldjoy/react-ethereum-dapp-example
import React from 'react'; import ReactDOM from 'react-dom/server'; import Html from './helpers/Html'; export default function () { return `<!doctype html>${ReactDOM.renderToStaticMarkup(<Html />)}`; }
korntastic/src/containers/App/App.js
JohnMcSpedon/hackzurich2017
import React from 'react' import { connect } from 'react-redux' import { View, Text, Image, TouchableOpacity, Animated } from 'react-native' import styles from './App.styles.js' import theme from '../../common/theme' import Topbar from '../../components/Topbar' import Spinner from 'react-native-spinkit' impor...
ajax/libs/yui/3.17.1/event-focus/event-focus-coverage.js
nolsherry/cdnjs
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/event-focus/event-focus.js']) { __coverage__['build/event-focus/event-focus.js'] = ...
lib/layout/Loading.js
rodrigocipriani/br-react-utils
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) descriptor.writable = true; Object.defineProperty(target, des...
test/specs/modules/Dimmer/DimmerInner-test.js
Semantic-Org/Semantic-UI-React
import faker from 'faker' import React from 'react' import DimmerInner from 'src/modules/Dimmer/DimmerInner' import * as common from 'test/specs/commonTests' import { sandbox } from 'test/utils' describe('DimmerInner', () => { common.isConformant(DimmerInner) common.hasUIClassName(DimmerInner) common.rendersChi...
node_modules/react-native-material-textfield/src/components/helper/test.js
RahulDesai92/PHR
import 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; import Helper from '.'; /* eslint-env jest */ const text = 'helper'; it('renders helper', () => { let helper = renderer .create(<Helper>{text}</Helper>) .toJSON(); expect(helper) .toMatchSnapshot(); });
src/client/lib/menuHelper.js
andrerpena/monomock
import VNavItem from '../components/VNavItem'; import _ from 'underscore'; import React from 'react'; class MenuHelper { /** * Creates VNavItems from an Object containing nodes (each property in the nodes object represents a node) * @param nodes * @param onItemClick * @returns {*} */ ...
app/components/ExpandableTable/index.js
zmora-agh/zmora-ui
/** * * ExpandableTable * */ import React from 'react'; import List from 'material-ui/List'; function ExpandableTable(props) { return ( <List style={{ width: '100%' }}> {props.children} </List> ); } ExpandableTable.propTypes = { children: React.PropTypes.node, }; export default ExpandableTable;...
components/PanelSkill.js
alonsogodinez/AlamedaWebPageGatsby
import React from 'react' import styles from '../css/panel.module.css' import cx from 'classnames'; import { prefixLink } from 'gatsby-helpers' export default class PanelSkill extends React.Component { render() { return ( <section className={ cx({ [styles["panel--skills"...
test/unit/Badge.spec.js
jtollerene/material-ui
import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import getMuiTheme from 'src/styles/getMuiTheme'; import Badge from 'src/badge'; describe('<Badge />', () => { const badgeTheme = getMuiTheme().badge; const testChildren = <div className="unique">Hello World</div>; it('rende...
Examples/UIExplorer/js/ViewExample.js
Maxwell2022/react-native
/** * Copyright (c) 2013-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. * * The examp...
__tests__/component_specs/form_fields/datepicker_input_spec.js
MIK-dev-team/MIK-System
import React from 'react'; import { shallow } from 'enzyme'; import sinon from 'sinon'; import DatePickerInput from '../../../app/javascript/components/form_fields/datepicker_input'; const months = ['Tammikuu', 'Helmikuu', 'Maaliskuu', 'Huhtikuu', 'Toukokuu', 'Kesäkuu', 'Heinäkuu', 'Elokuu', 'Syyskuu', 'Lokaku...
server/server.js
efiliba/bcc
import Express from 'express'; import bodyParser from 'body-parser'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.config.dev'; import webpackDevMiddleware from 'webpack-dev-middleware'; import webpackHotMiddleware from 'webpack-hot-middleware'; // Initialize the Express App co...
front-end/src/component/skills/vue_icon.js
axelmichael11/website
// import '_skills.scss' import React from 'react' export default React.createClass({ render(){ return( <svg viewBox="0 0 128 128" className="skills-icons"> <path d="m31.393 97.211c-0.37519 0-0.74964 0.10771-1.0742 0.32226-0.32458 0.21456-0.62109 0.58341-0.62109 1.0566 0 0.06291-0.03691 0.20352 0.08398 ...
src/client/containers/pages/NotFound.react.js
apburnes/react-con-redux-boilerplate
import React, { Component } from 'react'; import { Link } from 'react-router'; class NotFound extends Component { render() { return ( <article> <h1>Page not found.</h1> <Link to="/" className="btn">Home</Link> </article> ); } } export default NotFound;