path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/svg-icons/av/replay-10.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay10 = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.1 11H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0 .6-.1....
assets/jqwidgets/demos/react/app/listbox/multipleselection/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxListBox from '../../../jqwidgets-react/react_jqxlistbox.js'; class App extends React.Component { componentDidMount() { this.refs.myListBox.selectIndex(2); this.refs.myListBox.selectIndex(5); this.refs.myListBox.selectI...
ajax/libs/muicss/0.4.8/react/mui-react.js
dlueth/cdnjs
(function (global) { var babelHelpers = global.babelHelpers = {}; babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeo...
src/routes/Legal/index.js
humaniq/humaniq-pwa-website
import React from 'react'; import {Route} from 'react-router' import LegalRoute from './Legal.js' const Legal = ( <Route path='legal' prepareData={LegalRoute.prepareData}> <Route path="general-privacy-policy" component={LegalRoute} section="general-privacy-policy"/> <Route path="data-privacy-policy" componen...
spec/pivotal-ui-react/draggable-list/draggable-list_spec.js
npm/pivotal-ui
require('../spec_helper'); import {itPropagatesAttributes} from '../support/shared_examples'; describe('DraggableList', function() { var DraggableList, DraggableListItem, subject, dragEndSpy, props; beforeEach(function() { DraggableList = require('../../../src/pivotal-ui-react/draggable-list/draggable-list').D...
client/javascript/modules/components/like-button.js
eiriklv/express-basic-app
/** @jsx React.DOM */ 'use strict'; var React = require('react'); module.exports = React.createClass({ displayName: 'LikeButton', getInitialState: function() { return { liked: false, disabled: false }; }, handleClick: function(event) { // if the actio...
ajax/libs/yui/3.10.0pr1/datatable-core/datatable-core.js
wout/cdnjs
YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @since 3.5.0 **/ var INVALID = Y.Attribute.INVALID_VALUE, Lang = Y.Lang, isFunction = Lang.isFunction, isObject = Lang.isO...
ajax/libs/vis/0.7.2/vis.js
LorenzoBoccaccia/cdnjs
/** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 0.7.2 * @date 2014-04-09 * * @license * Copyright (C) 2011-2014 Almende B.V, http://almende.com * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file e...
flow-typed/npm/redbox-react_vx.x.x.js
TheoMer/Gyms-Of-The-World
// flow-typed signature: 52b4e79481063adc03c58d82b140fcbe // flow-typed version: <<STUB>>/redbox-react_v^1.0.5/flow_v0.38.0 /** * This is an autogenerated libdef stub for: * * 'redbox-react' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with ...
ajax/libs/yui/3.17.2/datatable-core/datatable-core.js
j0k3r/cdnjs
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @sinc...
src/render/split_pane/Resizer.js
kura52/sushi-browser
import React, { Component } from 'react'; import Prefixer from 'inline-style-prefixer'; const USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Safari/537.2'; const defaultPrefixer = new Prefixer({ userAgent: USER_AGENT }) const defaultResizerClassName = 'Resizer' export default functi...
ajax/libs/yui/3.10.3/simpleyui/simpleyui-debug.js
mzdani/cdnjs
/** The YUI module contains the components required for building the YUI seed file. This includes the script loading mechanism, a simple queue, and the core utilities for the library. @module yui @main yui @submodule yui-base **/ /*jshint eqeqeq: false*/ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The...
src/components/views/dialogs/BugReportDialog.js
martindale/vector
/* Copyright 2017 OpenMarket Ltd 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 in writing, software ...
examples/with-scoped-stylesheets-and-postcss/pages/index.js
callumlocke/next.js
import React from 'react' import Head from 'next/head' import {stylesheet, classNames} from './styles.css' export default () => ( <p className={classNames.paragraph}> <Head><style dangerouslySetInnerHTML={{__html: stylesheet}} /></Head> bazinga </p> )
src/routes/settings/index.js
AaronHartigan/DudeTruck
import React from 'react'; import Layout from '../../components/Layout'; import SettingsVendor from '../../components/Settings/Vendor'; import SettingsUser from '../../components/Settings/User'; import isLoggedIn from '../../core/authorization'; import { userTypes, loggedOutRedirect } from '../../constants'; const tit...
packages/material-ui-icons/src/RouterOutlined.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 fill="none" d="M0 0h24v24H0V0z" /><g><path d="M16 4.2c1.5 0 3 .6 4.2 1.7l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2z" /><p...
test/specs/modules/Accordion/Accordion-test.js
Rohanhacker/Semantic-UI-React
import faker from 'faker' import React from 'react' import Accordion from 'src/modules/Accordion/Accordion' import AccordionContent from 'src/modules/Accordion/AccordionContent' import AccordionTitle from 'src/modules/Accordion/AccordionTitle' import * as common from 'test/specs/commonTests' import { consoleUtil, sand...
src/views/Profile/index.js
GetExpert/redux-blog-example
/* eslint-env browser, node */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import Spinner from 'components/Spinner'; // import qs from 'qs'; // import axios from 'axios'; // import ActionTypes from 'constants'; // import { // logout, // updateProfile // } from 'actions'; cla...
packages/material-ui-icons/lib/esm/FlipCameraIosTwoTone.js
mbrookes/material-ui
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon([/*#__PURE__*/_jsx("path", { d: "M14.12 5H9.88L8.05 7H4v12h16V7h-4.05l-1.83-2zM12 18c-2.76 0-5-2.24-5-5H5l2.49-2.49.01-.01L10 13H8c0 2.21 1.79 4 4 4 .58 0 1.13-.13 1.62-.35l.74.74c-.71.37-1...
src/react/Accordion.js
onap-sdc/sdc-ui
import React from 'react'; import PropTypes from 'prop-types'; import SVGIcon from './SVGIcon.js'; class Accordion extends React.Component { constructor(props) { super(props); this.state = { open: props.defaultExpanded }; } render() { const { children, title, cla...
App/Client/node_modules/react-router/modules/Redirect.js
qianyuchang/React-Chat
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { formatPattern } from './PatternUtils' import { falsy } from './PropTypes' const { string, object } = React.PropTypes /** * A <Redirect> is used to declare another URL path a client should ...
code/workspaces/web-app/src/pages/SignUpPage.spec.js
NERC-CEH/datalab
import React from 'react'; import { render } from '@testing-library/react'; import SignUpPage from './SignUpPage'; jest.mock('../components/welcome/SignUp', () => () => (<div>SignUp mock</div>)); describe('SignUpPage', () => { it('renders correct snapshot', () => { expect(render(<SignUpPage />).container).toMat...
node_modules/react-bootstrap/lib/TabPane.js
Technaesthetic/ua-tools
'use strict'; exports.__esModule = true; var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProper...
docs/app/Examples/elements/Image/Variations/ImageExampleBordered.js
aabustamante/Semantic-UI-React
import React from 'react' import { Image } from 'semantic-ui-react' const ImageExampleBordered = () => ( <Image src='/assets/images/wireframe/white-image.png' size='medium' bordered /> ) export default ImageExampleBordered
src/svg-icons/action/rounded-corner.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRoundedCorner = (props) => ( <SvgIcon {...props}> <path d="M19 19h2v2h-2v-2zm0-2h2v-2h-2v2zM3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm0-4h2V3H3v2zm4 0h2V3H7v2zm8 16h2v-2h-2v2zm-4 0h2v-2h-2v2zm4 0h2v-2h-2v...
src/carousel.js
rgerstenberger/nuka-carousel
'use strict'; import React from 'react'; import tweenState from 'react-tween-state'; import decorators from './decorators'; import assign from 'object-assign'; import ExecutionEnvironment from 'exenv'; React.initializeTouchEvents(true); const addEvent = function(elem, type, eventHandle) { if (elem == null || typeo...
ajax/libs/jquery/1.4.3/jquery.min.js
hagabaka/cdnjs
/*! * jQuery JavaScript Library v1.4.3 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
app/javascript/mastodon/features/ui/components/drawer_loading.js
Craftodon/Craftodon
import React from 'react'; const DrawerLoading = () => ( <div className='drawer'> <div className='drawer__pager'> <div className='drawer__inner' /> </div> </div> ); export default DrawerLoading;
src/__tests__/index_test.js
amirmadani/react-autolink-text
import React from 'react'; import ReactTestUtils from 'react-addons-test-utils'; import AutoLinkText from '../index'; const {renderIntoDocument, createRenderer} = ReactTestUtils; describe('<AutoLinkText />', function() { let renderer; beforeEach(function() { renderer = createRenderer(); }); function ren...
imports/plugins/included/social/client/templates/dashboard/social.js
hrath2015/reaction
import { Packages } from "/lib/collections"; Template.socialSettings.helpers({ packageData() { return Packages.findOne({ name: "reaction-social" }); }, checkboxAtts() { return { class: "checkbox-switch" }; } }); AutoForm.hooks({ "social-update-form": { onSuccess() { A...
src/panes/components/AddProviderDialog.js
trezy/eidetica
// Module imports import { Consumer, Step, Wizard, } from '@fuelrats/react-ratzard' import React from 'react' // Component imports // import ChooseProviderType from './Wizards/ChooseProviderType' import { addCustomProvider } from '../../modules/common' import ChooseProviderType from './Wizards/ChooseProvider...
node_modules/react-icons/ti/eject.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const TiEject = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m21.7 29.2c-4.2 0-7.5-3.4-7.5-7.5 0-1-0.8-1.7-1.7-1.7s-1.7 0.7-1.7 1.7c0 5.9 4.9 10.8 10.9 10.8s10.8-4.9 10.8-10.8-4.9-10.9-10.8-10.9c-1 0-1.7 0.8-1.7 1.7s0.7 1.7 1.7 1...
packages/react-scripts/template/src/index.js
DivineGod/create-react-app
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
ajax/libs/yasr/2.2.4/yasr.bundled.min.js
visualjeff/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASR=e()}}(function(){var e;return function t(e,n,r){...
demeter/src/components/FoodItem.js
moonclash/demeter
import React from 'react'; export default function FoodItem(props) { return (<div className="food-item"> <h4>{props.name}</h4> <p>{props.calories} kcal</p> <div className="macros"> <span className="macro-square protein">{props.protein}g</span> <span cla...
Examples/UIExplorer/AccessibilityAndroidExample.android.js
bsansouci/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, ...
www/src/layouts/LandingPage.js
haneev/react-widgets
import PropTypes from 'prop-types'; import React from 'react'; import Navbar from 'react-bootstrap/lib/Navbar'; import SubNavbar from '../components/SubNavbar'; import WidgetNav from '../components/WidgetNav'; const _ = less` .widget-nav { box-shadow: 0 2px 2px rgba(0, 0, 0, .20); } `; const propTypes = { ...
ajax/libs/ember-data.js/1.0.0-beta.11/ember-data.js
wormful/cdnjs
(function(global){ var define, requireModule, require, requirejs; (function() { var _isArray; if (!Array.isArray) { _isArray = function (x) { return Object.prototype.toString.call(x) === "[object Array]"; }; } else { _isArray = Array.isArray; } var registry = {}, seen = {}, state = {}; ...
vendor/bower/tinymce-dist/plugins/legacyoutput/plugin.js
rinodung/yii2-cms-writedown
/** * plugin.js * * Released under LGPL License. * Copyright (c) 1999-2015 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing * * This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements, al...
src/routes/index.js
hanyulo/twreporter-react
// polyfill webpack require.ensure for node environment if (typeof require.ensure !== 'function') require.ensure = (d, c) => c(require) import App from '../containers/App' import React from 'react' import Route from 'react-router/lib/Route' import Router from 'react-router/lib/Router' import browserHistory from 'react...
node_modules/antd/es/steps/index.js
yhx0634/foodshopfront
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import PropTypes ...
packages/material-ui-icons/src/ShopRounded.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="M16 6V4c0-1.1-.9-2-2-2h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-4zm-6-2h4v2h-4V4zM9 17.07V9.8...
src/pages/plus.js
getinsomnia/website
import React from 'react'; import mainSrc from '../assets/screens/main.png'; import Helmet from 'react-helmet'; import Link from '../components/link'; import Companies from '../partials/companies'; export default () => ( <React.Fragment> <Helmet> <body data-template="skinny" data-navbar="floating" /> <...
src/svg-icons/maps/directions-railway.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsRailway = (props) => ( <SvgIcon {...props}> <path d="M4 15.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V5c0-3.5-3.58-4-8-4s-8 .5-8 4v10.5zm8 1.5c-1.1 0-2-.9-2-2s.9-2 2...
local-cli/templates/HelloWorld/__tests__/index.android.js
imjerrybao/react-native
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 /> ); });
src/components/mainPanel/goodsbox/GoodsInfo.js
EyEder/TM-Shop
import React from 'react'; import ReactDOM from 'react-dom' class GoodsInfo extends React.Component { render() { const { goodsName, timestamp } = this.props; return ( <div className="goodsInfo"> <p className="goodsIntro">{goodsName}</p> <p className="timestamp">{timestamp}</p> </div> ) ...
src/components/EditableSelectInput/EditableSelectInput.stories.js
austinknight/ui-components
import React from "react"; import { storiesOf } from "@storybook/react"; import EditableSelectInput from "./"; import { wrapComponentWithContainerAndTheme, colors } from "../styles"; const darkExample = { height: "220px", backgroundColor: "#2a434a", padding: "16px" }; const genericOptions = [ { value: "1", ...
src/index.js
plastical/react-theme
/* global PlasticalSettings, PlasticalData, PlasticalMenu, jQuery */ // Load in the babel (es6) polyfill, and fetch polyfill import 'babel-polyfill'; const isEdge = /Edge\//.test(navigator.userAgent); if (isEdge) window.fetch = undefined; // ensure the polyfill runs require('isomorphic-fetch'); // exports to global if...
demo04/js/react.js
hfutlyz/react-exp-demos
/** * React v15.4.1 */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}...
packages/material-ui-icons/src/BookSharp.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 2H4v20h16V2zM6 4h5v8l-2.5-1.5L6 12V4z" /></g></React.Fragment> , 'BookSharp');
src/svg-icons/notification/no-encryption.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationNoEncryption = (props) => ( <SvgIcon {...props}> <path d="M21 21.78L4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23 21 21.78zM8.9 6c0-1.71 1.39-3.1 3.1...
bower_components/backbone/backbone.js
woodylewis/wls-mebn
// Backbone.js 1.1.0 // (c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc. // (c) 2011-2013 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(...
a6/js/jquery-1.8.2.min.js
moriarty/infx1606
/*! jQuery v1.8.2 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==...
src/components/swatches/SwatchesGroup.js
JedWatson/react-color
'use strict' /* @flow */ import React from 'react' import ReactCSS from 'reactcss' import SwatchesColor from './SwatchesColor' export class SwatchesGroup extends ReactCSS.Component { constructor() { super() this.handleClick = this.handleClick.bind(this) } classes(): any { return { 'default...
src/client/components/Home.js
josh--newman/blog
import React from 'react'; import { Link } from 'react-router'; import { SideBar } from './Shared'; import MainContent from './MainContent'; const links = [ <Link key='about' to='/'>About this blog</Link>, <Link key='12ppm' to='/'>12PPM challenge</Link>, <Link key='admin' to='/signin'>Sign in</Link> ]; const st...
src/main/resources/src/js/App.js
OSBI/meteorite-core-ui
/** * Copyright 2016 OSBI Ltd * * 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 ...
packages/material-ui-icons/src/RvHookupRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M21 17h-1v-6c0-1.1-.9-2-2-2H7v-.74c0-.46-.56-.7-.89-.37L4.37 9.63c-.2.2-.2.53 0 .74l1.74 1.74c.33.33.89.1.89-.37V11h4v3H5c-.55 0-1 .45-1 1v2c0 1...
src/svg-icons/notification/drive-eta.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDriveEta = (props) => ( <SvgIcon {...props}> <path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 ...
js/customer/VerifyPhone.js
BarberHour/barber-hour
import React, { Component } from 'react'; import { View, Text, StyleSheet, StatusBar, TextInput, Platform, TouchableOpacity } from 'react-native'; import { connect } from 'react-redux'; import t from 'tcomb-form-native'; const Form = t.form.Form; import Button from '../common/Button'; import Main from '...
app/containers/Institution/Institution.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import get from 'lodash.get'; import isEmpty from 'lodash.isempty'; import { InstitutionView } from '../../components/Institution'; import { getBoundariesEntities, getLanguages, getInstitutionCate...
test/app.spec.js
yeppao/cozy-passwords
'use strict' /* eslint-env jest */ import React from 'react' import { shallow } from 'enzyme' import App from '../src/components/App' describe('App component only', () => { it('should be mounted correctly', () => { const component = shallow(<App />).getElement() expect(component).toMatchSnapshot() }) })...
node_modules/material-ui/svg-icons/content/clear.js
knguyen1/kylecodes
'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...
client/test/components/PageCenter.spec.js
andela-iamao/iamdocuman
/* global expect:true */ /* global shallow:true */ /* global mount:true */ import React from 'react'; // eslint-disable-line no-unused-vars import PageCenter from '../../src/components/reusable/PageCenter.component.jsx'; describe('<PageCenter />', () => { it('should use material css classes to align vertically', () ...
example/ListToggle.js
glenjamin/devboard
import React from 'react'; var ListToggle = React.createClass({ options: ['Food Processor', 'Fondue Set', 'Cuddly Toy', 'Dinner Service'], getInitialState() { var n = parseInt(this.props.default); return { current: n >= 0 ? n : 2 }; }, render() { var current = this.state.current; return ( ...
client/layout/Footer.js
mpsoftware/experiments
import React from 'react' import { Button } from 'react-toolbox/lib/button'; export default React.createClass({ render () { return ( <section id="footer"> </section> ) } })
public/assets/scripts/components/resources/actions/embed.js
luisfbmelo/reda
import React from 'react'; import { Component } from 'react'; export default class EmbedIcon extends Component { constructor(props){ super(props); } componentDidMount(){ } render() { return ( <div className="media__action"> <i className="fa fa-code"></i> </div> ); } }
src/routes/Counter/components/Counter.js
dima-bu/b2b.core
import React from 'react'; export const Counter = (props) => ( <div style={{margin: '0 auto'}} > <h2>Counter: {props.counter}</h2> <button className='btn btn-default' onClick={props.increment}> Increment </button> {' '} <button className='btn btn-default' onClick={props.doubleAsync}> ...
code/frontend/src/components/AdminPanel/Tabs/PayGrades.js
CPSC319-2017w1/coast.the-terminal
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import PanelWrapper from '../Panel'; import * as TYPES from '../../../constants/input-types.js'; import { addNewRow } from '../../../actions/add-tables-actions.js'; import { editRow } from '../../../actions/edit-tables...
app/scripts/components/Notifications.react.js
darbio/auth0-roles-permissions-dashboard-sample
import React from 'react'; import Router from 'react-router'; import Notification from '../partials/Notification.react'; import ApplicationActions from '../actions/ApplicationActions'; import NotificationActions from '../actions/NotificationActions'; import NotificationStore from '../stores/NotificationStore'; export...
client/src/components/DevTools.js
vfeskov/win-a-beer
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" default...
src/components/markdown/text.js
Hacker0x01/react-storybook-addon-info
import React from 'react'; import { baseFonts } from '../theme'; export class P extends React.Component { render() { const style = { ...baseFonts, fontSize: 15, }; return <p style={style}>{this.props.children}</p>; } } export class LI extends React.Component { render() { const style ...
packages/react-reconciler/src/ReactFiberContext.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 type {Fiber} from './ReactFiber'; import type {StackCursor} from './ReactFiberStack'; import {isFiberMounted} ...
packages/icons/src/md/av/Airplay.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdAirplay(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M42 5H6C3.8 5 2 6.8 2 9v24c0 2.2 1.8 4 4 4h8v-4H6V9h36v24h-8v4h8c2.2 0 4-1.8 4-4V9c0-2.2-1.8-4-4-4zM12 43h24L24 31 12 43z" /> </IconBase> ); } ...
src/svg-icons/editor/format-line-spacing.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatLineSpacing = (props) => ( <SvgIcon {...props}> <path d="M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm4-2v2h12V5H10zm0 14h12v-2H10v2zm0-6h12v-2H10v2z"/> </SvgIcon> ); EditorFormatLineSpacing =...
spec/javascripts/jsx/gradebook/default_gradebook/components/GradebookMenuSpec.js
djbender/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/App.js
breyana/huge-manatee-to-do-list
import React, { Component } from 'react'; import logo from '../public/huemanatee.gif'; import './App.css'; import List from './List' import TodoForm from './TodoForm' class App extends Component { constructor(props) { super(props) this.state = { items: [] } } componentWillMount() { this.g...
src/components/Account/OAuthLogin/OAuthLogin.container.js
shayc/cboard
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { FormattedMessage, injectIntl, intlShape } from 'react-intl'; import { login } from '../Login/Login.actions'; import messages from './OAuthLogin.messages'; import { getUser } from '../../App/App.selectors'; imp...
assets/javascripts/kitten/components/graphics/logos/kkbb-co/index.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' import { computeFromRatio } from '../../../../helpers/utils/ratio' export const KkbbCoLogo = ({ width, height, ...props }) => { const DEFAULT_WIDTH = 399 const DEFAULT_HEIGHT = 65 const computed = computeFromRatio({ defaultWidth: DEFAULT_WIDTH, ...
ui/src/main/js/components/JobHistory.js
medallia/aurora
import React from 'react'; import PanelGroup from 'components/Layout'; import { Tab } from 'components/Tabs'; import TaskList from 'components/TaskList'; import { sort } from 'utils/Common'; import { getLastEventTime, isActive } from 'utils/Task'; export default function ({ pendingReasons, tasks }) { const termina...
src/pages/404.js
mnbbrown/mnbbrown.github.io
import React from 'react'; import Layout from '../components/layout'; import SEO from '../components/seo'; const NotFoundPage = ({ location }) => ( <Layout> <SEO title="404: Not found" location={location} /> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout...
ajax/libs/react-native-web/0.14.10/cjs/exports/ActivityIndicator/index.js
cdnjs/cdnjs
"use strict"; exports.__esModule = true; exports.default = void 0; var _StyleSheet = _interopRequireDefault(require("../StyleSheet")); var _View = _interopRequireDefault(require("../View")); var _react = _interopRequireWildcard(require("react")); function _getRequireWildcardCache() { if (typeof WeakMap !== "functi...
client/BucketList/index.ios.js
raynormw/bucket-list
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class BucketList extends Component { render() { return ( <View style={styles.containe...
packages/material-ui-icons/src/SwapCallsRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M17.65 4.35l-2.79 2.79c-.32.32-.1.86.35.86H17v6.88c0 1-.67 1.93-1.66 2.09-1.25.21-2.34-.76-2.34-1.97V8.17c0-2.09-1.53-3.95-3.61-4.15C7.01 3.79 5 5.66 5 8v7H3.21c-.45 0-.67.54-.35.85l2.79 2.79c.2.2.51....
test/components/ComicDrawer.spec.js
rickychien/comiz
import expect from 'expect' import { mount, shallow } from 'enzyme' import React from 'react' import { ComicDrawer } from '../../src/components/ComicDrawer' describe('<ComicDrawer />', () => { let props beforeEach(() => { props = { open: undefined, width: undefined, isFetching: undefined, ...
src/components/apache/original-wordmark/ApacheOriginalWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './ApacheOriginalWordmark.svg' /** ApacheOriginalWordmark */ function ApacheOriginalWordmark({ width, height, className }) { return ( <SVGDeviconInline className={'A...
src/containers/DevTools/DevTools.js
hank7444/react-redux-universal-hot-example
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-H" changePositionKey="ctrl-Q"> <LogMonitor /...
app/javascript/mastodon/features/home_timeline/index.js
MastodonCloud/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { expandHomeTimeline } from '../../actions/timelines'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../comp...
src/components/ProfileCustomInfo/styles.js
dialogs/dialog-native-components
/* * Copyright 2017 dialog LLC <info@dlg.im> * @flow */ import type { ThemeOverride, StyleOverride } from '../../types'; import { StyleSheet } from 'react-native'; import { Color, Padding } from '../../styles'; const getStyles = (theme: ThemeOverride, styleOverride: StyleOverride) => { const style = { contai...
ajax/libs/cyclejs-core/0.15.0/cycle.js
lobbin/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.Cycle=e()}}(function(){var define,module,exports;retu...
src/server.js
hdngr/mantenuto
import express from 'express'; import cookieParser from 'cookie-parser'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import cookie from 'react-cookie'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; i...
kitsune/sumo/static/sumo/js/tests/ajaxpreviewtests.js
MikkCZ/kitsune
import React from 'react'; import {default as mochaJsdom, rerequire} from 'mocha-jsdom'; import {expect} from 'chai'; import sinon from 'sinon'; import mochaGettext from './fixtures/mochaGettext.js'; import mochaK from './fixtures/mochaK.js'; import mochaJquery from './fixtures/mochaJquery.js'; describe('ajax preview...
docs/src/app/components/pages/components/Snackbar/Page.js
verdan/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 SnackbarReadmeText from './README'; import SnackbarExampleSimple from './...
antd-dva/ant-design-pro-demo/test/src/components/Authorized/Secured.js
JianmingXia/StudyTest
import React from 'react'; import Exception from '../Exception/index'; import CheckPermissions from './CheckPermissions'; /** * 默认不能访问任何页面 * default is "NULL" */ const Exception403 = () => ( <Exception type="403" style={{ minHeight: 500, height: '80%' }} /> ); // Determine whether the incoming component has been ...
src/components/coloritem/Coloritem.js
Convicted202/PixelShape
import './coloritem.styl'; import React from 'react'; import classNames from 'classnames'; const Coloritem = props => { const classes = classNames( 'color', { 'active': props.isActive }); return ( <div className={classes} style={{ backgroundColor: props.color, co...
ajax/libs/vue-chartjs/2.8.5/vue-chartjs.js
ahocevar/cdnjs
/*! * vue-chartjs v2.8.4 * (c) 2017 Jakub Juszczak <jakub@posteo.de> * http://vue-chartjs.org */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("vue"), require("chart.js")); else if(typeof define === 'fun...
classic/src/scenes/wbfa/generated/FASArrowToBottom.pro.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faArrowToBottom } from '@fortawesome/pro-solid-svg-icons/faArrowToBottom' export default class FASArrowToBottom extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faArrowToBottom} ...
src/svg-icons/action/perm-phone-msg.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermPhoneMsg = (props) => ( <SvgIcon {...props}> <path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.2...
__tests__/index.android.js
juhahinkula/NativeFirebase
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 /> ); });
src/class/ErrorBoundary.js
MrMamen/traktflix
import PropTypes from 'prop-types'; import React from 'react'; class ErrorBoundary extends React.Component { constructor(props) { super(props); this.state = {hasError: false}; } componentDidCatch(error, info) { console.log(error, info); this.setState({hasError: true}); } render() { let ...
src/svg-icons/editor/border-all.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderAll = (props) => ( <SvgIcon {...props}> <path d="M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z"/> </SvgIcon> ); EditorBorderAll = pure(EditorBorderAll); EditorBorderAll....