path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
hw6-frontend/src/components/article/article.js
brendazhao/comp531
import React from 'react' import NewArticle from './newArticle' import ArticlesView from './articlesView' //Basic structure of article module const Article = (props) => { return( <div> <NewArticle/> <br/><br/> <ArticlesView articles= {require('../...
client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-zone-header.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import Gridicon from 'gridicons'; import { localize } from 'i18n-calypso'; import { connect } from 'react-redux'; import { isNumber } from 'lodash'; /** * Internal dependencies */ import ActionHeader from...
app/index.js
y-takey/shokushu
import { ipcRenderer } from 'electron'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; import { exportJSON, importJSON } from './actions/Home...
__tests__/ImageView-test.js
testshallpass/react-native-simple-stepper
import React from 'react'; import ImageView from '../src/ImageView'; import renderer from 'react-test-renderer'; describe('ImageView', () => { describe('renders', () => { test('snapshot', () => { const wrapper = renderer.create(<ImageView />).toJSON(); expect(wrapper).toMatchSnapshot(); }); });...
packages/cmf-cqrs/src/components/ACKDispatcher/ACKDispatcher.container.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import { Map } from 'immutable'; import cmf, { cmfConnect } from '@talend/react-cmf'; import { deleteACK } from '../../actions/ack'; export const DEFAULT_STATE = new Map({}); /** * { type: 'ACK_ADD_CONTEXT', requestId: '123', data: { foo: 'bar' },...
src/components/withViewport.js
bhavik3jain/LibertyMutual320Project
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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, { Component } from 'react'; // eslint-disabl...
packages/react-dom/src/__tests__/ReactDOMServerIntegrationLegacyContextDisabled-test.internal.js
chicoxyzzy/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; const ReactDOMServerIntegrationUtils = require('./utils/ReactDOMServerIntegrationTestUtils...
ajax/libs/react-datepicker/0.30.0/react-datepicker.min.js
tholu/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("moment"),require("react"),require("react-onclickoutside"),require("react-dom")):"function"==typeof define&&define.amd?define(["moment","react","react-onclickoutside","react-dom"],e):"object"==typeof exports?exports.DatePicker=e(r...
client-web/client-web/src/containers/protected/Request.js
ppsari/final
import React from 'react' import {connect} from 'react-redux' import axios from 'axios' import { Button, Modal, ModalHeader, ModalBody, ModalFooter, FormGroup, Label, Input } from 'reactstrap'; import {acceptRequest,rejectRequest,getRequest} from '../../actions/index.js'; import Loader from '../../components/Loader.js...
src/routes/register/index.js
zjr/zjrio
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 Register from './Registe...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js
timlogemann/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(users) { return [ { id: 1, name: '1' ...
internals/templates/app.js
nadzweb/react-simple-apps
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
react-geoip/src/index.js
majalcmaj/ReactJSCourse
import React from 'react'; import ReactDOM from 'react-dom'; import './static/styles/index.css'; import App from './components/App'; import registerServiceWorker from './static/scripts/registerServiceWorker'; import {applyMiddleware, createStore} from "redux"; import {Provider} from "react-redux"; import reducers from ...
ajax/libs/analytics.js/2.3.2/analytics.min.js
magoni/cdnjs
(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n...
modules/useRouterRestoreScroll.js
jshin49/react-router-restore-scroll
import React from 'react' import RestoreWindowScroll from './RestoreWindowScroll' const useRouterRestoreScroll = () => ({ renderRouterContext: (child, props) => ( <RestoreWindowScroll restoreWindow={props.router.restoreScroll.restoreWindow} location={props.location} children={child} /> ) ...
vendor/assets/javascripts/backbone.js
ipmobiletech/backbone-rails
// Backbone.js 1.2.2 // (c) 2010-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(factory) { // Establish the root object, `window` (`se...
docs/src/modules/components/Notifications.js
Kagami/material-ui
/* eslint-disable react/no-danger */ import 'isomorphic-fetch'; import React from 'react'; import Button from '@material-ui/core/Button'; import Snackbar from '@material-ui/core/Snackbar'; import sleep from 'modules/waterfall/sleep'; import { getCookie } from 'docs/src/modules/utils/helpers'; function getLastSeenNoti...
packages/ringcentral-widgets-test/test/integration-test/settings/Feedback.spec.js
ringcentral/ringcentral-js-widget
import React from 'react'; import { shallow, mount } from 'enzyme'; import { wrap } from 'module'; import FeedbackPanel from 'ringcentral-widgets/components/FeedbackPanel'; import SettingsPanel from 'ringcentral-widgets/components/SettingsPanel'; import NavigationBar from 'ringcentral-widgets/components/NavigationBar';...
challenge6/finished/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/jquery-1.6.1.js
barberboy/node-js-workshop
/*! * jQuery JavaScript Library v1.6.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
packages/react-test-renderer/src/ReactShallowRenderer.js
flarnie/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; import {isForwardRef, isMemo, ForwardRef} from 'react-is'; import describeComponentFrame fr...
ajax/libs/video.js/4.7.2/video.dev.js
agraebe/cdnjs
/** * @fileoverview Main function src. */ // HTML5 Shiv. Must be in <head> to support older browsers. document.createElement('video'); document.createElement('audio'); document.createElement('track'); /** * Doubles as the main function for users to create a player instance and also * the main library object. * ...
client/scripts/src/app.js
lina/tictactoe
import React from 'react'; import ReactDOM from 'react-dom'; // Import components import Board from './board.jsx'; // import css stylesheet import './stylesheets/main.scss'; // render the loading screen ReactDOM.render( <Board/>, document.getElementById('tic-tac-toe-view-placeholder'));
ajax/libs/jQRangeSlider/4.2.1/jQRangeSliderBar.js
cgvarela/cdnjs
/** * jQRangeSlider * A javascript slider selector that supports dates * * Copyright (C) Guillaume Gautreau 2012 * Dual licensed under the MIT or GPL Version 2 licenses. * */ (function($, undefined){ "use strict"; $.widget("ui.rangeSliderBar", $.ui.rangeSliderDraggable, { options: { leftHandle: null, ...
src/svg-icons/av/web-asset.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvWebAsset = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H5V8h14v10z"/> </SvgIcon> ); AvWebAsset = pure(AvWebAsset); AvWebAss...
ajax/libs/jquery/1.8.2/jquery.js
kalkidanf/cdnjs
/*! * 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(...
misc/jquery.js
artiicreon/drupalbasisone
/*! * 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....
src/components/header/index.js
simpaa/s-andersson-site
import React from 'react'; import { NavLink } from 'react-router-dom'; import './header.css'; const Header = () => ( <header className="main-header"> <div className="profile-picture"></div> <h1>Simon Andersson</h1> <p><i>Creative web and mobile developer based in Dalarna, Sweden.</i></p> <nav class...
test/fixtures/webpack-message-formatting/src/index.js
Timer/create-react-app
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
ajax/libs/forerunnerdb/1.3.909/fdb-core.js
hare1039/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...
libraries/react-redux/nested-combine-reducers/src/containers/Footer.js
vivaxy/course
/** * @since 2017-05-12 12:07:09 * @author vivaxy */ import React, { Component } from 'react'; import Input from './Footer/Input'; import Button from './Footer/Button'; import Error from './Footer/Error'; class Footer extends Component { render() { return ( <div> <Input /> <Button /> ...
client/util/react-intl-test-helper.js
SwanCourses/example-app
/** * Components using the react-intl module require access to the intl context. * This is not available when mounting single components in Enzyme. * These helper functions aim to address that and wrap a valid, * English-locale intl context around them. */ import React from 'react'; import { IntlProvider, intlSha...
techCurriculum/ui/starter_code/src/components/TextInput.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...
app/todoapp/Root.js
omega-prime/omega
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { devTools, persistState } from 'redux-devtools'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import { Provider } from 'react-redux'; import createStore from './configureStore'; const store = createStore(...
examples/with-segment-analytics/pages/_app.js
BlancheXu/test
import React from 'react' import Page from '../components/Page' import App from 'next/app' export default class MyApp extends App { static async getInitialProps ({ Component, router, ctx }) { let pageProps = {} if (Component.getInitialProps) { pageProps = await Component.getInitialProps(ctx) } ...
src/components/Navbar.js
caspg/datamaps.co
import React from 'react' import Link from 'next/link' import PropTypes from 'prop-types' import routes from '@src/config/routes' import { grey100, greyDark } from '@src/styles/colors'; Navbar.propTypes = { className: PropTypes.string, children: PropTypes.element, } function Navbar(props) { const renderLinnks ...
src/web/components/CreateBoard.js
faalsh/LamaDesktop
import React from 'react'; import { connect } from 'react-redux' import * as LamaActions from '../../common/actions' import { bindActionCreators } from 'redux' import { StyleSheet, css } from 'aphrodite' class CreateBoard extends React.Component { constructor(props) { super(props); this.state = { ...
src/core/display/App/Category/Main.js
JulienPradet/pigment-store
import React from 'react' import {Match} from 'react-router' import CurrentCategory from './Current' import Component from '../Component/Main' const Category = ({category, pathname}) => { return <div> <Match exactly pattern={`${pathname}`} render={(matchProps) => <CurrentCategory category={cate...
node_modules/material-ui/svg-icons/device/signal-cellular-2-bar.js
andrycodestuffs/atom-sync-packages
'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...
react-redux-tutorial/redux-examples/todomvc/test/components/TodoItem.spec.js
react-scott/react-learn
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import TodoItem from '../../components/TodoItem' import TodoTextInput from '../../components/TodoTextInput' function setup( editing = false ) { const props = { todo: { id: 0, text: 'Use Redux', ...
src/Parser/DemonologyWarlock/Modules/Talents/Shadowflame.js
mwwscott0/WoWAnalyzer
import React from 'react'; import Module from 'Parser/Core/Module'; import Combatants from 'Parser/Core/Modules/Combatants'; import Enemies from 'Parser/Core/Modules/Enemies'; import SPELLS from 'common/SPELLS'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import SpellIcon from 'common/SpellIcon...
src/pages/tree/help/index.js
nai888/langua
import React from 'react' import { graphql, useStaticQuery } from 'gatsby' import Notice from '../../../components/notice' import Help from '../../../components/help' export const PureTreeHelp = ({ data }) => { const metadata = data?.site?.siteMetadata const toolInfo = metadata?.toolInfo?.tree return ( <He...
ajax/libs/webshim/1.14.5-RC2/dev/shims/combos/26.js
steakknife/cdnjs
/** * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill * v1.2.1 * * Copyright 2013, Moxiecode Systems AB * Released under GPL License. * * License: http://www.plupload.com/license * Contributing: http://www.plupload.com/contributing * * Date: 2014-05-14 */ /** * Compiled inline version. (Library ...
src/main.js
Caldis/react-image-slideshow
// Libs import React from 'react'; import ReactDOM from 'react-dom'; import styles from './publicStyle.css'; import Gallery from './components/Gallery/app.js'; import SlideShow from './components/Slideshow/app.js'; // Define Routes class Main extends React.Component { constructor(props){ super(props); ...
client/components/auth/signout.js
raymestalez/vertex
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as actions from '../../actions/auth'; class Signout extends Component { componentWillMount(){ // as soon as it renders - login user out console.log(">>>> src/components/auth/signout.js:"); console.log("Calling signoutUser ...
src/svg-icons/image/crop-square.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropSquare = (props) => ( <SvgIcon {...props}> <path d="M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"/> </SvgIcon> ); ImageCropSquare = pure(ImageCropSquar...
src/main.js
HackDFW/hackdfw-frontend
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { syncReduxAndRouter } from 'redux-simple-router' import routes from './routes' import Root from './containers/Root' import configureStore from './redux/configureStore' const history = ...
src/CheckboxGroup/test/CheckboxGroupStylesSpec.js
suitejs/suite
import React from 'react'; import ReactDOM from 'react-dom'; import CheckboxGroup from '../index'; import Checkbox from '../../Checkbox'; import { createTestContainer, getDOMNode, toRGB } from '@test/testUtils'; import '../styles/index'; import { getStyle } from '../../../test/testUtils'; describe('CheckboxGroup styl...
src/js/components/deployment/OvercloudInfo.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * 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...
components/Journal/Post.js
k97/node-slasher-app
import React from 'react'; import ReactMarkdown from 'react-markdown'; import { formateDate } from '../../handlers/helpers'; class JournalPost extends React.Component { constructor(props) { super(props); } componentDidMount() { // debugger } render() { const journal = this.props.detail; ...
examples/js/advance/auto-rowkey-table.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const jobs = []; const jobTypes = [ 'A', 'B', 'C', 'D' ]; function addJobs(quantity) { const startId = jobs.length; for (let i = 0; i < quantity; i++) { const id = startId + i; jo...
ajax/libs/analytics.js/2.3.13/analytics.min.js
bevacqua/cdnjs
(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n...
src/components/Header/Header.js
jackgardner/tactics
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import s from './Header.scss'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; @withStyles(s) class Header extends Component { render() { return ( <div clas...
Router_Flux/src/components/Home/Home.js
Louis0503/TestRact
import React from 'react'; const Home = () => ( <div>Home</div> ); export default Home;
ajax/libs/mini-meteor/1.0.0/mini-meteor.js
Mrkebubun/cdnjs
/* This file contains underscore, and exports * 5 core meteor packages, and their globals * * Base64 * EJSON * Meteor (a rename of Tracker/Deps, with autorun renamed to 'run') * ReactiveMap (formerly ReactiveDict) * ReactiveVar * mrt:reactive-object ReactiveObject */ /** begin underscore 1.7.0 **/ // Unders...
ajax/libs/core-js/1.2.3/library.js
keicheng/cdnjs
/** * core-js 1.2.3 * 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...
ajax/libs/rxjs/2.3.9/rx.all.compat.js
maruilian11/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...
app/mixin/StoreWatchMixin.js
haruio/haru-sdk-js
/** * Created by pheadra on 7/7/15. */ import React from 'react' var StoreWatchMixin = function(store, cb) { return { getInitialState: function(){ return cb(); }, componentDidMount: function() { store.addChangeListener(this._onChange) if(this.AfterDidMount){ this.AfterDidMoun...
docs/pages/components/checkboxes.js
kybarg/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; const req = require.context('docs/src/pages/components/checkboxes', false, /\.(md|js|tsx)$/); const reqSource = require.context( '!raw-loader!../../src/pages/components/checkboxes', false, /\.(js|tsx)$/, ); const reqP...
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleLink.js
aabustamante/Semantic-UI-React
import React from 'react' import { Breadcrumb } from 'semantic-ui-react' const BreadcrumbExampleLink = () => ( <Breadcrumb> <Breadcrumb.Section link>Home</Breadcrumb.Section> <Breadcrumb.Divider /> <Breadcrumb.Section link>Store</Breadcrumb.Section> <Breadcrumb.Divider icon='right angle' /> <Brea...
server/server.js
lorix-lpan/perfect-schedule
import Express from 'express'; import path from 'path'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.config.dev'; import webpackDevMiddleware from 'webpack-dev-middleware'; import webpackHotMiddleware from 'webpack-hot-middleware'; // Initialize the Express App const app = new...
admin/client/components/AudioSelector.js
nickhsine/keystone
'use strict'; import { parseAudioAPIResponse, parseImageAPIResponse } from '../../../lib/parseAPIResponse'; import { Button, Modal, Pagination } from 'elemental'; import qs from 'qs'; import xhr from 'xhr'; import AudioSelection from './AudioSelection'; import SelectorMixin from './mixins/SelectorMixin'; import React f...
src/main.js
skylus/tom-rrf
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import { version } from '../package.json' import { env } from './config' import './styles/core.scss' // Window Variables // ------------------------------------ window.version = version window.env = env // Store I...
node_modules/react-icons/io/ios-pause.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoIosPause = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m10 32.5v-25h6.2v25h-6.2z m13.8 0v-25h6.2v25h-6.2z"/></g> </Icon> ) export default IoIosPause
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleReversedComputer.js
mohammed88/Semantic-UI-React
import React from 'react' import { Grid } from 'semantic-ui-react' const GridExampleReversedComputer = () => ( <Grid reversed='computer' columns='equal'> <Grid.Row> <Grid.Column>Computer A Fourth</Grid.Column> <Grid.Column>Computer A Third</Grid.Column> <Grid.Column>Computer A Second</Grid.Colu...
information/blendle-frontend-react-source/app/helpers/moduleNavigationHelpers.js
BramscoChill/BlendleParser
import React from 'react'; import NavNodeItem from 'components/moduleNavigation/NavNodeItem'; import NavDropDownItem from 'components/moduleNavigation/NavDropDownItem'; import NavPopoutItem from 'components/moduleNavigation/NavPopoutItem'; import NavLinkItem from 'components/moduleNavigation/NavLinkItem'; function isA...
boxroom/archive/backup-js-surface-2018-02-19/Gruntfile.js
js-works/js-surface
module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), clean: { build: { src: ['build/*', 'dist/*'], } }, babel: { options: { moduleId: 'Surface', sourceType:...
ajax/libs/rxjs/2.2.20/rx.compat.js
BobbieBel/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...
src/routes/content/index.js
dabrowski-adam/react-isomorphic
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 Layout from '../../compo...
ajax/libs/react/0.5.2/react-with-addons.min.js
raszi/cdnjs
/** * React (with addons) v0.5.2 * * Copyright 2013 Facebook, Inc. * * 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 require...
js/components/companyAdd/index.js
bsusta/HelpdeskAppTemplate
import React, { Component } from 'react'; import { Input, Picker, Item, Footer, FooterTab, Container, Header, Title, Content, Button, Icon, Text, Left, Right, Body, List, ListItem, View } from 'native-base'; import { Actions } from 'react-native-router-flux'; import { withApollo} from 'react-apollo'; import {createCom...
js/jqwidgets/demos/react/app/grid/filterrowcustomlistitems/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let data = generatedata(500); let source = { localdata: data, datafields: ...
ajax/libs/primeui/4.1.8/primeui.js
dannyxx001/cdnjs
/** * PUI Object */ var PUI = { zindex : 1000, gridColumns: { '1': 'ui-grid-col-12', '2': 'ui-grid-col-6', '3': 'ui-grid-col-4', '4': 'ui-grid-col-3', '6': 'ui-grid-col-2', '12': 'ui-grid-col-11' }, charSet: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ012...
src/App.js
matmoi/react-adaptive-streaming
import React from 'react' import SourceSelector from './components/utils/SourceSelector.js' import VideojsPlayer from './components/VideoPlayer/Videojs/Player.js' import DashPlayer from './components/VideoPlayer/Dash/Player.js' import HLSPlayer from './components/VideoPlayer/HLS/Player.js' import { Nav, Navbar, NavItem...
docs/src/app/components/pages/components/SvgIcon/ExampleSimple.js
ngbrown/material-ui
import React from 'react'; import {blue500, red500, greenA200} from 'material-ui/styles/colors'; import SvgIcon from 'material-ui/SvgIcon'; const iconStyles = { marginRight: 24, }; const HomeIcon = (props) => ( <SvgIcon {...props}> <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" /> </SvgIcon> ); const SvgIco...
SingularityUI/SingularityTailer/example/AppRouter.js
andrhamm/Singularity
import React from 'react'; import { Router, Route, browserHistory } from 'react-router'; import App from './App'; import SandboxTailerPage from './SandboxTailerPage'; import LoadTests from './LoadTests'; const AppRouter = () => ( <Router history={browserHistory}> <Route path="/" component={App}> <Route pa...
node_modules/react-slick/src/slider.js
DaveSpivey/muttagain
'use strict'; import React from 'react'; import {InnerSlider} from './inner-slider'; import assign from 'object-assign'; import json2mq from 'json2mq'; import ResponsiveMixin from 'react-responsive-mixin'; import defaultProps from './default-props'; var Slider = React.createClass({ mixins: [ResponsiveMixin], inne...
packages/material-ui-icons/src/RemoveCircleOutlineOutlined.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" /><...
5.3.0/webpack/prod.config.js
erikras/redux-form-docs
// Webpack config for creating the production bundle. var path = require('path') var webpack = require('webpack') var CleanPlugin = require('clean-webpack-plugin') var ExtractTextPlugin = require('extract-text-webpack-plugin') var strip = require('strip-loader') var relativeAssetsPath = '../dist' var assetsPath = path...
src/layout/Column.js
HarvestProfit/harvest-profit-ui
import React from 'react'; import PropTypes from 'prop-types'; const verticalAlignClass = (align) => { if (align && align.length > 0) { return `v-${align}`; } return ''; }; const horizontalAlignClass = (align) => { if (align && align.length > 0) { return `h-${align}`; } return ''; }; /** * Rend...
packages/material-ui-icons/src/KeyboardCapslock.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let KeyboardCapslock = props => <SvgIcon {...props}> <path d="M12 8.41L16.59 13 18 11.59l-6-6-6 6L7.41 13 12 8.41zM6 18h12v-2H6v2z" /> </SvgIcon>; KeyboardCapslock = pure(KeyboardCapslock); KeyboardCapsloc...
ajax/libs/react-data-grid/0.12.14/react-data-grid.js
extend1994/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["ReactDataGrid"] = f...
__tests__/GameBoard_test.js
SashaKoro/redux-tic-tac-toe
/* eslint-disable no-undef */ import React from 'react'; import { shallow, mount } from 'enzyme'; import { colorState, colorTestStub } from '../src/constants/colorTestStub'; import GameBoard from '../src/components/GameBoard'; describe('GameBoard', () => { const props = { squareContains: ['', '', 'X', '', '', '...
src/components/Header/Header.js
NicholasAzar/ntensitycustoms
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header extends Compo...
src/App.js
rikmms/rikmms.github.io
import 'semantic-ui-css/semantic.min.css' import 'animate.css' import './App.css' import React from 'react' import { Container, Grid, Divider } from 'semantic-ui-react' import Bio from './components/bio' import Summary from './components/summary' import Articles from './components/articles' const userInfo = { photoS...
ajax/libs/rxjs/2.2.25/rx.compat.js
jonobr1/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...
src/app/components/bootstrapModalLink.js
webcoding/soapee-ui
import React from 'react'; import Portal from 'react-portal'; import BootstrapModal from 'components/bootstrapModal'; export default React.createClass({ render() { let Modal = this.props.modal; return ( <Portal openByClickOn={this.props.elementToClick} ...
src/utils/AppearTransition.js
Terrapin-Ticketing/althea
import React from 'react'; import { connect } from 'react-redux'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import './AppearTransition.scss'; export default function(ComposedComponent) { class TransitionComponent extends React.Component { constructor(props) { super(props); ...
icons/communication/call-made.js
mikamaunula/react-material-icons
'use strict'; var React = require('react'); var mui = require('material-ui'); var SvgIcon = mui.SvgIcon; var createClass = require('create-react-class'); var CommunicationCallMade = createClass({ displayName: 'CommunicationCallMade', render: function render() { return React.createElement( SvgIcon, ...
components/Deck/ContentPanel/Translation/SlideTranslationsModal.js
slidewiki/slidewiki-platform
import React from 'react'; import PropTypes from 'prop-types'; import {connectToStores} from 'fluxible-addons-react'; import FocusTrap from 'focus-trap-react'; import { FormattedMessage, defineMessages } from 'react-intl'; import { Button, Modal, Divider, TextArea, Dropdown, Segment} from 'semantic-ui-react'; import Tr...
plugins/Wallet/js/components/wallet.js
NebulousLabs/Sia-UI
import PropTypes from 'prop-types' import React from 'react' import TransactionList from '../containers/transactionlist.js' import SendButton from './sendbutton.js' import SendPrompt from '../containers/sendprompt.js' import ReceiveButton from '../containers/receivebutton.js' import ReceivePrompt from '../containers/re...
code/workspaces/web-app/src/components/app/TopBarButton.js
NERC-CEH/datalab
import React from 'react'; import { withStyles } from '@material-ui/core'; import NavLink from './NavLink'; const styles = (theme) => { const coreStyle = { borderRadius: theme.shape.borderRadius, padding: `0 ${theme.spacing(2)}px`, margin: `0 ${theme.spacing(0.5)}px`, height: theme.shape.topBarConten...
test/HotKeys/MatchingSingleHotKeysWhenAllowCombinationSubmatchesIsFalse.spec.js
Chrisui/react-hotkeys
import React from 'react'; import {mount} from 'enzyme'; import {expect} from 'chai'; import sinon from 'sinon'; import FocusableElement from '../support/FocusableElement'; import KeyCode from '../support/Key'; import {HotKeys} from '../../src/'; describe('Matching single hotkeys when allowCombinationSubmatches is f...
ajax/libs/yasgui/1.0.19/yasgui.min.js
Piicksarn/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r...
libraries/flexslider/node_modules/jquery/src/sizzle/test/jquery.js
angrycactus/social-commerce
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
client/src/app-routes.react.js
wenhao/fixed-asset
import React from 'react' import { run, Route, NotFoundRoute, DefaultRoute } from 'react-router' import { Home, User, Asset, AddAsset, NotFound, Login } from './pages' import App from './app.react' const appRoutes = ( <Route name='root' path="/" handler={App}> <DefaultRoute name='home' hand...
public/src/containers/selectArea/selectArea.js
white87332/react-redux
import React from 'react'; import { findDOMNode } from 'react-dom'; import { forIn } from 'lodash'; import PropTypes from 'prop-types'; import { addEventListener, removeEventListener } from '../../utils/event'; // import Drag from '../drag/drag'; import createSelectable from './createSelectable'; class SelectArea ext...
client/modules/App/__tests__/Components/Footer.spec.js
Dokvel/outfit_ua
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import { Footer } from '../../components/Footer/Footer'; test('renders the footer properly', t => { const wrapper = shallow( <Footer /> ); t.is(wrapper.find('p').length, 2); t.is(wrapper.find('p').first().text(), '© 2016 ...
src/pages/most-favourited-posts.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program 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, o...
src/parser/priest/shared/modules/spells/azeritetraits/Sanctum.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import { calculateAzeriteEffects } from 'common/stats'; import { formatThousands } from 'common/format'; import ItemHealin...
server/sonar-web/src/main/js/apps/account/components/Notifications.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...