path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
packages/material-ui-icons/lib/SplitscreenRounded.js
mbrookes/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/fieldComponents/TextBox.js
gearz-lab/react-metaform
import React from 'react'; import Input from 'react-bootstrap/lib/Input'; import Glyphicon from 'react-bootstrap/lib/Glyphicon.js'; import GearzMixin from '../mixins/GearzMixin.js'; const TextBox = React.createClass({ propTypes: { onChange: React.PropTypes.func.isRequired, name: React.PropTypes.st...
src/components/GameBoard/GameBoard.js
jtiscione/redux-chess
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './GameBoard.css'; import { gameFromImmutable, legalTargetSquares, sanHighlightSquares, } from '../../store/model/gameState'; import Board from '../Board';...
src/Evolution.Web.Html/wwwroot/lib/@angular/forms/src/form_providers.js
CAH-FlyChen/Evolution.Framework
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { NgModule } from '@angular/core'; import { InternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES, TEMPLATE_DR...
docs/app/Examples/elements/Step/Content/StepExampleIcons.js
clemensw/stardust
import React from 'react' import { Icon, Step } from 'semantic-ui-react' const StepExampleIcons = () => ( <Step.Group> <Step> <Icon name='truck' /> <Step.Content> <Step.Title>Shipping</Step.Title> <Step.Description>Choose your shipping options</Step.Description> </Step.Content> ...
client/modules/ManageNews/pages/ManageNews.js
tranphong001/BIGVN
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Table, Button, Modal } from 'react-bootstrap'; import { getCategories, getCities, getDistricts, getWards, getId } from '../../App/AppReducer'; import { setVisibleBlog } from '../../App/AppAction...
jenkins-design-language/src/js/components/material-ui/svg-icons/communication/email.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationEmail = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/> </SvgIcon> ); CommunicationEmail.displayName = 'CommunicationEma...
test/unit/views/panel-item.spec.js
gregstewart/hearthstone-tracker
import React from 'react'; import { createRenderer } from 'react-test-renderer/shallow'; import PanelItem from '../../../app/views/panel-item.jsx'; import Stats from '../../../app/views/stats.jsx'; describe('Panel item view component', () => { it('renders a list of stats panels', () => { const statData = [{id: ...
mlflow/server/js/src/experiment-tracking/components/MetricPage.js
mlflow/mlflow
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import qs from 'qs'; import { getExperimentApi, getMetricHistoryApi, getRunApi } from '../actions'; import RequestStateWrapper from '../../common/components/RequestStateWrapper'; import NotFoundPage from...
examples/todomvc/test/components/Footer.spec.js
keyanzhang/redux
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import Footer from '../../components/Footer' import { SHOW_ALL, SHOW_ACTIVE } from '../../constants/TodoFilters' function setup(propOverrides) { const props = Object.assign({ completedCount: 0, activeCount: ...
src/utils/mdlUpgrade.js
eferte/react-mdl-1
import React from 'react'; export default (Component) => { class MDLUpgradedComponent extends React.Component { componentDidMount() { componentHandler.upgradeElement(React.findDOMNode(this)); } componentWillUnmount() { componentHandler.downgradeElements(React.findDO...
src/svg-icons/navigation/check.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationCheck = (props) => ( <SvgIcon {...props}> <path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/> </SvgIcon> ); NavigationCheck = pure(NavigationCheck); NavigationCheck.displayName = 'Navigati...
Examples/UIExplorer/ActivityIndicatorExample.js
dirkliu/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, ...
src/data/models/User.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 DataType from 'sequelize'; import Model from '../se...
docs/client.js
RichardLitt/react-bootstrap
import 'bootstrap/less/bootstrap.less'; import './assets/docs.css'; import './assets/style.css'; import './assets/carousel.png'; import './assets/logo.png'; import './assets/favicon.ico'; import './assets/thumbnail.png'; import './assets/thumbnaildiv.png'; import 'codemirror/mode/htmlmixed/htmlmixed'; import 'codemir...
ajax/libs/rxjs/2.5.3/rx.compat.js
mgoldsborough/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 }; ...
client/src/core-components/card.js
opensupports/opensupports
import React from 'react'; import Icon from 'core-components/icon'; import Button from 'core-components/button'; import classNames from 'classnames'; class Card extends React.Component{ static propTypes = { description: React.PropTypes.string, title: React.PropTypes.string, icon: React.Prop...
_dev/src/components/GithubProjectList.js
burning-duck/rehace-github-magnolia
import React from 'react' import {connect} from 'cerebral/react' import {state, props, signal} from 'cerebral/tags' import availableRepos from '../computed/availableRepos' const ProjectListItem = connect( { repo: state`repos.${props`projectId`}`, projectId: props`projectId`, select: signal`projectSelect...
src/common/components/vanilla/table-interactive/data.js
canonical-ols/build.snapcraft.io
import PropTypes from 'prop-types'; import React from 'react'; import styles from './table.css'; export default function Data(props) { return ( <div className={ styles.data } style={ { width: `${props.col}%` } }> { props.children } </div> ); } Data.propTypes = { children: PropTypes.node, col: Pr...
packages/material-ui-icons/src/PaletteTwoTone.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 4c-4.41 0-8 3.59-8 8s3.59 8 8 8c.28 0 .5-.22.5-.5 0-.16-.08-.28-.14-.35-.41-.46-.63-1.05-.63-1.65 0-1.38 1.12-2.5 2.5-2.5H16c2.21 0 4-1.7...
src/title-bar/TitleBar.js
zhaowenyi94/hey-spark
import React, { Component } from 'react'; import {Link} from 'react-router-dom'; import notice from './notice.svg'; import activity from './activity.svg'; import mail from './mail.svg'; import Profile from './profile'; import './TitleBar.css'; class TitleBar extends Component { constructor(props) { super(p...
src/components/Footer/index.js
ahthamrin/kbri-admin2
import React from 'react'; import APPCONFIG from 'constants/Config'; import { Link } from 'react-router'; class Footer extends React.Component { render() { return ( <section className="app-footer"> <div className="container-fluid"> <span className="float-left"> <span>Copyright...
js/components/contactUs/index.js
kondoSoft/que_hacer_movil
import React, { Component } from 'react'; import { connect, ActivityIndicator} from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Image } from 'react-native' import { Container, Header, Content, Text, Button, Icon, Item, Input, Form, Left, Right, H3, View } from 'native-base';...
src/client/components/loader/index.js
adamgruber/mochawesome-report-generator
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer, inject } from 'mobx-react'; import classNames from 'classnames/bind'; import styles from './loader.css'; const cx = classNames.bind(styles); @inject('reportStore') @observer class Loader extends Component { static propT...
ajax/libs/react/15.1.0/react-with-addons.min.js
sashberd/cdnjs
/** * React (with addons) v15.1.0 * * 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 s...
components/servicesScene.js
marxsk/zobro
import React from 'react'; import { View, Text, ScrollView, Image, } from 'react-native'; import Dimensions from 'Dimensions'; import styles from '../styles/styles'; const ICONSIZE = 64; export default class GameScene extends React.Component { constructor(props) { super(props); } componentW...
ajax/libs/material-ui/4.9.11/esm/Collapse/Collapse.min.js
cdnjs/cdnjs
import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import*as React from"react";import clsx from"clsx";import PropTypes from"prop-types";import{Transition}from"react-transition-group";import withStyles from"../styles/withStyle...
example/components/Chart.js
woles/animated-3d-piechart
import React from 'react'; import piechart3D from '../../src'; function generateId() { const alphabet = 'abcdefghijklmnopqrstuvwxyz'; let id = ''; for (let i = 2; i >= 0; i -= 1) { id += (alphabet[(Math.random() * alphabet.length).toFixed(0)]); } return id; } class Chart extends React.Component { st...
cli/base-antd-pro/src/layouts/PageHeaderLayout.js
CFshuming/react-demo-gather
import React from 'react'; import { Link } from 'dva/router'; import PageHeader from '../components/PageHeader'; import styles from './PageHeaderLayout.less'; export default ({ children, wrapperClassName, top, ...restProps }) => ( <div style={{ margin: '-24px -24px 0' }} className={wrapperClassName}> {top} <...
example/components/Widget/index.js
Wildhoney/ReactShadow
import React from 'react'; import root from 'react-shadow/styled-components'; import City from '../City'; import styles from './styles.css'; export default function Widget(props) { return ( <root.section className="weather"> <style type="text/css">{styles.toString()}</style> <City {...
src/components/comment_box.js
Rickardkamel/React-Testing
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as actions from '../actions'; class CommentBox extends Component { constructor(props) { super(props); this.state = { comment: '' }; } handleChange(event) { this.setState({ comment: event.targ...
index.android.js
kuzzmi/rmndrz
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, View, } from 'react-native'; import { App } from './src/app'; export default class rmndrz extends Component { render() { return ( <View style={styles.container}> <App /> </View>...
index.ios.js
cruzj6/ucgames-native-ios
import React from 'react'; import { Provider } from 'react-redux'; import { AppRegistry, } from 'react-native'; import Root from './components/root'; import store from './store'; const UCGamesNative = () => ( <Provider store={store}> <Root /> </Provider> ); AppRegistry.registerComponent('ucgamesnative', () ...
src/client/components/Home/Dashboard/JoinAFlatButton.js
kowhai-2016/flatme
import React from 'react' const JoinAFlat = (props) => { return ( <div className='row'> <button onClick={props.open} className='btn btn-default glyphicon glyphicon-ok flat-button'> join a flat</button> </div> ) } export default JoinAFlat
src/main/resources/react/src/ssl-report/components/__ReportSheet__/__Certificates__/CertificateChain.js
marthie/SSLReport
/* The MIT License (MIT) Copyright (c) 2018 Marius Thiemann <marius dot thiemann at ploin dot de> 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 limi...
app/js/components/Timestamp.js
niksoc/srmconnect
import React from 'react'; import {pure} from 'recompose'; const Timestamp = (props) => { const monthStrings = [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; const datetime = props.datetime.replace('T',' '); const date = datetime.split(' ')[0].split('-'); const d...
ajax/libs/react-dropzone/5.0.1/index.js
sashberd/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],t):"object"==typeof exports?exports.Dropzone=t(require("react"),require("prop-types")):e.Dropzone=t(e.React,e.PropTypes)}(this,fun...
draft-js-emoji-plugin/src/components/EmojiSelect/Popover/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import addEmoji from '../../../modifiers/addEmoji'; import Groups from './Groups'; import Nav from './Nav'; import ToneSelect from './ToneSelect'; export default class Popover extends Component { static propTypes = { cacheBustParam: Pr...
collect-webapp/src/main/webapp/assets/js/sockjs/1.5.2/sockjs.js
openforis/collect
/* sockjs-client v1.5.2 | http://sockjs.org | MIT license */ (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(t...
examples/auth-with-shared-root/components/PageOne.js
brenoc/react-router
import React from 'react' const PageOne = React.createClass({ render() { return <h2>Page One!</h2> } }) export default PageOne
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Jumbotron.js
JamieMason/npm-cache-benchmark
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
ajax/libs/babel-core/5.0.0-beta2/browser-polyfill.js
BobbieBel/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...
modules/IndexLink.js
pheadra/react-router
import React from 'react' import Link from './Link' const IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }) export default IndexLink
apps/mk-app-root/apps/mk-app-root-helloWorld/action.js
ziaochina/mk-demo
import React from 'react' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import config from './config' class action { constructor(option) { this.metaAction = option.metaAction this.config = config.current } onInit = ({ component, injections }) => { this.component ...
src/app/components/media/ChangeMediaSource.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { createFragmentContainer, graphql } from 'react-relay/compat'; import Autocomplete from '@material-ui/lab/Autocomplete'; import Button from '@material-ui/core/Button'; import TextField from '@material-u...
src/index.js
galsen0/hair-dv-front
// Set up your application entry point here... import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import 'semantic-ui-css/semantic.css'; import './styles.scss'; render( <Router routes={routes} h...
packages/reactor-conference-app/src/Layout.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Container } from '@extjs/ext-react'; import Menu from './Menu'; import AppBar from './AppBar'; import Search from './Search'; export default function Layout({ children }) { return ( <Container layout="fit" fullscreen> <AppBar/> <Me...
frontend/js/components/environments/SurveySelector.js
wbprice/okcandidate-platform
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { gotoRoute } from './../../redux/actions/router-actions'; import { connect } from 'react-redux'; import Card from './../atoms/Card'; import LocationForm from './../ecosystems/LocationForm'; import LoadingIndicator fro...
docs/src/app/components/pages/discover-more/RelatedProjects.js
kittyjumbalaya/material-components-web
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import relatedProjectsText from './related-projects.md'; const RelatedProjects = () => ( <div> <Title render={(previousTitle) => `Related Projects - ${previousTitle}`} /> <MarkdownElemen...
src/app/templates/NameBandBase.js
lili668668/lili668668.github.io
import React from 'react' import PropTypes from 'prop-types' function NameBandBase (props) { const { name, nickname, frameComponent: Frame, nameComponent: Name, nicknameComponent: Nickname, separateComponent: Separate } = props return ( <Frame> <Nickname>{nickname}</Nickname> ...
client/components/operations/details.js
bnjbvr/kresus
import React from 'react'; import { connect } from 'react-redux'; import { translate as $t, displayLabel } from '../../helpers'; import { get, actions } from '../../store'; import { registerModal } from '../ui/modal'; import ModalContent from '../ui/modal/content'; import CancelAndDelete from '../ui/modal/cancel-and-...
js/src/embed.js
destenson/ethcore--parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
ajax/libs/react-native-web/0.12.0/exports/NativeEventEmitter/index.js
cdnjs/cdnjs
/** * 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. * * */ import NativeEventEmitter from '../../vendor/react-native/NativeEventEmitter'; export default NativeEventEmitter;
hera/client/src/components/Header/index.js
bottydim/detect-credit-card-fraud
import React from 'react'; export const Header = () => ( <div className='page-heading'> <div><span className='brand-label'>Hera</span></div> </div> ); export default Header;
ajax/libs/inferno/1.0.0-alpha6/inferno-compat.js
joeyparrish/cdnjs
/*! * inferno-compat v1.0.0-alpha6 * (c) 2016 Dominic Gannaway * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.Infer...
packages/react-scripts/template/src/index.js
timlogemann/create-react-app
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register()...
app/containers/NotFoundPage/index.js
GuiaLa/guiala-web-app
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import Navbar from 'Navbar'; export function NotFound() { return ( <div> <Navbar /> ...
__tests__/index.android.js
panarasi/MobileCenter-ReactNative-Demo
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 /> ); });
node_modules/react-bootstrap/es/ButtonGroup.js
cmccandless/SolRFrontEnd
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/client/js/pages/Home.js
GoodBoy123/crendorianinvitational
import React from 'react'; import { connect } from 'react-redux'; import { ciAppSelector } from '../selectors/ciAppSelector'; import {fetchPosts, fetchResults, fetchOverall} from '../actions/actions'; import NewsFeed from '../news/NewsFeed'; import WeekMatches from '../weekmatches/WeekMatches'; import OverallTable f...
modern/src/Logo.js
tananaev/traccar-web
import React from 'react'; const Logo = ({ fill }) => ( <svg xmlns="http://www.w3.org/2000/svg" height="64" viewBox="0 0 240 64" width="240" version="1.1"> <g id="layer1"> <rect id="rect3778" height="64" width="236.1" y="0" x="0" fill="none" /> <ellipse id="path3038" rx="28.995" ry="28.995" transform...
src/App/index.js
tkarling/node-api-server
/*** @jsx React.DOM */ import React from 'react'; import { RouteHandler } from 'react-router'; var App = React.createClass({ render: function() { return ( <div className="wrapper"> <header> <h1><a href="#/">Pokemon API Server</a></h1> </header...
src/containers/Quizzes/Questions/QuestionsContainer.js
ReactPoland/react-community
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; // STORE import { startQuiz, finishQuiz } from 'redux/modules/quizzesModule'; // COMPONENTS import QuizWrap from '../QuizWrap'; import QuestionsPage from './QuestionsPage'; const mappedState = ({ quizze...
dist/1.10.1/jquery-deprecated-effects-event-alias-wrap.min.js
michael829/jquery-builder
/*! jQuery v1.10.1 -wrap,-event-alias,-effects,-deprecated | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.1 -wrap,-event-alias,-effects,-deprecated",d=...
ajax/libs/rxjs/2.4.8/rx.compat.js
Sneezry/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 }; ...
ajax/libs/rxjs/2.3.7/rx.all.js
mikelambert/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...
src/component/avatar.spec.js
gitalk/gitalk
import React from 'react' import { shallow } from 'enzyme' import Avatar from './avatar' describe('Avatar', function () { it('set props className', function () { const className = 'class' expect(shallow(<Avatar className={className} />) .hasClass(`gt-avatar ${className}`) ).toBe(true) }) it('s...
ajax/libs/react/0.6.2/react.min.js
karlfreeman/cdnjs
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
ajax/libs/forerunnerdb/1.3.708/fdb-core+views.js
jdh8/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
ajax/libs/handsontable/0.10.4/jquery.handsontable.full.js
victorjonsson/cdnjs
/** * Handsontable 0.10.4 * Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs * * Copyright 2012, Marcin Warpechowski * Licensed under the MIT license. * http://handsontable.com/ * * Date: Thu Mar 20 2014 13:06:05 GMT+0100 (CET) */ /*jslin...
src/components/SearchResults.js
danielzy95/mechanic-finder
import React, { Component } from 'react'; import queryString from 'query-string'; import SearchBox from './SearchBox'; import ResultList from './ResultList'; import Select from './Select'; import Option from './Option'; import styles from './SearchResults.css'; import workshopMock from '../data/workshop-mock.json'; ...
ajax/libs/cyclejs-core/1.0.0/cycle.js
hare1039/cdnjs
(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}else{g=this}g.Cycle = f()}})...
docs/src/app/components/pages/components/Snackbar/ExampleSimple.js
IsenrichO/mui-with-arrows
import React from 'react'; import Snackbar from 'material-ui/Snackbar'; import RaisedButton from 'material-ui/RaisedButton'; export default class SnackbarExampleSimple extends React.Component { constructor(props) { super(props); this.state = { open: false, }; } handleTouchTap = () => { th...
node_modules/redux-form/es/__tests__/Form.spec.js
Starnes81/ReduxBlogTut
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
src/svg-icons/av/airplay.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAirplay = (props) => ( <SvgIcon {...props}> <path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); AvAirplay = pure(AvAirplay...
hadoop-tools/hadoop-sls/src/main/html/js/thirdparty/jquery.js
tianshouzhi/hadoop
/*! * jQuery JavaScript Library v1.10.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:48Z */ (function( window, undefined ) { // ...
boilerplates/demo/src/containers/App/index.js
flicker85/react-redux-saga-cli
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import Layout from './components/Layout'; import { SIDER_COLLAPSED, LOGOUT } from './redux/constants'; class App extends Component { toggleCollapsed = (e) => { e && e.preventDefault(); ...
ajax/libs/fixed-data-table/0.2.0/fixed-data-table.min.js
xymostech/cdnjs
/** * FixedDataTable v0.2.0 * * Copyright (c) 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 direc...
ajax/libs/hyperform/0.9.2/hyperform.cjs.js
nolsherry/cdnjs
/*! hyperform.js.org */ 'use strict'; var registry = Object.create(null); /** * run all actions registered for a hook * * Every action gets called with a state object as `this` argument and with the * hook's call arguments as call arguments. * * @return mixed the returned value of the action calls or undefined ...
src/js/components/questions/AnswerQuestionForm.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import selectn from 'selectn'; import * as QuestionActionCreators from '../../actions/QuestionActionCreators'; import AnswerRadio from './AnswerRadio'; import AcceptedAnswerCheckbox from './AcceptedAnswerCheckbox'; import AcceptedAnswersImpor...
app/components/BattlePrompt.js
paladinze/testSemantic
import React from 'react' import {PropTypes} from 'react' import { Container, Grid, Divider, Segment} from 'semantic-ui-react' import { Button} from 'semantic-ui-react' import {Link} from 'react-router' import CourseDetail from './CourseDetail' import CourseDetailWrapper from './CourseDetailWrapper' function BattlePro...
js/components/list/list-avatar.js
YeisonGomez/RNAmanda
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, List, ListItem, Text, Thumbnail, Left, Right, Body } from 'native-base'; import { Actions } from 'react-native-rout...
src/app/core/atoms/icon/icons/floating-dock.js
blowsys/reservo
import React from 'react'; const FloatingDock = (props) => <svg {...props} viewBox="0 0 51 39"><g><g><g><path d="M38.7279833,34.7871111 L43.0607333,26.0626667 L43.0607333,25.3026667 L26.4982333,19.7471111 L26.4982333,35.7426667 C26.7588167,35.596 26.9973167,35.4004444 27.2137333,35.156 C27.7569833,34.5648889 28.3885667...
docs-ui/components/dropdownAutoComplete.stories.js
looker/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import Button from 'app/components/buttons/button'; import DropdownAutoComplete from 'app/components/dropdownAutoComplete'; import DropdownButton from 'app/components/dropdownButton'; const items = [...
inc/option_fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/association/list.js
wpexpertsio/WP-Secure-Maintainance
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; /** * The internal dependencies. */ import AssociationListItem from 'fields/components/association/list-item'; /** * Render a list of item that can be associated. * * @param {Object} props * @param {Str...
frontend/eyeballing/src/components/Counter.js
linea-it/dri
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import PropTypes from 'prop-types'; const useStyles = makeStyles(theme => ({ root: { // padding: theme.spacing(3, 2), display: 'flex', }, label: { marginRight: them...
templates/Honeygrid/javascript/engine/widgets/paypal_ec_button.js
khadim-raath/gambioTest
/* -------------------------------------------------------------- paypal_ec_button.js 2016-02-26 Gambio GmbH http://www.gambio.de Copyright (c) 2016 Gambio GmbH Released under the GNU General Public License (Version 2) [http://www.gnu.org/licenses/gpl-2.0.html] --------------------------------------------...
app/containers/App/components/Ticker.js
nikb747/threejs-react-proto
// @flow import React from 'react' import {connect} from 'react-redux'; import * as THREE from 'three' import ReactAnimationFrame from 'react-animation-frame' import { increaseBuildingTargetHeight, progressTime, placeNewBuilding, placeStreet, reset, updateEventStatus} from '../sceneActionCreators' import { ...
src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/tests/unit/autocomplete/autocomplete_options.js
ls2uper/brackets
(function( $ ) { module( "autocomplete: options" ); var data = [ "c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "python", "c", "scala", "groovy", "haskell", "perl" ]; test( "appendTo", function() { expect( 5 ); var element = $( "#autocomplete" ).autocomplete(); equal( element.autocomplete( "widg...
static/src/components/islands/IslandTent.js
andribja/airhornbot
// @flow // jscs:disable maximumLineLength import React from 'react'; import ResizableSVG from '../ResizableSVG'; export default React.createClass({ mixins: [ResizableSVG], render(): React.Element { let viewBox: string = this.getViewBox(259, 228); let {paused} = this.props; return ( <svg cla...
packages/material-ui-icons/src/Brightness2TwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M18 12c0-4.41-3.59-8-8-8-.34 0-.68.02-1.01.07C10.9 6.23 12 9.05 12 12c0 2.95-1.1 5.77-3.01 7.93.33.05.67.07 1.01.07 4.41 0 8-3.59 8-8z" opaci...
js/src/views/Status/components/ScrollTopButton/ScrollTopButton.js
pdaian/parity
// Copyright 2015, 2016 Ethcore (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version....
node_modules/google-map-react/develop/GMapOptim.js
Bartoshko/occasion-jitsu
// Example to test the React Reconciler. This example // is 100x faster in development mode, // and 1.5-2x faster with NODE_ENV==='production' // The idea was to not draw map children on hovers, but subscribe inside children on hover change // see ./markers/ReactiveMarker source import React from 'react'; import comp...
example/examples/FitToSuppliedMarkers.js
hzdg/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LATITUDE_DELTA = 0.0922; const...
App/ComponenetsV2/Events/EventDetailPage.js
victoryforphil/GTMobile
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ScrollView } from 'react-native'; class EventDetailPage extends Component { constructor(props){ super(props) } render() { return ( <ScrollView style={styles.view} keyboardShouldPersistTaps={true}> ...
node_modules/nuka-carousel/src/decorators.js
HasanSa/hackathon
'use strict'; import React from 'react'; const DefaultDecorators = [ { component: React.createClass({ render() { return ( <button style={this.getButtonStyles(this.props.currentSlide === 0 && !this.props.wrapAround)} onClick={this.handleClick}>PREV</button> ...
node_modules/react-navigation/src/routers/__tests__/TabRouter-test.js
joan17cast/Enigma
/* @flow */ /* eslint react/display-name:0 */ import React from 'react'; import TabRouter from '../TabRouter'; import NavigationActions from '../../NavigationActions'; const INIT_ACTION = { type: NavigationActions.INIT }; const BareLeafRouteConfig = { screen: () => <div />, }; describe('TabRouter', () => { tes...
packages/docs/components/Examples/resizeable/SimpleResizeableEditor/colorBlockPlugin.js
draft-js-plugins/draft-js-plugins
import React from 'react'; const ColorBlock = React.forwardRef( ( { block, // eslint-disable-line no-unused-vars blockProps, // eslint-disable-line no-unused-vars customStyleMap, // eslint-disable-line no-unused-vars customStyleFn, // eslint-disable-line no-unused-vars decorator, //...
imports/startup/both/routes.js
juliancwirko/scotty
import React from 'react'; import { Route } from 'react-router-dom'; import Main from '../../ui/layouts/main/Main'; import Home from '../../ui/pages/home/Home'; import Subpage from '../../ui/pages/subpage/Subpage'; export default ( <Main> <Route exact path="/" component={Home} /> <Route exact path="/subpage"...
analysis/deathknightblood/src/modules/features/Ossuary.js
yajinni/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { t } from '@lingui/macro'; import Events from 'parser/core/Events'; import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER'; import S...