path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
app/javascript/mastodon/components/display_name.js
salvadorpla/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; export default class DisplayName extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, others: ImmutablePropTypes.list, localDomain: PropTyp...
src/components/DeveloperMenu.js
jacktuck/registr
import React from 'react'; import {View} from 'react-native'; // For tests const DeveloperMenu = () => <View/>; export default DeveloperMenu;
src/svg-icons/device/battery-20.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery20 = (props) => ( <SvgIcon {...props}> <path d="M7 17v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17H7z"/><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7...
svg-icons/file/create-new-folder.js
janmarsicek/material-ui
'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...
ajax/libs/rxjs/2.2.21/rx.lite.extras.js
x112358/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, ...
ajax/libs/yui/3.10.0/datatable-core/datatable-core-coverage.js
Dervisevic/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/datatable-core/datatable-core.js']) { __coverage__['build/datatable-core/datatable-core.js'] = {"path":"build/datatable-core/datatable-core.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13"...
src/components/DictList/Groups.js
GuramDuka/reorders
//------------------------------------------------------------------------------ import React, { Component } from 'react'; import connect from 'react-redux-connect'; import * as Sui from 'semantic-ui-react'; import disp, { nullLink } from '../../store'; //----------------------------------------------------------------...
anubis/ui/components/scratchpad/ToolbarComponent.js
KawashiroNitori/Anubis
import React from 'react'; import classNames from 'classnames'; export default function ToolbarComponent(props) { const { className, children, ...rest, } = props; const cn = classNames(className, 'scratchpad__toolbar flex-row flex-cross-center'); return ( <div {...rest} ...
src/pages/Home/Home.js
cdtinney/cdtinney.github.io
import React from 'react'; import PropTypes from 'prop-types'; import DefaultLayout from '../../layouts/DefaultLayout'; import Brand from '../../components/Brand'; import ContactCard from '../../components/ContactCard'; import PageLinks from '../../components/PageLinks'; import classes from './Home.module.css'; exp...
src/Parser/Monk/Windwalker/Modules/Items/T21_4set.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import calculateEffectiveDamage from 'Parser/Core/calculateEffectiveDa...
src/daypicker/DayPicker.js
buildo/react-semantic-datepicker
import React from 'react'; import t from 'tcomb'; import { props } from 'tcomb-react'; import View from 'react-flexview'; import { pure, skinnable } from '../utils'; import { Value, Mode, MomentDate } from '../utils/model'; import DayPickerTop from './DayPickerTop'; import DayPickerBody from './DayPickerBody'; @pure @...
src/svg-icons/action/record-voice-over.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRecordVoiceOver = (props) => ( <SvgIcon {...props}> <circle cx="9" cy="9" r="4"/><path d="M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm7.76-9.64l-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2....
ajax/libs/angular.js/0.10.4/angular.js
nolanlawson/cdnjs
/** * @license AngularJS v0.10.4 * (c) 2010-2011 AngularJS http://angularjs.org * License: MIT */ 'use strict'; (function(window, document, undefined){ //////////////////////////////////// if (typeof document.getAttribute == $undefined) document.getAttribute = function() {}; /** * @ngdoc function * @name ang...
src/examples/firstCourse/style.js
AugustinLF/react-training
import cx from 'classnames'; import React from 'react'; import ReactDOM from 'react-dom'; import './style.css'; const ElementWithClasses = ({text, selected}) => { const classes = cx('element-with-classes', { 'element-with-classes--selected': selected, }); return <div className={classes}>{text}</di...
public/_admin/assets/plugins/flot/jquery.min.js
atticus88/MediaCloud
/*! 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===...
docs/src/app/components/pages/components/FloatingActionButton/Page.js
rscnt/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 floatingButtonReadmeText from './README'; import floatingButtonExampleSim...
src/routes.js
codingbox/isomorphic-react-redux-tutorial
/* eslint react/jsx-filename-extension: 0 */ import React from 'react'; import { IndexRoute, Route } from 'react-router'; import { App, Home, NotFound, } from './containers'; export default (store) => { // eslint-disable-line return ( <Route path="/" component={App}> { /* Home (main) route */ } ...
ajax/libs/forerunnerdb/1.3.52/fdb-core+views.min.js
rlugojr/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
examples/demos/dndresource.js
intljusticemission/react-big-calendar
import React from 'react' import { Calendar } from 'react-big-calendar' import withDragAndDrop from 'react-big-calendar/lib/addons/dragAndDrop' import 'react-big-calendar/lib/addons/dragAndDrop/styles.scss' const DragAndDropCalendar = withDragAndDrop(Calendar) const events = [ { id: 0, title: 'Board meetin...
js/setup.js
kwoumn3/khemet
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import App from './App'; import configureStore from './configureStore'; function setup():React.Component { class Root extends Component { constructor() { super(); this.state = { isLoading: false, store...
ajax/libs/react-datetime/3.0.0-alpha.2/react-datetime.js
sufuf3/cdnjs
/* react-datetime v3.0.0-alpha.1 https://github.com/YouCanBookMe/react-datetime MIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("React")...
src/common/routes.js
MatthewKosloski/server-side-react
import React from 'react'; import { browserHistory, Route, Router, IndexRoute } from 'react-router'; import App from './components/App'; import UserListContainer from './containers/UserListContainer'; const routes = ( <Router history={browserHistory}> <Route path="/" component={App}> <IndexRoute component={Use...
src/components/Feedback/Feedback.js
ziedAb/PVMourakiboun
/** * 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 withStyles from 'isom...
ajax/libs/primereact/6.6.0-rc.1/avatar/avatar.esm.js
cdnjs/cdnjs
import React, { Component } from 'react'; import { classNames, ObjectUtils } from 'primereact/core'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var ...
src/js/components/tag/articlelist.js
axuebin/react-blog
import React from 'react'; import PropTypes from 'prop-types'; import ArticleListItem from './articlelistitem'; import { COLOR_BLOG_CATEGORY, COLOR_LABEL_CATEGORY } from '../../constants/config'; export default class ArticleList extends React.Component { constructor() { super(); this.getTagData = this.getTag...
packages/ringcentral-widgets-docs/src/app/pages/Components/ConversationMessageList/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import ConversationMessageList from 'ringcentral-widgets/components/ConversationMessageList'; const props = {}; props.messages = [ { creationTime: '2017-06-14T07:53:56.000Z', id: 1234, direction: 'Outbound', subject: 'How are you?', }, { ...
app/index.js
romankhrystynych/raspitron
// @flow import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app...
ajax/libs/forerunnerdb/2.0.5/fdb-core.js
cdnjs/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...
test/DropdownSpec.js
bbc/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Dropdown from '../src/Dropdown'; import DropdownMenu from '../src/DropdownMenu'; import MenuItem from '../src/MenuItem'; import { shouldWarn } from './helpers'; import keycode from 'keycode'; class CustomMenu extends React.Compone...
tests/react_native_tests/test_data/native_code/Component/storybook/stories/UserConnect/index.js
ibhubs/sketch-components
import React from 'react' import { storiesOf } from '@storybook/react-native' import { action } from '@storybook/addon-actions' import { linkTo } from '@storybook/addon-links' import UserConnect from 'app/components/UserConnect' storiesOf('UserConnect', module) .add('default', () => ( <UserConnect buttonName={...
src/component/base/label/label.js
babizhu/webApp
/** * Created by liu_k on 2015/11/27. */ import React, { Component } from 'react'; import styles from './label.scss'; class Label extends Component { render() { const dot = this.props.text; return ( <span className="label bg-success-400">{this.props.text}</span> ); } } Label.propTypes = ...
static/src/components/Home/index.js
dternyak/React-Redux-Flask
import React from 'react'; export const Home = () => <section> <div className="container text-center"> <h1>Hello</h1> </div> </section>;
ajax/libs/rxjs/2.2.26/rx.js
bryantrobbins/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 }; v...
yycomponent/form/Form.js
77ircloud/yycomponent
import React from 'react'; import { Form as _Form, } from 'antd'; const messages = { "default": 'Validation error on field %s', required: '%s不能为空', "enum": '%s must be one of %s', whitespace: '%s不能有空格', date: { format: '%s date %s is invalid for format %s', parse: '%s date could not be parsed, %s is ...
js/jquery.min.js
Anyway-Design/Anyway-Tab
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return...
src/components/e30.js
prexsa/m3specs
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { Button, Divider, Header, Image, List, Menu } from 'semantic-ui-react'; import Navigation from './Navigation'; import GearRatio from './GearRatio'; import OverView from './overview'; import Pre...
src/parseRoutes.js
UgnisSoftware/react-subrouter
import React from 'react'; /** Example: <SubRoute handler={Pending}> <SubRoute name="deposit" handler={Deposit}> // trailingName <SubRoute name="card" handler={Card}/> // default subroute for "deposit" (first in a list) <SubRoute name="bank" handler={Bank}/> </SubRoute> <SubRoute name=...
src/svg-icons/image/texture.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTexture = (props) => ( <SvgIcon {...props}> <path d="M19.51 3.08L3.08 19.51c.09.34.27.65.51.9.25.24.56.42.9.51L20.93 4.49c-.19-.69-.73-1.23-1.42-1.41zM11.88 3L3 11.88v2.83L14.71 3h-2.83zM5 3c-1.1 0-2 .9-2 ...
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
dsaved/africhat-platform-0.1
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; import ActorClient from 'utils/ActorClient'; import Inputs from 'utils/Inputs'; import { Styles, FlatButton } from 'material-ui'; import { KeyCodes...
js/comments.min.js
msoma-ke/msoma-ke.github.io
/* BSD License For React software Copyright (c) 2013-present, Facebook, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright noti...
app/components/Loading/index.js
vollmerr/app-hub
import React from 'react'; import PropTypes from 'prop-types'; import ErrorMessage from './ErrorMessage'; import LoadingMessage from './LoadingMessage'; // https://www.npmjs.com/package/react-loadable class Loading extends React.PureComponent { render() { const { text, loading, isLoading, timedOut, pastDelay, ...
src/components/series/SeriesList.js
IvoPaunov/stremio-demo-app
import React, {PropTypes} from 'react'; import SerieListBox from './SerieListBox'; const SeriesList = ({series, onChange}) => { return ( <div className="metas-list-container"> <div className="row"> {series.map(serie => <SerieListBox key={serie.imdb_id} serie={serie} onChange={onChange}/>...
src/__tests__/components/MessageSection.js
isuruAb/chat.susi.ai
import React from 'react'; import MessageSection from '../../components/ChatApp/MessageSection/MessageSection.react'; import { shallow } from 'enzyme'; it('render MessageListItem without crashing', () => { shallow(<MessageSection />); })
client/src/components/Session/withAuthorization.js
googleinterns/Pictophone
import React from 'react'; import { withRouter } from 'react-router-dom'; import { compose } from 'recompose'; import AuthUserContext from './context'; import { withFirebase } from '../Firebase'; import * as ROUTES from '../../constants/routes'; const withAuthorization = condition => Component => { class WithAuthor...
ajax/libs/react/0.9.0/react-with-addons.js
ppoffice/cdnjs
/** * React (with addons) v0.9.0 */ !function(e){if("object"==typeof exports)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.React=e()}}(function(){var define,module,expor...
ajax/libs/pusher/4.2.1/react-native/pusher.js
jdh8/cdnjs
/*! * Pusher JavaScript Library v4.2.1 * https://pusher.com/ * * Copyright 2017, Pusher * Released under the MIT licence. */ module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function ...
src/Tabs.js
15lyfromsaturn/react-materialize
import React from 'react'; import cx from 'classnames'; import Row from './Row'; import Col from './Col'; class Tabs extends React.Component { componentDidMount() { if (typeof $ !== 'undefined') { $(this.tabsEl).tabs() } } _onSelect(idx, e) { if (this.props.hasOwnProperty('onChange')) { ...
ajax/libs/abcjs/1.3/abcjs_plugin-min.js
seogi1004/cdnjs
/*! jQuery v1.7.2 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 cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde...
information/blendle-frontend-react-source/app/modules/premiumSignup/containers/Publications.js
BramscoChill/BlendleParser
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import AltContainer from 'alt-container'; import { get } from 'lodash'; import Analytics from 'instances/analytics'; import { track } from 'helpers/premiumOnboardingEvents'; import SignUpActions from 'actions/SignUpActions'; import FavoritePr...
ajax/libs/material-ui/4.9.2/esm/FilledInput/FilledInput.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { refType } from '@material-ui/utils'; import InputBase from '../InputBase'...
blueocean-material-icons/src/js/components/svg-icons/editor/show-chart.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorShowChart = (props) => ( <SvgIcon {...props}> <path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/> </SvgIcon> ); EditorShowChart.displayName = 'EditorShowChart'; EditorShowChart.muiName = 'SvgIcon'; export defau...
node_modules/babel-preset-react-hmre/test/Test.js
kaizensauce/campari-app
import React from 'react' export default class Test extends React.Component { render() { return ( <div>Winning?</div> ) } }
Examples/TicTacToe/TicTacToeApp.js
slongwang/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, ...
ajax/libs/angular.js/0.9.16/angular-scenario.js
jdh8/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. ...
web/static/js/application.js
everydayhoodie/phoenix-trello-notes
import React from 'react'; import ReactDOM from 'react-dom'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import configureStore from './store'; import Root from './containers/root'; const store = configureStore(browserHistory); const history = syncHistoryWit...
src/native/components/Header.js
TeodorKolev/Help
import React from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import { Text, H1 } from 'native-base'; import Spacer from './Spacer'; const Header = ({ title, content }) => ( <View> <Spacer size={25} /> <H1>{title}</H1> {!!content && <View> <Spacer size=...
src/svg-icons/action/view-list.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewList = (props) => ( <SvgIcon {...props}> <path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"/> </SvgIcon> ); ActionViewList = pure(ActionViewList); Actio...
src/sites/all/modules/contrib/devel/jquery-1.4.4-uncompressed.js
codigociudadano/codigociudadano.com.ar
/*! * jQuery JavaScript Library v1.4.4 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
ajax/libs/angular-google-maps/2.1.0-X.2/angular-google-maps_dev_mapped.js
lobbin/cdnjs
/*! angular-google-maps 2.1.0-X.2 2015-03-10 * AngularJS directives for Google Maps * git: https://github.com/angular-ui/angular-google-maps.git */ ; (function( window, angular, undefined ){ 'use strict'; /* ! The MIT License Copyright (c) 2010-2013 Google, Inc. http://angularjs.org Permission is hereby grante...
app/javascript/mastodon/features/list_adder/components/account.js
tateisu/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import DisplayName from...
ajax/libs/forerunnerdb/1.3.699/fdb-core+views.js
redmunds/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
ajax/libs/rxjs/2.2.22/rx.lite.extras.js
Timbioz/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, ...
src/svg-icons/image/photo-library.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoLibrary = (props) => ( <SvgIcon {...props}> <path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/>...
ui/generic/_footer.js
sakulstra/firebase-nextjs-mobx
import React from 'react' import Link from 'next/prefetch' const Footer = () => ( <footer className='footer'> <Link href='/impressum'><a>Impressum</a></Link> </footer> ) export default Footer
ajax/libs/F2/1.3.3/f2.js
suy/cdnjs
;(function(exports) { if (exports.F2 && !exports.F2_TESTING_MODE) { return; } /*! JSON.org requires the following notice to accompany json2: Copyright (c) 2002 JSON.org http://json.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d...
test/fixtures/mjs-support/src/index.js
jdcrensh/create-react-app
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
webclient/auth/register.js
souravDutta123/Cognitive-Assistant
import React from 'react' import axios from 'axios'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; import Divider from 'material-ui/Divider'; import FontIcon from 'material-ui/FontIcon'; import DatePicker from 'materi...
src/svg-icons/content/content-copy.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentContentCopy = (props) => ( <SvgIcon {...props}> <path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/> </SvgIcon> );...
src/components/Notification/a11yIconWarningSolid.js
wfp/ui
import React from 'react'; const a11yWarningIcon = (prefix, notificationType) => ( <svg className={`${prefix}--${notificationType}-notification__icon`} width="20" height="20" xmlns="http://www.w3.org/2000/svg"> <defs> <path d="M18.05 15.95L9.925.95a.625.625 0 0 0-1.1 0L.7 15.95a.625...
ajax/libs/material-ui/5.0.0-alpha.4/useMediaQuery/useMediaQuery.js
cdnjs/cdnjs
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = useMediaQuery; var _extends2 = _interopRequir...
src/scripts/views/form/index.js
AatuPitkanen/teamboard-client-react
import page from 'page'; import React from 'react'; import Broadcaster from '../../components/broadcaster'; import FormData from '../../views/form/form-map'; import BroadcastAction from '../../actions/broadcast'; import localeMixin from '../../mixins/locale'; /** * */ export default React.createClas...
src/components/common/svg-icons/device/battery-charging-90.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging90 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h5.47L13 7v1h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L12...
src/svg-icons/file/cloud-off.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudOff = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-...
__tests__/index.ios.js
sotayamashita/wizardsLifeCounter
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
app/javascript/mastodon/features/ui/components/follow_requests_nav_link.js
cobodo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { fetchFollowRequests } from 'mastodon/actions/accounts'; import { connect } from 'react-redux'; import { NavLink, withRouter } from 'react-router-dom'; import IconWithBadge from 'mastodon/components/icon_with_badge'; import { List as ImmutableList }...
react-native-life/ReactNativeLife/js/APIs/Animated/AnimatedExample.js
CaMnter/front-end-life
/** * @author CaMnter */ import React from 'react'; import { Animated, Easing, StyleSheet, Text, View } from 'react-native'; import RNTesterButton from '../../../RNTester/js/RNTesterButton'; const examples = { pagerTitle: 'Animated examples', pagerBlocks: [ { title: '...
18-react-router-redux/src/components/repos.js
iproduct/course-node-express-react
import React from 'react'; import { PropTypes } from 'prop-types'; import Repo from './repo'; import { Route } from 'react-router-dom'; import { connect } from 'react-redux'; const Repos = (props) => { return ( <div> <h2>Repos</h2> <Route path="/repos/:userName/:repoName" component={Repo} /> ...
html.js
pcm-ca/pcm-ca.github.io
import React from 'react' import Helmet from 'react-helmet' import { prefixLink } from 'gatsby-helpers' import { TypographyStyle, GoogleFont } from 'react-typography' import typography from './utils/typography' const BUILD_TIME = new Date().getTime() module.exports = React.createClass({ propTypes () { return {...
ajax/libs/core-js/2.0.0-alpha/library.js
sufuf3/cdnjs
/** * core-js 2.0.0-alpha * 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 req...
src/svg-icons/hardware/keyboard-hide.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardHide = (props) => ( <SvgIcon {...props}> <path d="M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H...
client/src/components/ContentWrapper/index.js
steThera/react-mobx-koa
import React from 'react'; import './style.less'; class ContentWrapper extends React.Component { componentDidMount() { $.AdminLTE.layout.activate(); // eslint-disable-line no-undef } render() { return ( <div className="content-wrapper"> { React.Children.toArray(this.props.children) } ...
src/svg-icons/image/music-note.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageMusicNote = (props) => ( <SvgIcon {...props}> <path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/> </SvgIcon> ); ImageMusicNote = pure(ImageMusicNote); ImageM...
src/ShowActivitySubHeader/index.js
DuckyTeam/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import LabelSmall from '../LabelSmall'; import Wrapper from '../Wrapper'; import classNames from 'classnames'; import styles from './styles.css'; function ShowActivitySubHeader(props) { return ( <div className={classNames(styles.wrapper, {[props.clas...
app/javascript/mastodon/features/ui/components/onboarding_modal.js
kagucho/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ReactSwipeableViews from 'react-swipeable-views'; import classNames from 'cl...
app/client/main.js
dshook/issue-viewer
import React from 'react'; import babel from 'babel/polyfill'; import { Router, Route, Link } from 'react-router'; import { history } from 'react-router/lib/HashHistory'; import Layout from './views/Layout.jsx'; import IssueList from './views/IssueList.jsx'; import Issue from './views/Issue.jsx'; // Finally we render...
demo/src/index.js
Psykar/react-filtered-multiselect
import 'bootstrap/dist/css/bootstrap.min.css' import 'bootstrap/dist/css/bootstrap-theme.min.css' import React from 'react' import {render} from 'react-dom' import FilteredMultiSelect from '../../src/index' import CULTURE_SHIPS from './ships.json' const BOOTSTRAP_CLASSES = { filter: 'form-control', select: 'form...
packages/mcs-lite-landing-web/src/components/SVG/SVGTooltip.js
MCS-Lite/mcs-lite
/** * svgtoreact * * @author Michael Hsu */ import React from 'react'; export default function SVGTooltip(props) { return ( <svg width={83} height={50} viewBox="0 0 83 50" {...props}> <g> <path d="M46.076 41l-4.517 6.677c-.307.454-.81.457-1.119 0l-4.517-6.677h-32.924c-1.103 0-1.997-....
src/components/NotFound/NotFound.react.js
uday96/chat.susi.ai
import React, { Component } from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import { Link } from 'react-router-dom'; import './NotFound.css'; import LogoImg from '../../images/susi-logo.svg'; import UserPreferencesStore from '../../stores/UserPreferencesStore'; import Login from '../Auth/Login/Login....
src/App.js
Neil-G/Volume-Calculator
import React, { Component } from 'react'; import Tooltip from 'rc-tooltip'; export class App extends Component { constructor(props) { super(props); this.state = cleanForm(); } render() { const { decimals, area, roof, paved, grass, roofCoef, pavedCoef, grassCoef, porousAsphault, porousAsphaultCoef, un...
src/components/RightSideBar.js
caesai/medialeaks
import React from 'react'; import rightsidebanner from '../img/rightsidebanner.jpg'; import sidebarbanner from '../img/sidebarbanner.jpg'; export default class RightSideBar extends React.Component { constructor(props) { super(props); } componentDidMount(){ } render() { return( <div className="...
Filter.js
baosen/horribletime
import React from 'react'; import { InputGroup, FormControl, Glyphicon } from 'react-bootstrap'; import { margin } from './Show.css' let callbacks = []; // callbacks containing functions to call on filter change. // Register a callback to signal changes to the filter input. export function register(cb) { callback...
node_modules/react-icons/md/devices-other.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdDevicesOther = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35 30v-13.4h-6.6v13.4h6.6z m1.6-16.6c0.9 0 1.8 0.7 1.8 1.6v16.6c0 0.9-0.9 1.8-1.8 1.8h-10c-0.8 0-1.6-0.9-1.6-1.8v-16.6c0-0.9 0.8-1.6 1.6-1.6h10z m-18.2 15.7c1.4...
.eslintrc.js
skystebnicki/chamel
module.exports = { env: { browser: true, es6: true, }, extends: ['eslint:recommended', 'plugin:react/recommended', 'prettier'], parser: 'babel-eslint', plugins: ['prettier', 'react'], rules: { 'prettier/prettier': 'error', }, };
example/main.js
ubergrape/react-visibility-sensor
'use strict'; var React = require('react'); var ReactDOM = require('react-dom') var VisibilitySensor = require('../'); var Example = React.createClass({ getInitialState: function () { return { msg: '' }; }, onChange: function (isVisible) { this.setState({ msg: 'Element is now ' + (isVisible ? 'vi...
ajax/libs/elfinder/2.1.14/js/i18n/elfinder.nl.min.js
joeyparrish/cdnjs
elFinder&&elFinder.prototype&&"object"==typeof elFinder.prototype.i18&&(elFinder.prototype.i18.nl={translator:"Barry vd. Heuvel &lt;barry@fruitcakestudio.nl&gt;",language:"Nederlands",direction:"ltr",dateFormat:"d-m-Y H:i",fancyDateFormat:"$1 H:i",messages:{error:"Fout",errUnknown:"Onbekend fout.",errUnknownCmd:"Onbeke...
src/_examples/App.js
beestripes/react-highcharts-wrapper
import React from 'react'; import { BrowserRouter as Router, Route, Switch, Redirect } from 'react-router-dom'; import routes from './routesMap'; const App = () => { return ( <div className="App"> <Router> <div> <sidebar> <a href="https://react-highcharts-wrapper.fi...
ajax/libs/reactable/0.9.6/reactable.min.js
jonathantneal/cdnjs
"use strict";(function(a,b){if(typeof define==="function"&&define.amd){define(["react"],b)}else{if(typeof exports==="object"){module.exports=b(require("react"))}else{a.Reactable=b(a.React)}}}(this,function(b){var e={};if(!Array.prototype.map){Array.prototype.map=function(y,x){var r,q,s;if(this==null){throw new TypeErro...
docs/src/pages/demos/selection-controls/Switches.js
cherniavskii/material-ui
import React from 'react'; import Switch from 'material-ui/Switch'; class Switches extends React.Component { state = { checkedA: true, checkedB: true, }; handleChange = name => event => { this.setState({ [name]: event.target.checked }); }; render() { return ( <div> <Switch ...
packages/flow-upgrade/src/upgrades/0.53.0/ReactUtilityTypes/__tests__/codemod-test.js
MichaelDeBoey/flow
/** * @format */ 'use strict'; const path = require('path'); const fs = require('fs'); const cp = require('child_process'); const jscodeshiftFlowParser = require('jscodeshift/parser/flow'); const jscodeshift = require('jscodeshift').withParser(jscodeshiftFlowParser); const transform = require('../codemod'); const ...
src/components/App/App.js
dstirling/MyApp
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ 'use strict'; import './App.less'; import React from 'react'; import invariant from 're...