path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
node_modules/react-native-mock/src/propTypes/StyleSheetPropType.js
niukui/gitpro
/** * https://github.com/facebook/react-native/blob/master/Libraries/StyleSheet/StyleSheetPropType.js */ import React from 'react'; import flattenStyle from './flattenStyle'; const { PropTypes } = React; function StyleSheetPropType(shape) { const shapePropType = PropTypes.shape(shape); return function (props, p...
src/js/components/Text/stories/All.js
grommet/grommet
import React from 'react'; import { Box, Text } from 'grommet'; const sizes = [ '6xl', '5xl', '4xl', '3xl', '2xl', 'xxlarge', 'xlarge', 'large', 'medium', 'small', 'xsmall', '77px', ]; export const All = () => ( <> {sizes.map((size) => ( <Box key={size} margin="small"> <Te...
src/desktop/apps/auction/components/layout/auction_info/index.js
artsy/force-public
import PropTypes from "prop-types" import _AuctionInfoDesktop from "./AuctionInfoDesktop" import _AuctionInfoMobile from "./AuctionInfoMobile" import { connect } from "react-redux" // FIXME: Rewire let AuctionInfoDesktop = _AuctionInfoDesktop let AuctionInfoMobile = _AuctionInfoMobile function AuctionInfoContainer({ ...
test/test_helper.js
jjerryhan/redux-simple-starter
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/components/InfoBar/InfoBar.js
biversen21/DocuPact_Hackathon
import React, {Component, PropTypes} from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {load} from 'redux/modules/info'; @connect( state => ({info: state.info.data}), dispatch => bindActionCreators({load}, dispatch)) export default class InfoBar extends Compone...
ajax/libs/6to5/1.13.12/browser-polyfill.js
tkirda/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...
node_modules/material-ui-datatables/node_modules/material-ui/svg-icons/maps/rate-review.js
deepidea/brisk-table
'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...
index.ios.js
quickresolve/CycleTheBay
"use strict"; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, Navigator, TextInput, TouchableHighlight, ActivityIndicatorIOS, View } from 'react-native'; import fetchWeather from "./App/Api/weatherapi" import TrailList from "./App/Components/TrailList" import weatherI...
root/app/vendor/jquery/jquery.min.js
ruairitobrien/grunt-init-protractor-base
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.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=f.trim...
src/views/components/google-translate/google-translate.js
Metaburn/doocrate
import React, { Component } from 'react'; import './google-translate.css'; import PropTypes from 'prop-types'; import Button from '../button/button'; import Icon from '../../atoms/icon/icon'; // Calls google translate when a user clicks on english // If shouldGoogleTranslateToEnglish is set then it auto translate to ...
test/src/attach/index.js
yummies/core-components
import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import chai, { expect } from 'chai'; import { renderOnce } from 'test/helpers/render'; import Attach from '#attach'; describe('attach', () => { describe('basic', () => { it('exists', () => { ...
src/__tests__/Divider.js
material-native/material-native
'use strict'; import React from 'react'; import MaterialTheme from '../styles/MaterialTheme'; import ThemeProvider from '../styles/ThemeProvider'; import Divider from '../Divider'; import ReactTestRenderer from 'react-test-renderer'; import ToJSX from 'react-element-to-jsx-string'; const theme = new MaterialTheme({})...
src/svg-icons/action/donut-small.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDonutSmall = (props) => ( <SvgIcon {...props}> <path d="M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-.41-2-1.52-2-2.84s1-2.43 2-2.84zM14.86 11H22c-.48-4.75-4-8.53-9-9v7.16c1 .3 1.52.98 1.86 1.84zM13 1...
src/components/Main.js
hawaijar/reactnd-project-myreads-starter
// @flow type State = { books: Array<BookType>, queryResult: Array<BookType>, searchTerm: string, isRefresh: boolean, searchLoading: boolean, }; import React from 'react'; import { Route, Link, Switch, Redirect } from 'react-router-dom'; import { BrowserRouter } from 'react-router-dom'; import findIndex from...
server/middleware/render-route.js
alexpalombaro/react-redux-starter-kit
import fs from 'fs'; import config from '../../config'; import React from 'react'; import ReactDOM from 'react-dom/server'; const paths = config.get('utils_paths'); const {Root, route, createStore} = require(paths.dist('server')); // ------------------------------------ // Rendering Setup // ------------------------...
zucchini-ui-frontend/src/testRunDiff/components/DifferentScenarioTableContainer.js
jeremiemarc/zucchini-ui
import { connect } from "react-redux"; import { createSelector, createStructuredSelector } from "reselect"; import DifferentScenarioTable from "./DifferentScenarioTable"; const selectDifferentScenarios = createSelector( state => state.testRunDiff.diff.differentScenarii, differentScenarios => differentScenarios );...
ajax/libs/intl-tel-input/8.1.0/js/intlTelInput.js
kennynaoh/cdnjs
/* * International Telephone Input v8.1.0 * https://github.com/jackocnr/intl-tel-input.git * Licensed under the MIT license */ // wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js (function(factory) { if (typeof define === "function" && define.amd) { define([ "jquery" ],...
src/main/resources/static/bower_components/jqwidgets/demos/react/app/rating/defaultfunctionality/app.js
dhawal9035/WebPLP
import React from 'react'; import ReactDOM from 'react-dom'; import JqxRating from '../../../jqwidgets-react/react_jqxrating.js'; class App extends React.Component { componentDidMount() { this.refs.myRating.on('change', (event) => { document.getElementById('rate').innerHTML = '&nbsp' + event.v...
Practicas/PokemonV1/componentes/PokeChat.js
tonkyfiero/React_Ejercicios
import React from 'react'; import PokeMensaje from './PokeMensaje.js'; export default class Pokechat extends React.Component{ render(){ return( <ul className="pokechat">{ this.props.mensajes.map((mensaje,i)=>{ return( <PokeMensaje key={i} mensaje={mensaje.texto} /> ); }) } ...
tests/components/Header/Header.spec.js
janceChun/redux-docker-swarm
import React from 'react' import { Header } from 'components/Header/Header' import classes from 'components/Header/Header.scss' import { IndexLink, Link } from 'react-router' import { shallow } from 'enzyme' describe('(Component) Header', () => { let _wrapper beforeEach(() => { _wrapper = shallow(<Header/>) ...
src/svg-icons/image/transform.js
verdan/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...
resources/assets/admin/components/ReviewButton.js
DoSomething/northstar
import React from 'react'; import gql from 'graphql-tag'; import classNames from 'classnames'; import { useMutation } from '@apollo/react-hooks'; export const ReviewButtonFragment = gql` fragment ReviewButton on Post { id status } `; const REVIEW_POST_MUTATION = gql` mutation ReviewPostMutation($id: Int...
client/src/scenes/RoomPage/UsersList/index.js
RudthMael/chatx
import React from 'react'; import { connect } from 'react-redux'; import { getUsers } from '../../../selectors'; import './index.css'; class UsersList extends React.Component { render() { const { users } = this.props; return ( <div className="users-box"> {users && users.map(user => ( ...
docs/src/app/components/pages/get-started/Examples.js
lawrence-yu/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import examplesText from './examples.md'; const Examples = () => ( <div> <Title render={(previousTitle) => `Examples - ${previousTitle}`} /> <MarkdownElement text={examplesText} /> </...
src/components/modules/AnimeCard.js
migueliriano/react-anime-project
import React from 'react'; import PropTypes from 'prop-types'; import { CardContainer, Header, BodyContainer, } from 'style/animeCard'; const AnimeCard = props => ( <CardContainer> <Header> {props.title} </Header> <BodyContainer> {props.children} </BodyContainer> </CardContainer> ); AnimeCard.defau...
ajax/libs/babel-core/5.1.9/browser-polyfill.js
wil93/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...
packages/material-ui-icons/src/MusicVideo.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3z" /> ,...
src/components/text/word-component.js
ChrisRast/Le-Taguenet
import React from 'react'; import PropTypes from 'prop-types'; import * as ui from 'semantic-ui-react'; import { difficulty as difficultyMax, } from '../../config/params'; export default class WordComponent extends React.PureComponent { /** * Range of validators that can be used to make sure the received data is v...
packages/material-ui-icons/src/SignalWifi3BarLockSharp.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 fillOpacity=".3" d="M15.5 14.5c0-2.8 2.2-5 5-5 .36 0 .71.04 1.05.11L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5l3.5-4.36V14.5z"...
src/components/input/select-radio/__tests__/index.js
KleeGroup/focus-components
import TestUtils from 'react-dom/test-utils'; import React from 'react'; import ReactDOM from 'react-dom'; import SelectRadio from '../'; const { renderIntoDocument, scryRenderedDOMComponentsWithTag, Simulate } = TestUtils; const values = [ { code: 'A', label: 'Value A' }, { code: 'B', label: 'Value B' }, { code...
client/inputs/components/required-input.js
jmeas/moolah
import React from 'react'; export default function RequiredInput(props) { return ( <div className="requiredInput"> <input {...props}/> {!props.value && ( <span className="requiredInput_requiredText"> Required </span> )} </div> ); }
src/helpers/__tests__/getDataDependencies-test.js
martinval/boiler2
import { expect } from 'chai'; import React from 'react'; import { div } from 'react-dom'; import getDataDependencies from '../getDataDependencies'; describe('getDataDependencies', () => { let getState; let dispatch; let location; let params; let CompWithFetchData; let CompWithNoData; let CompWithFetchDa...
src/core/HttpClient.js
magnusbae/arcadian-rutabaga
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import request from 'superagent'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; function getUrl(path) { if (path.startsWith('http') || canUseDOM) { return path; } return process.env.WEBSITE_HOSTNAME ? `http://${proces...
example/index.js
johanneslumpe/redux-history-transitions
import React from 'react'; import ReactDOM from 'react-dom'; import { Router } from 'react-router'; import { Provider } from 'react-redux'; import createHistory from 'history/lib/createBrowserHistory'; import { useQueries } from 'history'; import routes from './routes/'; import createStore from './createStore'; import...
examples/gatsby/src/withRoot.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { MuiThemeProvider } from 'material-ui/styles'; import CssBaseline from 'material-ui/CssBaseline'; import getPageContext from './getPageContext'; function withRoot(Component) { class WithRoot extends React.Component { constructor(props, contex...
ajax/libs/flocks.js/0.16.18/flocks.min.js
NameFILIP/cdnjs
if("undefined"===typeof React)var React=require("react"); (function(){function f(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){return"undefined"===typeof a}function u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===type...
app/javascript/mastodon/containers/admin_component.js
Ryanaka/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from '../locales'; const { localeData, messages } = getLocale(); addLocaleData(localeData); export default class AdminComponent extends React.PureComponent { static propType...
src/Button/test/ButtonStylesSpec.js
suitejs/suite
import React from 'react'; import ReactDOM from 'react-dom'; import Button from '../index'; import ButtonToolbar from '../../ButtonToolbar'; import { createTestContainer, getDOMNode, getDefaultPalette, toRGB, getStyle, itChrome } from '@test/testUtils'; import '../styles/index'; const { H500, H700, H800, ...
docs/app/Examples/modules/Progress/Variations/ProgressExampleColor.js
shengnian/shengnian-ui-react
import React from 'react' import { Progress } from 'shengnian-ui-react' const ProgressExampleColor = () => ( <div> <Progress percent={32} color='red' /> <Progress percent={59} color='orange' /> <Progress percent={13} color='yellow' /> <Progress percent={37} color='olive' /> <Progress percent={83}...
examples/huge-apps/app.js
SpainTrain/react-router
import React from 'react'; import { Router } from 'react-router'; import stubbedCourses from './stubs/COURSES'; var rootRoute = { component: 'div', childRoutes: [{ path: '/', component: require('./components/App'), childRoutes: [ require('./routes/Calendar'), require('./routes/Course'), ...
ajax/libs/reflux/6.1.0/reflux.min.js
sashberd/cdnjs
!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.Reflux=a()}}(function(){return function a(b,c,d){functi...
tests/components/Photo.spec.js
rabbitfighter81/yodagram
import React from 'react'; import ReactTestUtils from 'react-addons-test-utils'; import expect from 'expect'; import expectJSX from 'expect-jsx'; expect.extend(expectJSX); import Photo from '../../client/components/Photo'; // grab some data to use import comments from '../../client/data/comments'; import posts from '....
docs/app/Examples/elements/List/Types/ListExampleBasic.js
mohammed88/Semantic-UI-React
import React from 'react' import { List } from 'semantic-ui-react' const ListExampleBasic = () => ( <List> <List.Item>Apples</List.Item> <List.Item>Pears</List.Item> <List.Item>Oranges</List.Item> </List> ) export default ListExampleBasic
node_modules/react-proxy/src/deleteUnknownAutoBindMethods.js
mk007sg/threeSeaShells
function shouldDeleteClassicInstanceMethod(component, name) { if (component.__reactAutoBindMap && component.__reactAutoBindMap.hasOwnProperty(name)) { // It's a known autobound function, keep it return false; } if (component.__reactAutoBindPairs && component.__reactAutoBindPairs.indexOf(name) >= 0) { ...
src/imports/ReactDocumentation/Advanced/Testing/Testing.js
ManuelDeLeon/viewmodel-react-docs
Testing({ render(){ <div class="ui segment"> <h2 class="ui header">Testing</h2> <a class="anchor active" id="AdvancedTesting"></a> <p> This section assumes you've read the <a href="#BasicsTesting">basic testing</a> section. </p> <h3>data-bind</h3> <p>The way you decl...
src/svg-icons/maps/subway.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsSubway = (props) => ( <SvgIcon {...props}> <circle cx="15.5" cy="16" r="1"/><circle cx="8.5" cy="16" r="1"/><path d="M7.01 9h10v5h-10zM17.8 2.8C16 2.09 13.86 2 12 2c-1.86 0-4 .09-5.8.8C3.53 3.84 2 6.05 2 8....
local-cli/templates/HelloNavigation/components/ListItem.js
orenklein/react-native
'use strict'; import React, { Component } from 'react'; import { Platform, StyleSheet, Text, TouchableHighlight, TouchableNativeFeedback, View, } from 'react-native'; /** * Renders the right type of Touchable for the list item, based on platform. */ const Touchable = ({onPress, children}) => { const c...
src/Footer.js
shierby/storehome
import React from 'react'; import { Link, IndexLink } from 'react-router'; const Footer = () => { const style = { color: "rgb( 51, 51, 51 )", textDecoration: "none", borderBottom: "2px solid blue" }; return ( <div className="container"> <footer className="mdl-mini-footer ...
files/azsearch.js/0.0.8/AzSearch.bundle.js
PeterDaveHello/jsdelivr
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM"),require("Redux")):"function"==typeof define&&define.amd?define(["React","ReactDOM","Redux"],t):"object"==typeof exports?exports.AzSearch=t(require("React"),require("ReactDOM"),require("Redux")):e.AzSea...
docs/src/pages/demos/text-fields/InputAdornments.js
Kagami/material-ui
import React from 'react'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import IconButton from '@material-ui/core/IconButton'; import Input from '@material-ui/core/Input'; import InputLabel from '@material-ui/core/InputLabel'; import Inp...
node_modules/react-native/Libraries/Components/TextInput/TextInput.js
senolakkas/react-native-minesweeper
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/components/organisms/Header/index.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react'; import styled from 'styled-components'; import {IconLink, Link, HeaderSearchAdvance, HeaderUserMenu} from 'components'; import {Grid, Row, Col} from 'react-flexbox-grid'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'materi...
src/parser/warrior/fury/modules/talents/MeatCleaver.js
fyruna/WoWAnalyzer
import React from 'react'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import Analyzer from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import { SELECTED_PLAYER } from 'parser/core/EventFilter'; import SPELLS from 'common/SPELLS'; const BUFFER_MS = 50; const RAGE_GAIN_WW...
src/components/LanguageSwitcher/LanguageSwitcher.js
utage2002/mm
/* eslint-disable no-shadow */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { setLocale } from '../../actions/intl'; function LanguageSwitcher({ currentLocale, availableLocales, setLocale }) { const isSelected = locale => locale === currentLocale; co...
packages/editor/src/BoldrEditor.js
strues/boldr
/* eslint-disable max-lines, react/no-array-index-key, no-param-reassign, react/default-props-match-prop-types */ /* @flow */ import React from 'react'; import type { Node } from 'react'; import { Editor, EditorState, RichUtils, convertToRaw, convertFromRaw, CompositeDecorator, } from 'draft-js'; import typ...
apps/seasons-sunray-angle/active-view-selector.js
concord-consortium/leap-motion
import React from 'react'; export default class ActiveViewSelector extends React.Component{ constructor(props) { super(props); this.state = { overlays: props.initialOverlays.view, activeView: 'none' }; this.generateActiveToggles = this.generateActiveToggles.bind(this); this.onChangeVi...
src/components/pager/PagerItem.js
manweill/dna-ebook
import { Dimensions, StyleSheet, Text, View } from 'react-native' import { ScreenArea, Spinner } from 'components' import React from 'react' const deviceWidth = Dimensions.get('window').width export default class PagerItem extends React.PureComponent { render() { const { padding, color, fontSize, lineHeight, d...
src/routes/home/index.js
fixjs/user-management-app
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright Β© 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Home from './Home'; i...
ajax/libs/angular.js/0.9.13/angular-scenario.js
johngerome/cdnjs
/*! * jQuery JavaScript Library v1.4.2 * 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. ...
app/jsx/blueprint_courses/components/AssociationsTable.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/svg-icons/action/pan-tool.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPanTool = (props) => ( <SvgIcon {...props}> <path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4...
lib/svg-icons/device/network-cell.js
marnusw/material-ui
'use strict'; var React = require('react/addons'); var PureRenderMixin = React.addons.PureRenderMixin; var SvgIcon = require('../../svg-icon'); var DeviceNetworkCell = React.createClass({ displayName: 'DeviceNetworkCell', mixins: [PureRenderMixin], render: function render() { return React.createElement( ...
src/components/common/svg-icons/communication/chat.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationChat = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"/> </SvgIcon> ); Communicatio...
ajax/libs/shariff/1.10.0/shariff.complete.js
extend1994/cdnjs
/*! * shariff - v1.10.0 - 15.04.2015 * https://github.com/heiseonline/shariff * Copyright (c) 2015 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli * Licensed under the MIT <http://www.opensource.org/licenses/mit-license.php> license */ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]...
src/components/RouteRenderer/__tests__/testRouteRenderer.js
mixcloud/react-url-router
/* @noflow */ import React from 'react'; import RouteRenderer from '../'; import {mount} from 'enzyme'; import Urls from '../../../urls'; import RouteContext from '../../RouteContext'; const urls = new Urls({'home': '/', 'user:profile': '/u/:username/'}); const context = { router: { history: {}, l...
public/js/cat_source/es6/components/modals/ModifyTeam.js
riccio82/MateCat
import TeamConstants from '../../constants/TeamConstants' import TeamsStore from '../../stores/TeamsStore' import ManageActions from '../../actions/ManageActions' import React from 'react' class ModifyTeam extends React.Component { constructor(props) { super(props) this.state = { team: this.props.team, ...
docs/app/Examples/modules/Dropdown/index.js
mohammed88/Semantic-UI-React
import React from 'react' import Content from './Content' import States from './States' import Types from './Types' import Usage from './Usage' import Variations from './Variations' const DropdownExamples = () => ( <div> <Types /> <Content /> <States /> <Variations /> <Usage /> </div> ) expor...
components/popover/src/Popover.js
fi11/uikit
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import propTypes from 'prop-types'; import Placer from '@uikit/placer'; import PopoverContent from './PopoverContent'; export class Popover extends React.Component { static propTypes = { isShown: propTypes.bool, isAutoClosable: propT...
app/javascript/mastodon/features/ui/components/image_loader.js
Chronister/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { LoadingBar } from 'react-redux-loading-bar'; import ZoomableImage from './zoomable_image'; export default class ImageLoader extends React.PureComponent { static propTypes = { alt: PropTypes.string, s...
src/docs/examples/Label/ExampleOptionalLabel.js
zeegeek/ps-react-reusable-comp
import React from 'react'; import Label from 'rc-react/Label'; /** Optional Label */ export default function ExampleOptionalLabel() { return <Label htmlFor='test' label='test' /> }
src/svg-icons/maps/local-activity.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalActivity = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2z...
node_modules/babel-core/node_modules/babel-runtime/node_modules/core-js/client/library.js
sathrall/magic-mirror
/** * core-js 1.2.6 * 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...
src/svg-icons/image/flash-auto.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlashAuto = (props) => ( <SvgIcon {...props}> <path d="M3 2v12h3v9l7-12H9l4-9H3zm16 0h-2l-3.2 9h1.9l.7-2h3.2l.7 2h1.9L19 2zm-2.15 5.65L18 4l1.15 3.65h-2.3z"/> </SvgIcon> ); ImageFlashAuto = pure(ImageFla...
src/components/MediaList/Actions/EditMedia.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; import EditIcon from '@material-ui/icons/Edit'; import Action from './Action'; const EditMedia = ({ onEdit, ...props }) => ( <Action {...props} onAction={onEdit}> <EditIcon /> </Action> ); EditMedia.propTypes = { onEdit: PropTypes.func.isRequire...
ajax/libs/webshim/1.14.6/dev/shims/es6.js
Mrkebubun/cdnjs
// ES6-shim 0.8.0 (c) 2013 Paul Miller (paulmillr.com) // ES6-shim may be freely distributed under the MIT license. // For more details and documentation: // https://github.com/paulmillr/es6-shim/ webshim.register('es6', function($, webshim, window, document, undefined){ 'use strict'; var isCallableWithoutNew = fun...
src/shared/utils/traverseAllChildren.js
juliocanares/react
/** * 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 ...
src/app/components/mediaSigninButtons.js
webcoding/reactui-starter
import _ from 'lodash'; import React from 'react'; import authFacebook from 'resources/authFacebook'; import authGoogle from 'resources/authGoogle'; import authActions from 'actions/auth'; export default React.createClass( { getInitialState() { return { disabledButtons: { fac...
packages/material-ui-icons/src/DoneAllTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 1...
src/slides/VennDiagram.js
joshforisha/fred-talks
import Color from 'lib/Color'; import PropTypes from 'prop-types'; import React from 'react'; import SvgSlide from 'components/SvgSlide'; import adjectives from 'lib/adjectives'; import nouns from 'lib/nouns'; import pluralize from 'pluralize'; import styled from 'styled-components'; import { chance, initialize, ...
src/containers/PetitionLinksField.js
iris-dni/iris-frontend
import React from 'react'; import { stopSubmit, touch } from 'redux-form'; import { connect } from 'react-redux'; import { fetchOpenGraph, removeOpenGraph } from 'actions/OpenGraphActions'; import PetitionLinksField from 'components/PetitionLinksField'; const PetitionLinksFieldContainer = (props) => ( <PetitionLinks...
src/interface/icons/Cancel.js
FaideWW/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/search/?q=circled%20cross&i=1144421 // Created by johartcamp from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" {...other}> <path d="M 50 5 C 25.18272 5 5 25.1827 5 50 C 5 74.8173 25.18272 9...
app/containers/App/index.js
rlagman/raphthelagman
/** * * App * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; import { Helmet } from 'react-helmet'; import styled from 'styled-components'; import { Switch, Route } from 'react-router-d...
examples/src/js/AlignTopExample.js
jakezatecky/react-dual-listbox
import React from 'react'; import DualListBox from 'react-dual-listbox'; const options = [ { label: 'Earth', options: [ { value: 'luna', label: 'Moon' }, ], }, { label: 'Mars', options: [ { value: 'phobos', label: 'Phobos' }, { val...
ajax/libs/react-router/0.8.0/react-router.min.js
MisatoTremor/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.ReactRouter=e()}}(function(){var define;return functi...
client/src/components/AttachmentUpload.js
wilimitis/DoctorIQ
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; class AttachmentUpload extends React.Component { constructor(props) { super(props) this.state = { file: '' }; } handleFileChange(e) { e.preventDefault(); this.setState({ file: e.target.files[0] }); } ...
src/star/ui/withdrawFundsbutton/WithdrawFundsButton.js
flysonic10/initial-celestial-offering
import React from 'react' class withdrawFundsButton extends React.Component { render() { return( <button onClick={(event) => this.props.onWithdrawFunds(event)}>Withdraw Funds</button> ) } } export default withdrawFundsButton
docs/src/IntroductionPage.js
Terminux/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const IntroductionPage = React.createClass({ render() { return ( <div> <NavMain activePage="introduction" /> <...
app/assets/scripts/components/community-card.js
openaq/openaq.org
'use strict'; import React from 'react'; import { PropTypes as T } from 'prop-types'; import createReactClass from 'create-react-class'; /* * create-react-class provides a drop-in replacement for the outdated React.createClass, * see https://reactjs.org/docs/react-without-es6.html * Please modernize this code using...
ajax/libs/mediaelement/2.0.2/jquery.js
StoneCypher/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. ...
examples/with-atlaskit/components/DropdownMenuComponent.js
JeromeFitz/next.js
import React from 'react' import DropdownMenu, { DropdownItemGroup, DropdownItem, } from '@atlaskit/dropdown-menu' import { Label } from '@atlaskit/field-base' export default function DropdownMenuComponent() { return ( <React.Fragment> <Label label="DropdownMenu" /> <DropdownMenu trigger="Cities ...
packages/mineral-ui-icons/src/IconFastRewind.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconFastRewind(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPro...
src/svg-icons/device/signal-cellular-connected-no-internet-0-bar.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet0Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 22h2v-2h-2v2zm0-12v8h2v-8h-2z"/> </SvgIcon> ); DeviceSignalCellularC...
source/react-main.js
angelavu/isit-web-crafts-vu
import React from 'react'; import ReactDOM from 'react-dom'; import Main from './Main'; import fireReducer from './fireReducer'; import {Provider} from 'react-redux'; import {createStore} from 'redux'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; let store = createStore(fireReducer); window.onl...
packages/react/components/card-footer.js
iamxiaoma/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js'; class F7CardFooter extends React.Component { co...
node_modules/antd/es/date-picker/RangePicker.js
ZSMingNB/react-news
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
ajax/libs/yui/3.10.3/scrollview-base/scrollview-base-debug.js
simudream/cdnjs
YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview * @submodule scrollview-base */ // Local vars var getClassName = Y.ClassNameManager.getClassName, DOCUMENT = Y.config.doc, IE = Y.UA.ie...
icons/AndroidPrint.js
fbfeix/react-icons
'use strict'; var React = require('react'); var IconBase = require(__dirname + 'components/IconBase/IconBase'); var AndroidPrint = React.createClass({ displayName: 'AndroidPrint', render: function render() { return React.createElement( IconBase, null, React.createElement( 'g', null, React.cr...
tests/containers/App-test.js
jmcolella/unique-twitter-followers
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import App from '../../app/containers/App'; describe ( 'App container', () => { let app; beforeEach( () => { app = shallow( <App /> ); }); it ( 'renders to the DOM', () => { expect( app ).to.exist; }); i...
spec/javascripts/jsx/external_apps/components/ConfigurationFormUrlSpec.js
djbender/canvas-lms
/* * Copyright (C) 2017 - 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...
dapp/src/shared/components/common/layout.js
airalab/DAO-IPCI
import React from 'react' import PropTypes from 'prop-types' import Title from './title' const Layout = (props) => { const { title, menu, back, children } = props return (<div> <Title title={title} menu={menu} back={back} /> <div> {children} </div> </div>) } Layout.propT...