path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
app/screens/common/modal-confirm.js
yiyinsong/react-native-example-jdh
import React, { Component } from 'react'; import { Text, View, TouchableOpacity, Modal, DeviceEventEmitter } from 'react-native'; import styles from '../../css/styles'; import Utils from '../../js/utils'; export default class ModalConfirm extends Component{ static get defaultProps()...
packages/material-ui-icons/src/LooksTwoTone.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="M12 6C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93-11-11-11z" /><path d="M12 12c2.76 0 5 2.24 5 5h2c0-3.86-3.14-7-7-7s-7 ...
src/js/components/icons/base/LinkBottom.js
odedre/grommet-final
/** * @description LinkBottom SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * ...
src/Pads.js
antropoloops/looper
import React from "react"; import classNames from "classnames" const Pad = ({ letter, state, onClick }) => ( <a href="#!" className={classNames("Pad", state)} onClick={onClick}> {letter} </a> ) const Pads = ({ letters, padsState, onClick }) => ( <div className="Pads"> {letters.map(letter => ( <Pad...
app/components/TextInput/InputWithButton.js
jmsstudio/CurrencyConverter
import React from 'react'; import PropTypes from 'prop-types'; import color from 'color'; import { View, TouchableHighlight, Text, TextInput } from 'react-native'; import styles from './styles'; function InputWithButton(props) { const { buttonText, onPress, editable = true } = props; const containerStyles = [styl...
packages/@lyra/desk-tool/src/DeskTool.js
VegaPublish/vega-studio
import React from 'react' import styles from './styles/DeskTool.css' import SchemaPaneResolver from './SchemaPaneResolver' import client from 'part:@lyra/base/client' import {withRouterHOC} from 'part:@lyra/base/router' import PropTypes from 'prop-types' export default withRouterHOC( class DeskTool extends React.Com...
src/Pages.js
andre-lima/Simple-React-Page-Router
import React from 'react'; import Home from './Home.js'; import HowTo from './HowTo.js'; import Contact from './Contact.js'; //Replace your components information here const items = [ { title:'Home', component: Home, page_id: 'home', }, { title:'How To Use It', component: HowTo, page_id: ...
src/svg-icons/image/transform.js
nathanmarks/material-ui
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...
frontend/src/components/frame/components/SearchPres.js
jf248/scrape-the-plate
import React from 'react'; import classNames from 'classnames'; import * as Mui from '@material-ui/core'; import Search from '@material-ui/icons/Search'; import { fade } from '@material-ui/core/styles/colorManipulator'; // eslint-disable-line import/no-internal-modules const styles = theme => ({ wrapper: { displ...
src/articles/2017-12-24-Version-2-0/index.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { Zerotorescue } from 'CONTRIBUTORS'; import RegularArticle from 'interface/news/RegularArticle'; import ChecklistOverview from './checklist-overview.png'; import ChecklistItem from './checklist-item.png'; import Results2point0 from './results-2.0.png'; export default ( <RegularAr...
administrator/components/com_csvi/assets/js/jquery.js
gust3/vregs
/*! jQuery v1.7.1 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde...
modules/graphql/js/src/index.js
dbethala/longwood-volunteers
import React from 'react'; import ReactDOM from 'react-dom'; import Drupal from 'drupal'; import jQuery from 'jquery'; import GraphiQL from 'graphiql'; /** * Behavior for rendering the GraphiQL interface. */ Drupal.behaviors.graphQLRenderExplorer = { attach: (context, settings) => { const container = jQuery('#...
src/svg-icons/places/rv-hookup.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesRvHookup = (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...
examples/official-storybook/stories/addon-links.stories.js
rhalff/storybook
import React from 'react'; import { storiesOf } from '@storybook/react'; import { linkTo, hrefTo } from '@storybook/addon-links'; import LinkTo from '@storybook/addon-links/react'; import { action } from '@storybook/addon-actions'; storiesOf('Addons|Links.Link', module) .add('First', () => <LinkTo story="Second">Go ...
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/containers/components/container/tabs-nav.js
boquiabierto/wherever-content
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { compose, withHandlers } from 'recompose'; /** * The internal dependencies. */ import { preventDefault } from 'lib/helpers'; /** * Render the tabs navigation of the container. ...
ajax/libs/choices.js/2.7.4/choices.js
ahocevar/cdnjs
/*! choices.js v2.7.4 | (c) 2017 Josh Johnson | https://github.com/jshjohnson/Choices#readme */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], fact...
client/src/index.js
r-portas/govhack2017
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import injectTapEventPlugin from 'react-tap-event-plugin'; // Needed for onTouchTap // http://stackoverflow.com/a/34015469/988941 injectTapEventPlugin...
src/svg-icons/social/location-city.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialLocationCity = (props) => ( <SvgIcon {...props}> <path d="M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h...
ajax/libs/yui/3.5.1/simpleyui/simpleyui-debug.js
dhowe/cdnjs
/** * The YUI module contains the components required for building the YUI seed * file. This includes the script loading mechanism, a simple queue, and * the core utilities for the library. * @module yui * @submodule yui-base */ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The YUI global namespac...
ajax/libs/yasr/2.0.2/yasr.bundled.min.js
stefanocudini/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASR=e()}}(function(){var e;return function t(e,n,r){...
src/ModalTitle.js
chilts/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalTitle extends React.Component { render() { return ( <h4 {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.children } </h4> ); } } ModalTitle.pr...
src/svg-icons/action/bug-report.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBugReport = (props) => ( <SvgIcon {...props}> <path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7...
ajax/libs/react-ace/5.1.2/react-ace.js
nolsherry/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["ReactAce"] = factory(); else root["Reac...
node_modules/react/lib/ReactInstanceMap.js
gitoneman/react-soc
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ...
submissions/kyldvs/src/AppView.js
okmttdhr/flux-challenge
/** * @flow */ 'use strict'; import type Immutable from 'immutable'; import type Sith from './Sith'; import React from 'react'; type Props = { currentPlanet: string, onScrollDown: () => void, onScrollUp: () => void, siths: Immutable.List<Sith>, }; /** * This is a stateless react component, see release n...
src/components/SearchResult.js
amaralflavio/cmovies
import React from 'react'; import styled from 'styled-components'; import Text from './Text'; const SearchResult = (props) => { return ( <div className={props.className}> <div className="result-cont"> <div className="result-content" onClick={() => window.open(`http://www.themov...
src/templates/index.js
ianmcgregor/mcgregor.codes
import React from 'react'; import components from '../components'; import Debug from '../components/debug'; import Grid from '../components/grid'; import styled from 'styled-components'; import { media, marginMobile, columnMobile, marginTablet, columnTablet, marginDesktop, columnDesktop, ...
platform/ui/plugins/reactors/FissionReactor.js
acmorrow/pion-core
dojo.provide("plugins.reactors.FissionReactor"); dojo.require("plugins.reactors.Reactor"); dojo.require("pion.terms"); dojo.require("pion.codecs"); dojo.require("pion.widgets.TermTextBox"); dojo.require("dijit.form.TextBox"); dojo.require("dijit.form.Button"); dojo.declare("plugins.reactors.FissionReactor", [ plugins...
app/components/AppRoutes.js
paladinze/testSemantic
'use strict'; import React from 'react'; import { Router, browserHistory } from 'react-router'; import routes from '../routes'; export default class AppRoutes extends React.Component { render() { return ( <Router history={browserHistory} routes={routes} onUpdate={() => window.scrollTo(0, 0)}/> ); } ...
ui/src/components/VariableInfo/VariablesList.js
vlad-doru/experimento
import React from 'react' import List from 'material-ui/List'; import Subheader from 'material-ui/Subheader'; import {blue500, darkBlack, lightBlack} from 'material-ui/styles/colors'; import __ from 'lodash'; import VariablesListItem from './VariablesListItem'; export class VariablesList extends React.Component { c...
ajax/libs/zeroclipboard/2.1.0/ZeroClipboard.Core.js
warpech/cdnjs
/*! * ZeroClipboard * The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface. * Copyright (c) 2014 Jon Rohan, James M. Greene * Licensed MIT * http://zeroclipboard.org/ * v2.1.0 */ (function(window, undefined) { "use strict";...
ajax/libs/react-widgets/2.7.2/react-widgets.js
him2him2/cdnjs
/*! v"2.7.1" | (c) 2015 Jason Quense | https://github.com/jquense/react-widgets/blob/master/License.txt */ this.ReactWidgets=function(e){function t(n){if(s[n])return s[n].exports;var r=s[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var s={};return t.m=e,t.c=s,t.p="",t(0...
node_modules/babel-core/node_modules/core-js/client/library.js
madre/devops
/** * core-js 1.1.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require f...
lib/components/AdminList.js
Jeff-Duke/turing-fridays
import React from 'react'; const AdminList = ({ toggleList, allAdmins, newAdmin, user }) => { return ( <section className='AdminsList'> <button className='CloseListButton' onClick={() => toggleList()}>Close</button> <section className='AdminEmails'>{allAdmins}</section> <form className='AddAdmi...
packages/icons/src/md/editor/MonetizationOn.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdMonetizationOn(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M24 4c11.05 0 20 8.95 20 20s-8.95 20-20 20S4 35.05 4 24 12.95 4 24 4zm2.83 32.18c3.46-.66 6.22-2.67 6.22-6.32 0-5.05-4.32-6.77-8.36-7.82-4.03-...
assets/2018-10-01-Release-of-polmineR-v0.7.10/kwic_widget_1_files/jquery-1.12.4/jquery.min.js
PolMine/PolMine.github.io
/*! 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...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Base/Header/Header.js
rswijesena/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
packages/xo-web/src/common/xo/snapshot-vm-modal/index.js
vatesfr/xo-web
import _ from 'intl' import React from 'react' import BaseComponent from 'base-component' import { compileTemplate } from '@xen-orchestra/template' import { connectStore } from 'utils' import { Container, Col, Row } from 'grid' import { createGetObjectsOfType } from 'selectors' import { forEach } from 'lodash' const R...
node_modules/rx/dist/rx.lite.js
PavlyukVadim/KPI-Event
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false...
ajax/libs/elfinder/2.1.40/js/i18n/elfinder.nl.js
jonobr1/cdnjs
/** * Dutch translation * @author Barry vd. Heuvel <barry@fruitcakestudio.nl> * @version 2015-12-01 */ (function(root, factory) { if (typeof define === 'function' && define.amd) { define(['elfinder'], factory); } else if (typeof exports !== 'undefined') { module.exports = factory(require('elfinder')); } else...
ajax/libs/react-router/0.13.3/ReactRouter.min.js
xymostech/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.ReactRouter=e(require("react")):t.ReactRouter=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].e...
src/svg-icons/av/repeat-one.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRepeatOne = (props) => ( <SvgIcon {...props}> <path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4zm-4-2V9h-1l-2 1v1h1.5v4H13z"/> </SvgIcon> ); AvRepeatOne = pure(AvRepeatOne); AvRepeatOn...
fields/types/name/NameColumn.js
giovanniRodighiero/cms
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; import displayName from 'display-name'; var NameColumn = React.createClass({ displayName: 'NameColumn', propTypes: { col: React.PropTypes.object, data: React.Pr...
src/parser/priest/discipline/modules/items/Skjoldr.js
FaideWW/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import ItemHealingDone from 'interface/others/ItemHealingDone'; const debug = false; const SKJOLDR_PWS_ABSORB_BONUS = 0.15; // While working on this I found out something inte...
test/views/BoardView.spec.js
DeekyJay/SoundwaveInteractive
import React from 'react' describe('(View) Board', () => { it('should exist', () => { }) })
src/icons/GridOnIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class GridOnIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 4H8C5.79 4 4 5.79 4 8v32c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V8c0-2.21-1.79-4-4-4zM16 40H8v-8h8v8zm0-...
index.js
ronanamsterdam/nitrorecorder
'use strict'; import React from 'react'; import { render } from 'react-dom'; import RecorderRoot from './containers/RecorderRoot'; import res from './constants/res'; function renderRecorder() { return Promise.resolve().then( _ => { // strangely enough -> this check makes rendering possible // if exported a...
FocusMeterClient/LocalFiles/js/jquery-1.8.2.js
nokia-wroclaw/innovativeproject-focusmeter
/*! * 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(...
src/js/search/components/ResultStats.js
trevormunoz/kap.js
import React, { Component, PropTypes } from 'react'; class ResultStats extends Component { render() { const { from, pageSize, total } = this.props; return ( <div className="search-stats"> {from + pageSize > total && <em>Displaying results {from + 1} to {total} of {total} total results...
src/js/containers/Login.js
gperreymond/dashboard-react
// react import React, { Component } from 'react'; import { TextField, RaisedButton, FlatButton } from 'material-ui'; import MediaQuery from 'react-responsive'; // packages import logger from 'debug'; // local import SparkPanel from './../components/spark/Panel'; import SparkBoxCenter from './../components/spark/BoxCen...
src/js/ListBox.js
jakezatecky/react-dual-listbox
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import Filter from './Filter'; import languageShape from './shapes/languageShape'; import arrayFrom from './util/arrayFrom'; import capitalizeFirstLetter from './util/capitalizeFirstLetter'; class ListBox extends React...
app/app.js
phillydorn/CAProject2
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import Immutable from 'immutable'; import _ from 'lodash'; import configureStore from './store/configureStore'; import createRoutes from './routes...
src/uic/ListBox.js
ajaycheenath/abs
import React, { Component } from 'react'; import uicStyle from "../css/uic.css"; class ListBox extends Component { render() { return ( <div className="floatLeft"> <select onChange={this.props.onChange} className={uicStyle.listBox}> <option value="">{this.props.label}</option> ...
test/helpers/shallowRenderHelper.js
Anikinly/hexunsearch
/** * 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'...
client/test/components/authentication/AuthPage.spec.js
andela-pessien/libre-dms
/* eslint-disable react/jsx-filename-extension */ import React from 'react'; import { shallow } from 'enzyme'; import AuthPage from '../../../components/authentication/AuthPage'; describe('AuthPage component', () => { let authPage; beforeEach(() => { authPage = shallow(<AuthPage />); }); it('renders with...
ajax/libs/yui/3.10.1/event-focus/event-focus-debug.js
narikei/cdnjs
YUI.add('event-focus', function (Y, NAME) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Event = Y.Event, YLang = Y.Lang, isString = YLang.isString, arrayIndex = Y.Array.indexOf, useActivate = (function() { ...
examples/with-mobx-state-tree/pages/other.js
BlancheXu/test
import React from 'react' import SampleComponent from '../components/SampleComponent' export default () => { return <SampleComponent title={'Other Page'} linkTo='/' /> }
app/javascript/mastodon/components/column_back_button_slim.js
5thfloor/ichiji-social
import React from 'react'; import { FormattedMessage } from 'react-intl'; import ColumnBackButton from './column_back_button'; import Icon from 'mastodon/components/icon'; export default class ColumnBackButtonSlim extends ColumnBackButton { render () { return ( <div className='column-back-button--slim'> ...
node_modules/react-icons/go/database.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const GoDatabase = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20 37.5c-8.3 0-15-2.2-15-5v-5c0-0.4 0.2-0.8 0.5-1.2 1.7 2.1 7.5 3.7 14.5 3.7s12.8-1.6 14.5-3.7c0.3 0.4 0.5 0.8 0.5 1.2v5c0 2.8-6.7 5-15 5z m0-10c-8.3 0-15-2.2-15-5v...
integration/azure/authentication/azure-v1/auth-code-pkce/WorkflowGenExample/navigation/homenavigation.ios.js
advantys/workflowgen-templates
import React from 'react'; import { createBottomTabNavigator } from 'react-navigation'; import Ionicon from 'react-native-vector-icons/Ionicons'; import HomeStack from './HomeStack'; import WorkflowGenProfileStack from './WorkflowGenProfileStack'; export default createBottomTabNavigator( { Home: HomeStack, ...
src/ToggleButtonWithLabel/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Typography from '../Typography'; import SwitchToggleButton from '../SwitchToggleButton'; import styles from './styles.css'; function ToggleButtonWithLabel(props) { return ( <div className={classNames(style...
src/Facets.js
bbokorney/hold-my-beer
import React from 'react'; import './Facets.css'; function Facets(props) { if(props.styles.length === 0 && props.categories.length === 0) { return ( <div></div> ); } return ( <div className="Facets"> {facetList(props.styles)} {facetList(props.categories)} </div> ); } function...
app/js/profiles/components/registration/UsernameResult.js
blockstack/blockstack-portal
import React from 'react' import UsernameResultSubdomain from './UsernameResultSubdomain' import UsernameResultDomain from './UsernameResultDomain' import roundTo from 'round-to' import { PRICE_BUFFER } from './RegistrationSelectView' const UsernameResult = (props) => { const { name, index, availability,...
client/views/room/contextualBar/RoomMembers/AddUsers/AddUsers.js
VoiSmart/Rocket.Chat
import { Field, Button } from '@rocket.chat/fuselage'; import React from 'react'; import UserAutoCompleteMultiple from '../../../../../../ee/client/audit/UserAutoCompleteMultiple'; import VerticalBar from '../../../../../components/VerticalBar'; import { useTranslation } from '../../../../../contexts/TranslationContex...
react/movie-mojo/src/index.js
leovant/examples
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './components/App'; ReactDOM.render(<App />, document.getElementById('root'));
packages/material-ui-icons/src/SwapVerticalCircle.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="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM6.5 9L10 5.5 13.5 9H11v4H9V9H6.5zm11 6L14 18.5 10.5 15H13v-4h2v4h2.5z" /></Reac...
app/javascript/mastodon/features/compose/components/upload.js
TheInventrix/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injec...
packages/core/src/icons/components/Play.js
iCHEF/gypcrete
import React from 'react'; export default function SvgPlay(props) { return ( <svg width="1em" height="1em" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg" {...props} > <path fillRule="evenodd" clipRule="evenodd" d="M187.5 500c.2-172.5 140...
src/decorators/tweakable.js
wundery/wundery-ui-react
import React from 'react'; // Utils import classnames from 'classnames'; const tweakable = (Component) => { const TweakableComponent = (props) => { let result = <Component {...props} />; if (props.center) { result = ( <div className={classnames('ui-align-center')}> {result} ...
src/__tests__/Button-test.js
nikgraf/belle
/* global jest describe beforeEach it expect */ jest.dontMock('../components/Button'); jest.dontMock('../utils/inject-style'); jest.dontMock('../utils/union-class-names'); jest.dontMock('../style/button'); import React from 'react'; import TestUtils from 'react-dom/test-utils'; // Babel would move an import in front...
client/app/containers/ToastList/ToastList.js
krouw/T.SIA-electron-blueprint
import React, { Component } from 'react'; import { connect } from 'react-redux' import { Position, Toaster } from "@blueprintjs/core"; import { clearToasts } from '../../actions/Toasts' class ToastList extends Component{ constructor(props){ super(props); } componentDidMount() { if (this.props.toasts.len...
packages/material-ui-icons/src/LocalBar.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M21 5V3H3v2l8 9v5H6v2h12v-2h-5v-5l8-9zM7.43 7L5.66 5h12.69l-1.78 2H7.43z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment> , 'LocalBar');
src/components/block/Block.js
casesandberg/react-color
import React from 'react' import PropTypes from 'prop-types' import reactCSS from 'reactcss' import merge from 'lodash/merge' import * as color from '../../helpers/color' import { ColorWrap, EditableInput, Checkboard } from '../common' import BlockSwatches from './BlockSwatches' export const Block = ({ onChange, onSw...
frontend/src/Search/Album/AddNewAlbumModalContentConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { metadataProfileNames } from 'Helpers/Props'; import { addAlbum, setAddDefault } from 'Store/Actions/searchActions'; import createDimensionsSelector fro...
admin/client/App/screens/List/components/ListControl.js
michaelerobertsjr/keystone
import React from 'react'; import classnames from 'classnames'; var ListControl = React.createClass({ propTypes: { dragSource: React.PropTypes.func, onClick: React.PropTypes.func, type: React.PropTypes.oneOf(['check', 'delete', 'sortable']).isRequired, }, renderControl () { var icon = 'octicon octicon-'; ...
ajax/libs/rxjs/2.4.5/rx.compat.js
peteygao/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 }; ...
node_modules/react-icons/fa/code-fork.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaCodeFork = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m14.9 32.9q0-0.9-0.6-1.6t-1.5-0.6-1.5 0.6-0.7 1.6 0.7 1.5 1.5 0.6 1.5-0.6 0.6-1.5z m0-25.8q0-0.8-0.6-1.5t-1.5-0.6-1.5 0.6-0.7 1.5 0.7 1.6 1.5 0.6 1.5-0.6 0.6-1.6z m1...
app/containers/FoodCompareContainer.js
zhanghaj00/shop-reactnative
/** * Created by ljunb on 16/6/5. */ import React from 'react'; import {connect} from 'react-redux'; import FoodCompare from '../pages/FoodCompare'; class FoodCompareContainer extends React.Component { render() { return ( <FoodCompare {...this.props} /> ) } } export default conne...
src/atoms/Form/form.stories.js
sjofartstidningen/bryggan
/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { Form, FormFieldset, FormLegend, FormGroup, FormInputLabel, FormInput, FormInputDetail, } from './index'; import { Butt...
Examples/UIExplorer/UIExplorerApp.ios.js
gauribhoite/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, ...
spec/coffeescripts/jsx/due_dates/DueDateRemoveRowLinkSpec.js
djbender/canvas-lms
/* * Copyright (C) 2015 - 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...
client/lib/components/pages/Book.js
noxee/reddit-fantasy
import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import { BookDetails } from '../shared/books'; import { Loader } from '../shared'; const _ = require('lodash'); function mapStateToProps(state) { return { books: state.books }; } class Book extends Component ...
ajax/libs/react/18.1.0-next-f7cf077cc-20220412/umd/react.profiling.min.js
cdnjs/cdnjs
/** * @license React * react.profiling.min.js * * 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. */ (function(){'use strict';(function(c,x){"object"===typeof exports&&"undefined"!==typ...
client/modules/App/App.js
codejunky/neda
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import cookie from 'react-cookie'; // Import Style import styles from './App.css'; // import '../../../node_modules/bootstrap/dist/css/bootstrap.min.css'; // Import Components import Helmet from 'react...
node_modules/react-router/modules/ScrollManagementMixin.js
kevinsimper/isomorphic-apps-presentation
import React from 'react'; import { canUseDOM, setWindowScrollPosition } from './DOMUtils'; import NavigationTypes from './NavigationTypes'; var { func } = React.PropTypes; function getCommonAncestors(branch, otherBranch) { return branch.filter(route => otherBranch.indexOf(route) !== -1); } function shouldUpdateSc...
ajax/libs/react-widgets/3.1.1/react-widgets-simple-number.js
cdnjs/cdnjs
/*! (c) 2015 Jason Quense | https://github.com/jquense/react-widgets/blob/master/License.txt */ /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check ...
node_modules/react-router/es/Route.js
vkouk/Ticketify
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 _classCallCheck(instance, Constructor) { if (!(insta...
packages/vue-styleguidist/src/client/rsg-components/VsgStyleGuide/StyleGuideRenderer.js
vue-styleguidist/vue-styleguidist
import React from 'react' import PropTypes from 'prop-types' import Logo from 'rsg-components/Logo' import StyleguideFooter from 'rsg-components/StyleguideFooter' import Styled from 'rsg-components/Styled' import cx from 'classnames' import Ribbon from 'rsg-components/Ribbon' import Version from 'rsg-components/Version...
js/src/dapps/dappreg.js
pdaian/parity
// Copyright 2015, 2016 Ethcore (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version....
src/components/NavigatorMain.js
daskalov/vwm
import React, { Component } from 'react'; import { Navigator } from 'react-native'; import VWM from '../containers/VWM'; import Assessments from './Assessments'; class NavigatorMain extends Component { navigatorRenderScene(route, navigator) { const component = { 'VWM': <VWM route={route} navigato...
src/Slider/Slider.js
gutenye/react-mc
// @flow import React from 'react' import cx from 'classnames' import { MDCSliderFoundation } from '@material/slider/dist/mdc.slider' import * as helper from '../helper' import type { PropsC } from '../types' type PropsT = { min: number, max: number, value: number, step: number, disabled: boolean, discrete...
dist/1.8.0/jquery-deprecated-dimensions-effects-offset.min.js
michaelBenin/jquery-builder
/*! jQuery v@1.8.0 -deprecated,-effects,-offset,-dimensions 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...
src/svg-icons/maps/local-movies.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalMovies = (props) => ( <SvgIcon {...props}> <path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/> </Svg...
test/specs/collections/Table/Table-test.js
jamiehill/stardust
import _ from 'lodash' import faker from 'faker' import React from 'react' import Table from 'src/collections/Table/Table' import TableColumn from 'src/collections/Table/TableColumn' import { sandbox } from 'test/utils' import * as common from 'test/specs/commonTests' describe('Table', () => { common.isConformant(T...
ajax/libs/jquery/1.4.1/jquery.min.js
dmsanchez86/cdnjs
/*! * jQuery JavaScript Library v1.4.1 * 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. ...
lib/shared/screens/admin/shared/components/page-builder/index.js
relax/relax
import * as pageBuilderActions from 'actions/page-builder'; import Component from 'components/component'; import getContextFragment from 'helpers/page-builder/get-context-fragment'; import React from 'react'; import PropTypes from 'prop-types'; import {bindActionCreators} from 'redux'; import {dataConnect} from 'relate...
tests/lib/rules/indent.js
SimenB/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @author Gyandeep Singh */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------...
ajax/libs/recompose/0.19.0/Recompose.min.js
seogi1004/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.Recompose=e(require("react")):t.Recompose=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].expor...
source/component/drawerPanel.js
togayther/react-native-cnblogs
import React, { Component } from 'react'; import { View, Text, Image, StyleSheet, ScrollView, TouchableOpacity, TouchableHighlight } from 'react-native'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import TimerMixin from 'react-timer-mixin'; import Icon from 'react-native-v...
files/rxjs-dom/7.0.3/rx.dom.js
barisaydinoglu/jsdelivr
// Copyright (c) Microsoft, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'function': true, 'object': true }; function checkGlobal(value) { return (value && value.Object === Object) ? value : null; } var freeExp...