path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
Web/src/modules/Blog/Blog.js
lepsalex/Mansplaining
// @flow import React from 'react' import { string, shape, object, arrayOf } from 'prop-types' import { connect } from 'react-redux' import { Link } from 'react-router-dom' import { renderRoutes } from 'react-router-config' import { fetchArticles, getArticles } from './redux' export const Blog = (props: Object) => { ...
techCurriculum/ui/solutions/5.3/src/components/CardForm.js
AnxChow/EngineeringEssentials-group
/** * Copyright 2017 Goldman Sachs. * Licensed 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/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
files/videojs/5.0.0-rc.29/video.js
cedricbousmanne/jsdelivr
/** * @license * Video.js 5.0.0-rc.29 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License...
demo/Drawer.js
szchenghuang/react-mdui
'use strict'; //############################################################################# // Stylesheets. //############################################################################# //############################################################################# // Library includes. //#########################...
examples/basic/redux-task.js
sskyy/redux-task
import React from 'react' import { Provider } from 'react-redux' import { createStore } from 'redux' import { createEnhancer, listen, name, monitor } from 'redux-task' function fetch() { return new Promise((resolve,reject) => setTimeout(()=>Math.random()>0.5 ? resolve('fetched') : reject('failed'), 1000)) } // lis...
src/components/GalleryPage/GalleryBar.js
ortadoglu/instagram
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from 'material-ui/IconButton'; import CircleIcon from 'material-ui/svg-icons/content/add-circle-outline'; import UpwardsIcon from 'material-ui/svg-icons/communication/call-made'; import IconMenu from 'material-ui/IconMenu'; import MenuItem...
src/components/page.js
DavidSunny/mastering-react
import React from 'react'; class Page extends React.Component { render() { return ( <div className='page'> {this.props.children} </div> ); } } export default Page;
src/pages/cerom.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Cerom' /> )
src/parser/deathknight/unholy/modules/features/AlwaysBeCasting.js
sMteX/WoWAnalyzer
import React from 'react'; import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SpellLink from 'common/SpellLink'; class AlwaysBeCasting ex...
src/index.js
AndrewCMartin/idb
import React from 'react'; import ReactDOM from 'react-dom'; import { render } from 'react-dom' import { BrowserRouter } from 'react-router-dom' import './index.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; import 'bootstrap/dist/css/bootstrap.css'; import App from './App'; import registerServiceWorker from...
src/app.js
TTCErembodegem/TTC-React-Front
import 'babel-core/polyfill'; import React from 'react'; import {render} from 'react-dom'; import {Provider} from 'react-redux'; import Routes from './routes.js'; import store from './store.js'; import Promise from 'bluebird'; Promise.config({ warnings: true, longStackTraces: true, cancellation: true, //monit...
components/Menu/index.js
poeti8/findrap.xyz
import React from 'react'; import Router from 'next/router'; class Menu extends React.Component { constructor() { super(); } goToPage(e) { e.preventDefault(); Router.push(e.target.getAttribute('href')); } render() { return ( <div> <nav id="menu-content"> <ul> ...
assets/js/jquery.js
vaidyasm/vawhack2013
/*! * 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/test/__tests__/reactComponentExpect-test.js
orneryhippo/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. * * @emails react-co...
client/modules/MenuBlog/components/MenuBlogList/MenuBlogList.js
lordknight1904/bigvnadmin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Table, Checkbox, Button } from 'react-bootstrap'; import { fetchMenuBlog, toggleTopic } from '../../MenuBlogActions'; import { getMenuBlogs, getCurrentPage } from '../../MenuBlogReducer'; import...
ajax/libs/aui/5.6.5/aui/js/aui-dependencies.js
likang/cdnjs
!function(){"use strict";function a(c,d){p||(p=new o(function(b){b.forEach(function(b){a.init(b.addedNodes),f(b.removedNodes)})}),p.observe(document,{childList:!0,subtree:!0})),d||(d={}),"function"==typeof d&&(d={insert:d}),l(d,a.defaults);var e=m(c,d);d.ready&&n.sheet.insertRule(c+":not(."+d.classname+"),["+c+"]:not(....
react/features/base/testing/components/TestHint.android.js
jitsi/jitsi-meet
/* @flow */ import React, { Component } from 'react'; import { Text } from 'react-native'; import { connect } from '../../redux'; import type { TestHintProps } from './AbstractTestHint'; import { _mapStateToProps } from './AbstractTestHint'; /** * The Android version of <code>TestHint</code>. It will put the ident...
node_modules/yo/node_modules/yeoman-environment/node_modules/inquirer/node_modules/rx/src/core/perf/operators/never.js
pascalgrimaud/jhipster-lib
var NeverObservable = (function(__super__) { inherits(NeverObservable, __super__); function NeverObservable() { __super__.call(this); } NeverObservable.prototype.subscribeCore = function (observer) { return disposableEmpty; }; return NeverObservable; }(ObservableBase)); /** ...
new-lamassu-admin/src/components/TableLabel.js
lamassu/lamassu-server
import { makeStyles } from '@material-ui/styles' import classnames from 'classnames' import React from 'react' import { Label1 } from './typography' const useStyles = makeStyles({ wrapper: { display: 'flex', alignItems: 'center' }, colorIndicator: { borderRadius: 3, height: 12, width: 12, ...
clients/packages/admin-client/src/mobilizations/widgets/__plugins__/pressure/components/settings-menu.spec.js
nossas/bonde-client
/* eslint-disable no-unused-expressions */ import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import { SettingsMenu } from '../../../../../mobilizations/widgets/__plugins__/pressure/components'; describe('client/mobilizations/widgets/__plugins__/pressure/components/settings-me...
src/routes/home/Home.js
chaudhryjunaid/chaudhryjunaid.com
/** * 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 PropTypes from 'prop-...
vendor/bower/highcharts/highmaps.src.js
hieupham0206/yii-cloudteam-app
/** * @license Highmaps JS v5.0.10 (2017-03-31) * * (c) 2011-2016 Torstein Honsi * * License: www.highcharts.com/license */ 'use strict'; (function(root, factory) { if (typeof module === 'object' && module.exports) { module.exports = root.document ? factory(root) : factory; ...
src/popup/components/Pack/Delete.js
victorvoid/fluany
/** * @fileOverview A component to delete a pack * @name Delete.js * @license GNU General Public License v3.0 */ import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { removePackage } from 'actions/pack' import { changeMessage } from 'actions/flags' import Toolt...
src/containers/ProfilePage.js
great-design-and-systems/cataloguing-app
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; export class ProfilePage extends React.Component { render() { return null; } } ProfilePage.propTypes = { security: PropTypes.object.isRequired }; function mapStateToProps(state) { return { ...
ajax/libs/6to5/1.11.8/browser.js
abbychau/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return...
WasteApp/js/components/spinner/index.js
airien/workbits
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Button, Icon, Spinner } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import styles from './styles'; class NHSpinner extends Component { // eslint-disable-line stat...
public/packages/datatables/js/jquery.js
shudhy/projectketiga
/*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | 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 wind...
packages/mui-icons-material/lib/AutoFixOffRounded.js
oliviertassinari/material-ui
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
src/components/App/App.js
dryror/javascript-boilerplate
import React from 'react'; import styles from './App.css'; import CounterButton from '../../containers/CounterButton'; import GreetingText from '../../containers/GreetingText'; const App = () => <div className={styles.root}> <GreetingText /> <CounterButton /> </div>; export default App;
src/components/activity/screens/ActivityDisplay/views/ActivityDisplayView.js
yasavbrain/yasav
import React from 'react'; import { Container, Content, Text, Button, Footer, FooterTab } from 'native-base'; import I18n from 'yasav/locales/i18n'; import moment from 'moment'; import { GenericHeader } from 'yasav/src/viewElements/shared/Header'; import 'moment/locale/fr'; import Style from '../styles/style.js'; mome...
src/components/App.react.js
rudionrails/signup-widget-react-mobx
import React from 'react'; // components import Header from './Header.react'; import Signup from './Signup.react'; import Success from './Success.react'; import { observer } from 'mobx-react'; const App = observer(({ onClose, store, }) => ( <div className="jsw-container"> <Header onClose={onClose} /> <...
components/time-picker/header.js
TDFE/td-ui
/** * @Author: Zhengfeng.Yao <yzf> * @Date: 2017-06-21 09:57:06 * @Last modified by: yzf * @Last modified time: 2017-06-21 09:57:09 */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; class Header extends Component { static propTypes = { format:...
src/components/__tests__/ui/list-test.js
GlenHughes/thegymbuddy
/** * Test to check if the component renders correctly */ /* global it expect */ import 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; import { List, ListItem } from '@ui'; it('List renders correctly', () => { const tree = renderer.create( <List> <ListItem title={...
src/components/form/Input.js
pekkis/react-training-broilerplate
import React from 'react'; import cx from 'classnames'; const Input = props => { const { styles, block, validationState, reference, ...rest } = props; const classes = cx( styles.input, styles[validationState], { [styles.block]: block, } ); return ( <input ref={reference} className={c...
src/svg-icons/action/loyalty.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLoyalty = (props) => ( <SvgIcon {...props}> <path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86....
src/index.js
localvore-today/react-validator
import React from 'react'; import { find, isArray } from 'lodash'; import validator from './validator'; export default function withFormValidations(WrappedComponent, inputs, redux, validations) { return class extends React.Component { state = { inputs: inputs.map(i => { i.validations = new validato...
app/javascript/mastodon/features/ui/components/bundle_column_error.js
hugogameiro/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import Column from './column'; import ColumnHeader from './column_header'; import ColumnBackButtonSlim from '../../../components/column_back_button_slim'; import IconButton from '../../../components/...
spec/javascripts/components/story/expanded_story/expanded_story_attachments_spec.js
Codeminer42/cm42-central
import React from 'react'; import { shallow, mount } from 'enzyme'; import ExpandedStoryAttachments from 'components/story/ExpandedStory/ExpandedStoryAttachments'; import storyFactory from '../../../support/factories/storyFactory'; describe('<ExpandedStoryAttachments />', () => { const defaultProps = overrideProps =...
ajax/libs/yui/3.9.0/event-custom-base/event-custom-base.js
Dervisevic/cdnjs
YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @mo...
__tests__/index.android.js
jaghit/ecc
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
analysis/druidferal/src/modules/spells/ThrashHitCount.js
yajinni/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import { STATISTIC_ORDER } from 'parser/ui/StatisticBox'; import { t } from '@lingui/macro'; import HitCountAoE from '../core/HitCountAoE'; /** * Even with its DoT, thrash shouldn't be used against a single target ...
docs/app/Examples/elements/Image/Usage/index.js
vageeshb/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ImageUsageExamples = () => ( <ExampleSection title='Usage'> <ComponentExample title='Children' description='An ...
screens/HomeScreen.js
Helena-High/school-app
import React from 'react'; import { Image, Linking, Platform, ScrollView, StyleSheet, Text, TouchableOpacity, View, } from 'react-native'; import { MonoText } from '../components/StyledText'; export default class HomeScreen extends React.Component { static route = { navigationBar: { title: ' ...
examples/src/components/ValuesAsNumbersField.js
urvashi01/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var ValuesAsNumbersField = React.createClass({ displayName: 'ValuesAsNumbersField', propTypes: { label: React.PropTypes....
examples/src/components/SelectedValuesField.js
miraks/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var SelectedValuesField = React.createClass({ displayName: 'SelectedValuesField', propTypes: { allowCreate: React.PropTy...
app/containers/Salesman/index.js
hlex/vms
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; // ====================================================== // Hoc // ====================================================== // import withAudio from '../../hoc/...
ajax/libs/es6-shim/0.20.3/es6-shim.js
gswalden/cdnjs
/*! * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com) * and contributors, MIT License * es6-shim: v0.20.2 * see https://github.com/paulmillr/es6-shim/blob/master/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-...
src/components/Heading.js
andreypopp/sitegen
/** * @copyright 2016-present, Sitegen team * @flow */ import React from 'react'; import {Heading as BaseHeading} from 'reactdown/components'; import Ref from 'reactdown/lib/directives/ref'; type Props = { children: React.Element; name?: string; Component?: ReactClass<{}>; refStyle?: Object; }; export def...
web-ui/src/common/snackbar_notification/snackbar_notification.js
pixelated-project/pixelated-user-agent
/* * Copyright (c) 2017 ThoughtWorks, Inc. * * Pixelated 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, either version 3 of the License, or * (at your option) any later version. * * Pixelated i...
ajax/libs/froala-editor/1.1.9/js/libs/jquery-1.10.2.min.js
humbletim/cdnjs
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
src/components/UserCard/UserCard.js
not-bad-react/not-bad-react-starter
import React from 'react'; import styles from './UserCard.scss'; type Props = { info: Object }; const UserCard = ({ info }: Props) => ( <div className={styles.UserCard}> <h4>User Card</h4> <ul> <li>Name: {info.name}</li> <li>Phone: {info.phone}</li> <li>Email: {info.email}</li> <li>...
go-betz/src/views/add-credits/index.js
FabioFischer/go-betz
import React from 'react'; import { TextField } from 'material-ui'; import { AuthenticatedButton } from './../../components'; import { wallet, ls } from './../../services'; class AddCredits extends React.Component { state = { value: '' }; handleOnChange = (e, newValue) => this.setState({ value: newValue ...
actor-apps/app-web/src/app/components/ActivitySection.react.js
WangCrystal/actor-platform
import React from 'react'; import classNames from 'classnames'; import { ActivityTypes } from 'constants/ActorAppConstants'; import ActivityStore from 'stores/ActivityStore'; import UserProfile from 'components/activity/UserProfile.react'; import GroupProfile from 'components/activity/GroupProfile.react'; const getS...
ajax/libs/zxcvbn/1.0.6/zxcvbn.js
terrymun/cdnjs
(function(){var x,p,s,y,I,J,K,L,M,N,O,P,z,q,A,Q,R,S,T,U,V;O=function(b){var a,c;c=[];for(a in b)c.push(a);return 0===c.length};z=function(b,a){return b.push.apply(b,a)};U=function(b,a){var c,e,f,d,g;d=b.split("");g=[];e=0;for(f=d.length;e<f;e++)c=d[e],g.push(a[c]||c);return g.join("")};Q=function(b,a){var c,e,f,d;d=[];...
src/components/Spinner.js
CookPete/instagram-insights
import React from 'react' import classNames from './Spinner.scss' export default function Spinner () { return <div className={classNames.spinner} /> }
IntegrationTests/IntegrationTestsApp.js
colinramsay/react-native
/** * 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...
ajax/libs/clappr/0.0.70/clappr.js
rivanvx/cdnjs
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);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)...
ui/src/containers/Visualisations/TemplateStreamInteractionsVsEngagement/Viewer.js
LearningLocker/learninglocker
import React from 'react'; import PropTypes from 'prop-types'; import SourceResults from 'ui/containers/VisualiseResults/SourceResults'; import XvsYChartResults from 'ui/containers/VisualiseResults/XvsYChartResults'; /** * @param {string} props.visualisationId * @param {boolean} props.showSourceView */ const Viewe...
examples/js/column-filter/number-filter-with-default-value.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
example/index.ios.js
georgest/react-native-select-list
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, TouchableWithoutFeedback } from 'react-native'; import { Select, Option } from 'react-native-select-list'; export default ...
jest-setup.js
smartercleanup/shareabouts
import Enzyme from "enzyme"; import Adapter from "enzyme-adapter-react-16"; import "raf/polyfill"; // https://github.com/i18next/react-i18next/issues/417 jest.mock("react-i18next", () => ({ // this mock makes sure any components using the translate HoC receive the t function as a prop translate: () => Component =>...
node_modules/material-ui/lib/svg-icons/image/crop-rotate.js
DocWave/Doc-tor
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin'); var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi...
packages/material-ui-icons/src/CardMembershipOutlined.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="M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V4h16v6z" /></g></Rea...
web/static/js/components/MysteriesPage.js
ryo33/Yayaka19
import React from 'react' import { connect } from 'react-redux' import { Segment, Header, Dimmer, Loader } from 'semantic-ui-react' import { mysteriesPageSelector } from '../selectors.js' import { userPage } from '../pages.js' import PostList from './PostList.js' const mapStateToProps = state => { const { user: pag...
ajax/libs/6to5/2.0.2/browser-polyfill.js
rileyjshaw/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...
examples/flux-utils-todomvc/js/app.js
Binzzzz/flux
/** * Copyright (c) 2014, 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. * * @flow */ 'use s...
vendor/assets/javascripts/jquery.cleditor.js
aibrahim/social_stream-base
/** @preserve CLEditor WYSIWYG HTML Editor v1.3.0 http://premiumsoftware.net/cleditor requires jQuery v1.4.2 or later Copyright 2010, Chris Landowski, Premium Software, LLC Dual licensed under the MIT or GPL Version 2 licenses. */ // ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS // @...
games/jab/game3/src/scripts/modules/Navigation.js
jabrena/ReactLab
import React from 'react' import { Link } from 'react-router' export default React.createClass({ render() { return ( <nav className="navbar navbar-light bg-faded"> <button className="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target="#navbar-header" aria-controls="navb...
blueocean-material-icons/src/js/components/svg-icons/image/photo-size-select-actual.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImagePhotoSizeSelectActual = (props) => ( <SvgIcon {...props}> <path d="M21 3H3C2 3 1 4 1 5v14c0 1.1.9 2 2 2h18c1 0 2-1 2-2V5c0-1-1-2-2-2zM5 17l3.5-4.5 2.5 3.01L14.5 11l4.5 6H5z"/> </SvgIcon> ); ImagePhotoSizeSelectActual.displayName = 'Imag...
docs/src/pages/components/expansion-panels/ControlledExpansionPanels.js
kybarg/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import ExpansionPanel from '@material-ui/core/ExpansionPanel'; import ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails'; import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary'; import Typography fro...
ajax/libs/react-router/2.5.2/ReactRouter.min.js
AMoo-Miki/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactRouter=t(require("react")):e.ReactRouter=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].e...
src/components/MemoryGridView.js
dixitc/cherry-web-portal
import React,{Component} from 'react'; import {connect} from 'react-redux'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import { push } from 'react-router-redux'; import dummyImg from '../images/test.png'; import { ...
src/svg-icons/navigation/fullscreen.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFullscreen = (props) => ( <SvgIcon {...props}> <path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/> </SvgIcon> ); NavigationFullscreen = pure(NavigationFullscre...
src/pages/banner-iframe.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import Head from 'next/head'; import { FormattedMessage } from 'react-intl'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import MembersWithData from '../components/MembersWithData'; import withData from '../lib/withData'; impor...
ajax/libs/material-ui/4.9.3/esm/ListSubheader/ListSubheader.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 withStyles from '../styles/withStyles'; import capitalize from '../utils/ca...
docs/app/Examples/elements/Loader/Variations/LoaderExampleInlineCentered.js
mohammed88/Semantic-UI-React
import React from 'react' import { Loader } from 'semantic-ui-react' const LoaderExampleInlineCentered = () => ( <Loader active inline='centered' /> ) export default LoaderExampleInlineCentered
node_modules/react-dom/lib/reactComponentExpect.js
tintintick/ReactGallery
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ 'use strict...
src/tests/index.js
Mapker/react-range-input
import React from 'react'; import { mount } from 'enzyme'; import Range from '../index'; import { expect } from 'chai'; import sinon from 'sinon'; const { describe, it } = global; /* onMouseMove */ describe('Range', () => { it('should handle the click event', () => { const clickMe = sinon.stub(); // Here we...
src/svg-icons/social/people-outline.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPeopleOutline = (props) => ( <SvgIcon {...props}> <path d="M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25zm-4 4.5h-10v-1.25c0-.54 2.56-1.7...
node_modules/react-icons/lib/io/fork.js
bengimbel/Solstice-React-Contacts-Project
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
packages/showcase/plot/faux-radial-scatterplot.js
uber-common/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
Lab4/app.js
prpatel/react-workshop-day1
import React from 'react'; import ReactDOM from 'react-dom'; import moment from 'moment' import Bootstrap from 'react-bootstrap'; import Jumbotron from 'react-bootstrap/lib/Jumbotron'; var Button = require('react-bootstrap').Button; import Panel from 'react-bootstrap/lib/Panel' class LunchApp extends React.Component {...
src/components/sections/Testimonial.js
eddiesmithjr/eddiesmithjr.github.io
import React from 'react'; import classNames from 'classnames'; import { SectionTilesProps } from '../../utils/SectionProps'; import SectionHeader from './partials/SectionHeader'; const propTypes = { ...SectionTilesProps.types } const defaultProps = { ...SectionTilesProps.defaults } const Testimonial = ({ clas...
js/routes/routes.js
ugeHidalgo/relay-treasurehunt
import React from "react"; import { //Router, Route, IndexRoute } from "react-router"; //import {createHashHistory} from 'history'; import {RelayRouter} from 'react-router-relay'; import Main from '../components/main/main'; import Home from '../components/home/home'; import Competition from '../components/com...
src/entry.js
thojan02/my-first-jsp-app
/** * src/entry.js */ console.log('We are live!'); import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/app'; import App2 from './components/app2'; ReactDOM.render(React.createElement(App2), document.getElementById('root'));
public/app/components/window-content.js
vincent-tr/mylife-home-ui
'use strict'; import React from 'react'; import Control from './control'; function getStyleSize(window) { const { height, width } = window; return { height, width }; } const WindowContent = ({ window, onActionPrimary, onActionSecondary }) => ( <div style={getStyleSize(window)} className="mylife-window-contain...
src/components/Gallery/Gallery.js
wundery/wundery-ui-react
import React from 'react'; import classnames from 'classnames'; import { Progress } from '../Progress'; const Gallery = (props) => { const { children, progress, header: headerContent } = props; const progressBar = progress ? ( <div className="ui-gallery-progress"> <Progress progress={progress} /> </...
node_modules/method-override/node_modules/debug/browser.js
Augment-Arcade/augmentarcade.github.io
/** * This is the web browser implementation of `debug()`. * * Expose `debug()` as the module. */ exports = module.exports = require('./debug'); exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = 'undefined' != typeof chro...
src/components/client/HomePage.js
PtitNoony/abretonworkshop
'use strict'; import React from 'react'; import { Link } from 'react-router-dom'; import PagePreview from './PagePreview'; export const HomePage = () => ( <div className="reactPageContainer"> <div className="abw_homePage"> <div className="abw_homeLeft"> ...
client/auth/LoginForm.js
bryanph/Geist
import React from 'react' import { FlatButton } from '../app/components/button' import { InputEmail, InputPassword, ValidateInput } from '../app/components/input' import fetchJSON from './utils/fetch' import getHeaders from './headers' const styles = { container: { margin: '1rem auto', display: '...
src/components/SearchPage/SearchResults/index.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import SearchResult from '../SearchResult' import ErrorBoundary, { withErrorBoundary } from 'components/ErrorBoundary' const SearchResults = (props) => { if (props.items && props.items.length > 0) { const items = props.items.map((item, index) => { ...
examples/real-world/index.js
claydiffrient/redux
import 'babel-core/polyfill'; import React from 'react'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from './store/configureStore'; import App from './containers/App'; import UserPage fro...
node_modules/semantic-ui-react/src/views/Comment/CommentText.js
SuperUncleCat/ServerMonitoring
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * A comment can contain text. */ function CommentText(props) { const { className, children } = props const classes = cx(class...
local-cli/generator/templates/__tests__/index.ios.js
nickhudkins/react-native
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 /> ); });
libraries/react.js
vanHeemstraSystems/kick
import React from 'react'; export default new React();
packages/material-ui-icons/src/LocationOnRounded.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="M12 2C8.13 2 5 5.13 5 9c0 4.17 4.42 9.92 6.24 12.11.4.48 1.13.48 1.53 0C14.58 18.92 19 13.17 19 9c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2...
src/front/app/common/components/create/FormHeader.spec.js
travel-and-help/start-kit
import React from 'react'; import FormHeader from './FormHeader'; import { mount } from 'enzyme'; const chai = require('chai'), expect = chai.expect; describe('FormHeader', () => { let sut; let goBack; beforeEach(() => { goBack = env.spy(); sut = mount(<FormHeader headerTitle="Create ...
example/users-localDB/config/webpack.config.prod.js
tomsonTang/redux-saga-model
'use strict'; const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); const ProgressBarPlugin = require('progress-bar-webpack-plugin'); const autoprefixer = require('autoprefixer'); const HtmlW...
app/admin/post/PostList.js
ecellju/internship-portal
import React from 'react'; import { Card, Container } from 'semantic-ui-react'; import PropTypes from 'prop-types'; import PostItem from '../../common/post/PostItem'; import './styles.scss'; const PostList = props => ( <div className="post-list-container"> <Container text > <Card.Group> {props.pos...
test/jest/path.js
keajs/kea
import { kea, resetContext } from '../../src' import './helper/jsdom' import React from 'react' beforeEach(() => { resetContext() }) describe('path', () => { test('works with and without function', () => { const logic1 = kea({ path: ['this', 'is', 'logic1'], key: (props) => props.id, }) c...