target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
src/containers/Menu/Menu.js | soulhat/galaxy | import React, { Component } from 'react';
import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap';
import './Menu.css';
class Menu extends Component {
render() {
return (
<Navbar inverse collapseOnSelect>
<Navbar.Header>
<Navbar.Brand>
<a href="/">Galaxy... |
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleReversedComputerVertically.js | koenvg/Semantic-UI-React | import React from 'react'
import { Grid } from 'semantic-ui-react'
const GridExampleReversedComputerVertically = () => (
<Grid reversed='computer vertically'>
<Grid.Row>
<Grid.Column>Computer Row 4</Grid.Column>
</Grid.Row>
<Grid.Row>
<Grid.Column>Computer Row 3</Grid.Column>
</Grid.Row>
... |
app/javascript/mastodon/components/hashtag.js | masarakki/mastodon | import React from 'react';
import { Sparklines, SparklinesCurve } from 'react-sparklines';
import { Link } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { shortNumberFormat } from '../utils/numbers';
const Hashtag = ({ hashtag... |
ajax/libs/forerunnerdb/1.3.631/fdb-legacy.min.js | joeyparrish/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
test/FormGroupSpec.js | jamon/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import FormGroup from '../src/FormGroup';
import {shouldWarn} from './helpers';
describe('FormGroup', function() {
it('renders children', function() {
let instance = ReactTestUtils.renderIntoDocument(
<FormGroup>
<spa... |
ajax/libs/jquery.serialScroll/1.3.0/jquery.serialScroll.js | schoren/cdnjs | /*!
* jQuery.serialScroll
* Copyright (c) 2007-2015 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com
* Licensed under MIT.
* @projectDescription Animated scrolling of series with jQuery
* @author Ariel Flesler
* @version 1.3.0
* https://github.com/flesler/jquery.serialScroll
*/
;(function($)... |
misc/tabledrag.js | solnalag/sandudden | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
node_modules/reactify/node_modules/react-tools/src/utils/__tests__/Transaction-test.js | singhshashi/tweetsmart | /**
* Copyright 2013-2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
packages/material-ui-icons/legacy/SignalWifi3BarSharp.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5 23.64 7z" /><path d="M3.53 10.95L12 21.5l8.47-10.55C20.04 10.62 16.81 8 12 8s-8.04 2.62-8.47 2.95z" /></R... |
dist/browser-tests/ogre-tests.js | elucidata/ogre2 | (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... |
src/Survey/Default/Location.js | NERC-CEH/irecord-app | import React from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import { IonPage } from '@ionic/react';
import Log from 'helpers/log';
import Header from 'Components/Location/Header';
import Main from 'Components/Location/Main';
import {
onManualGridrefChange,
onLocationNameCha... |
fixtures/nesting/src/legacy/Greeting.js | cpojer/react | import React from 'react';
import {Component} from 'react';
import {findDOMNode} from 'react-dom';
import {Link} from 'react-router-dom';
import {connect} from 'react-redux';
import {store} from '../store';
import ThemeContext from './shared/ThemeContext';
import Clock from './shared/Clock';
store.subscribe(() => {
... |
src/svg-icons/av/subtitles.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSubtitles = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM4 12h4v2H4v-2zm10 6H4v-2h10v2zm6 0h-4v-2h4v2zm0-4H10v-2h10v2z"/>
</SvgIcon... |
packages/core/src/icons/components/Tickets.js | iCHEF/gypcrete | import React from 'react';
export default function SvgTickets(props) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
viewBox="0 0 32 32"
{...props}
>
<path
data-name="\u9577\u65B9\u5F62 21 \u306E\u30B3\u30D4\u30FC 6"
d="M21 23v3H... |
src/views/components/ScaleCard.js | physiii/open-automation | import React from 'react';
import PropTypes from 'prop-types';
import Button from './Button.js';
import {connect} from 'react-redux';
import {compose} from 'redux';
import {withRouter} from 'react-router-dom';
import {doServiceAction} from '../../state/ducks/services-list/operations.js';
import ServiceCardBase from './... |
public/assets/js/node_modules/react-select/examples/src/components/ValuesAsNumbersField.js | ngocson8b/6jar | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var ValuesAsNumbersField = React.createClass({
displayName: 'ValuesAsNumbersField',
propTypes: {
label: React.PropTypes.... |
ajax/libs/intl-tel-input/4.0.1/js/intlTelInput.js | AMoo-Miki/cdnjs | /*
International Telephone Input v4.0.1
https://github.com/Bluefieldscom/intl-tel-input.git
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPlugin.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ], function($) {
factory($, window... |
ajax/libs/highstock/1.3.7/highstock.src.js | bspaulding/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highstock JS v1.3.7 (2013-10-24)
*
* (c) 2009-2013 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout,... |
src/js/components/icons/base/Cloud.js | odedre/grommet-final | /**
* @description Cloud SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @prop... |
ajax/libs/rxjs/2.2.10/rx.lite.compat.js | paleozogt/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,
'u... |
ajax/libs/graphiql/0.11.3/graphiql.min.js | tholu/cdnjs | !function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).GraphiQL=f()}}(function(){return function e(t,n,r){function s(o... |
ajax/libs/react-cookie/0.1.2/react-cookie.js | Timbioz/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... |
app/views/settings/elements/stock-cell.js | 7kfpun/FinanceReactNative | import React from 'react';
import PropTypes from 'prop-types';
import {
StyleSheet,
Text,
View,
} from 'react-native';
// 3rd party libraries
import Icon from 'react-native-vector-icons/MaterialIcons';
// Flux
import StockActions from '../../../actions/stock-action';
const styles = StyleSheet.create({
contai... |
ajax/libs/react/15.3.0/react-dom-server.js | jonobr1/cdnjs | /**
* ReactDOMServer v15.3.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 same d... |
goazuredocker/wwwroot/lib/jquery/js/jquery.js | buchizo/goazure | /*!
* 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 ) {
// ... |
packages/reactor-kitchensink/src/NavView.js | markbrocato/extjs-reactor | import React from 'react';
import { Container } from '@extjs/ext-react';
export default function NavView({ node }) {
function onClick(e, path) {
Ext.get(e.target).ripple(e, {});
requestAnimationFrame(() => location.hash = path, 50)
}
return (
<Container layout="center" padding="2... |
src/pages/resume/components/preface.js | dan9186/danielhess.me | import React from 'react'
import styled from 'styled-components'
import { Section } from '../../../components/grid'
export const Preface = ({ preface }) => (
<Section>
<Content>{preface}</Content>
</Section>
)
const Content = styled.div`
display: flex;
flex-flow: row wrap;
margin-top: ${({ theme }) => ... |
packages/wix-style-react/src/BrowserPreviewWidget/docs/index.story.js | wix/wix-style-react | import React from 'react';
import {
header,
tabs,
tab,
description,
importExample,
title,
columns,
divider,
example,
playground,
api,
testkit,
} from 'wix-storybook-utils/Sections';
import { storySettings } from '../test/storySettings';
import BrowserPreviewWidget from '..';
import { skins, b... |
ajax/libs/analytics.js/1.5.0/analytics.min.js | hongkheng/cdnjs | (function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resol... |
examples/real-world/src/root/routes.js | ioof-holdings/redux-dynamic-reducer | import React from 'react'
import { Route } from 'react-router'
import Loadable from 'react-loadable'
const Loading = () => <p>Loading...</p>
const loadRoute = (getPromise) => {
const RouteComponent = Loadable({
loader: () => getPromise(),
loading: Loading,
render(loaded, props) {
const Component =... |
lib/cli/generators/METEOR/template/.stories/index.js | nfl/react-storybook | /* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import Button from './Button';
import Welcome fr... |
app/components/AdHocModal.js | tidepool-org/chrome-uploader | /*
* == BSD2 LICENSE ==
* Copyright (c) 2014-2016, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program is ... |
src/client-scripts/admin-client.js | thegazelle-ad/gazelle-front-end | /* eslint-disable react/jsx-filename-extension */
// Emil hacking because he can't find a babel plugin that does it for some reason
if (!Array.prototype.flatten) {
// eslint-disable-next-line
Array.prototype.flatten = function flatten() {
return this.reduce((acc, cur) => acc.concat(cur), []);
};
}
import Rea... |
packages/react/src/components/atoms/buttons/ButtonToggle/ButtonToggle.stories.js | massgov/mayflower | import React from 'react';
import { StoryPage } from 'StorybookConfig/preview';
import { action } from '@storybook/addon-actions';
import ButtonToggle from './index';
import ButtonToggleDocs from './ButtonToggle.md';
import buttonToggleOptions from './ButtonToggle.knobs.options';
export default {
title: 'atoms/but... |
src/app.js | PetrBuslyuk/_______________ | import React from 'react';
import ReactDOM from 'react-dom';
import './css/main.css';
import { Header, Footer, Content } from './components';
ReactDOM.render(
<div className="main">
<Header />
<Content />
<Footer />
</div>,
document.getElementById('root')
); |
maodou/posts/client/components/admin/postsAdd.js | wuyang910217/meteor-react-redux-base | import React from 'react';
import Helmet from 'react-helmet';
export default (props) => {
return (
<div className="admin-package-wrapper row">
<Helmet
title='添加新文章'
/>
<div className="col-sm-12">
<h1 style={{marginBottom: '20px'}}>添加新文章</h1>
<form onSubmit={(e) => props.... |
githubApp/js/pages/WelcomPage.js | anchoretics/ztf-work-app | /**
* Created by lingfengliang on 2017/3/15.
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
import HomePage from './HomePage';
export default class WelcomPage extends Component{
constructor(props){
super(props);
this.state = {
... |
src/App.js | knod/cliff-effects-1 | import React, { Component } from 'react';
import {
HashRouter,
Route,
Switch,
} from 'react-router-dom';
import { Helmet } from 'react-helmet';
import localforage from 'localforage';
import { Confirmer } from './utils/getUserConfirmation';
// CUSTOM COMPONENTS
import { HomePage } from './containers/HomePage';
i... |
src/routes.js | jmattfong/jmattfong.com | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
jekyll-strapi-tutorial/api/plugins/content-type-builder/admin/src/components/EmptyContentTypeView/index.js | strapi/strapi-examples | /**
*
* EmptyContentTypeView
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import Button from 'components/Button';
import Brush from '../../assets/images/paint_brush.svg';
import styles from './styles.scss';
class EmptyContentTypeView extends React.... |
protocol-designer/src/components/StepDescription.js | Opentrons/labware | // @flow
import * as React from 'react'
import styles from './StepDescription.css'
type StepDescriptionProps = {|
description: ?string,
|}
// TODO Ian 2018-02-21 rename TitledListDescription or whatever, it's not just for StepList but also for IngredientsList
export function StepDescription(props: StepDescriptionPr... |
examples/with-why-did-you-render/scripts/wdyr.js | azukaru/next.js | import React from 'react'
if (process.env.NODE_ENV === 'development') {
if (typeof window !== 'undefined') {
const whyDidYouRender = require('@welldone-software/why-did-you-render')
whyDidYouRender(React, {
trackAllPureComponents: true,
})
}
}
|
frontend/src/components/TimeStamp/index.js | plusbeauxjours/nomadgram | import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.scss';
const TimeStamp = (
{
time
},
context
) => (
<span className={styles.time}>{time}</span>
);
TimeStamp.propTypes = {
time: PropTypes.string.isRequired
};
TimeStamp.contextTypes = {
t: Pr... |
ajax/libs/react/0.3.2/react.js | tharakauka/cdnjs | /**
* React v0.3.2
*/
(function(e){if("function"==typeof bootstrap)bootstrap("react",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeReact=e}else"undefined"!=typeof window?window.React=e():globa... |
src/components/Share/Share.js | chengjianhua/book-share | /**
* Created by cjh95414 on 2016/5/3.
*/
import React, { Component } from 'react';
import { withRouter } from 'react-router';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import TextField from 'material-ui/TextFie... |
src/oneTwoThreeApp/components/Three.js | yosuzuk/react-playground | import React from 'react';
const Three = ({ children }) => (
<div>Three! {children}</div>
);
export default Three;
|
docs/src/routes/error/ErrorPage.js | bmatthews/haze-lea | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
ajax/libs/F2/1.3.3/f2.js | agraebe/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d... |
fields/types/money/MoneyField.js | stunjiturner/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'MoneyField',
valueChanged (event) {
var newValue = event.target.value.replace(/[^\d\s\,\.\$€£¥]/g, '');
if (newValue === this.props.value) return;
this.props.onChange(... |
Libraries/react-native/react-native-interface.js | Suninus/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/... |
ajax/libs/react/15.1.0/react-with-addons.min.js | humbletim/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... |
ajax/libs/react-router-bootstrap/0.21.0/ReactRouterBootstrap.js | holtkamp/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["ReactRouterBootstra... |
test/test_helper.js | bestii/Blog-App-React-Redux-Route | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
playground/topic/react/redux/counter/src/containers/Root.prod.js | yardfarmer/bone | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import CounterApp from './CounterApp';
export default class Root extends Component {
render() {
const { store } = this.props;
return (
<Provider store={store}>
<CounterApp />
</Provider>
);
}
}
|
src/store/auth/reducer.spec.js | asndev/webpack2-react-auth-starter | import React from 'react'; // eslint-disable-line no-unused-vars
import { authReducer, AuthState } from './reducer';
import { authActions } from './actions';
describe('store', () => {
describe('AuthReducer', () => {
it('should have the correct inital state', () => {
const state = authReducer(undefined, { t... |
src/scenes/App/components/Footer/index.js | jsza/tempus-website | import React from 'react'
import './styles.styl'
const Footer = ({ className, ...props }) =>
<footer
className={'App-footer ' + (className || '')}
{...props}
>
<ul className="links">
<li>
<a href="http://steampowered.com/">
<i className="fab fa-steam-symbol" /> Powered by Stea... |
ajax/libs/reactstrap/5.0.0/reactstrap.min.js | joeyparrish/cdnjs | (function(e,t){'object'==typeof exports&&'undefined'!=typeof module?t(exports,require('react'),require('react-dom'),require('react-popper'),require('react-transition-group/Transition')):'function'==typeof define&&define.amd?define(['exports','react','react-dom','react-popper','react-transition-group/Transition'],t):t(e... |
ajax/libs/6to5/1.13.11/browser-polyfill.js | drewfreyling/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... |
src/components/editor/editor-edges.js | szymonkaliski/SDF-UI | import React, { Component } from 'react';
import autobind from 'react-autobind';
import classNames from 'classnames';
import enhanceWithClickOutside from 'react-click-outside';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import nodeSpecs from '../../engine/nodes';
import {
del... |
src/parser/monk/brewmaster/modules/spells/azeritetraits/TrainingOfNiuzao.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import { calculateAzeriteEffects } from 'common/stats';
import { formatNumber, formatPercentage } from 'common/format';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
im... |
src/pages/maker-party/activities/mixin.js | mozilla/advocacy.mozilla.org | import React from 'react'
module.exports = {
componentDidMount: function() {
var navTop, navEl, windowHeight, navHeight;
navEl = document.querySelector(".agenda-navigation");
var navOffset = navEl.getBoundingClientRect();
navTop = navOffset.top;
navigate(window.location.hash);
function hide... |
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/components/Feedback/Feedback.js | louisukiri/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import withStyles from 'isom... |
ajax/libs/analytics.js/1.5.0/analytics.js | snorpey/cdnjs | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... |
frontend/app_v2/src/common/icons/Word.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
/**
* @summary Word
* @component
*
* @param {object} props
*
* @returns {node} jsx markup
*/
function Word({ styling }) {
return (
<svg data-testid="Word" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" className={styling}>
<path d="... |
fields/types/datearray/DateArrayFilter.js | tony2cssc/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment';
import DayPicker from 'react-day-picker';
import { FormField, FormInput, FormRow, FormSelect } from 'elemental';
const PRESENCE_OPTIONS = [
{ label: 'At least one element', value: 'some' },
{ label: 'No element', value: 'none'... |
src/svg-icons/editor/format-indent-decrease.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatIndentDecrease = (props) => (
<SvgIcon {...props}>
<path d="M11 17h10v-2H11v2zm-8-5l4 4V8l-4 4zm0 9h18v-2H3v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>
</SvgIcon>
);
EditorFormatIndentDecre... |
test/react_test.js | SteveTseng/slick | 'use strict';
// import { mocha } from 'mocha';
import React from 'react';
import { expect } from 'chai';
import { shallow, mount, render } from 'enzyme';
import Slick from '../../src/main.jsx';
describe('Slick main app' , function() {
it('calls componentDidMount', () => {
const wrapper = mount(<Slick />);
e... |
app/components/Tab/index.js | seanng/jobmaster-web | /**
*
* Tab
*
*/
import React from 'react';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
function Tab({title, clickTab, view}) {
const Span = title === view ? styled.span`
color: black;
font-weight: 600;
` : styled.span`
col... |
packages/material-ui-icons/src/PublishOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M5 4h14v2H5zm0 10h4v6h6v-6h4l-7-7-7 7zm8-2v6h-2v-6H9.83L12 9.83 14.17 12H13z" />
, 'PublishOutlined');
|
react-express-single/client/src/index.js | rob-blackbourn/scratch-js | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
ajax/libs/6to5/2.0.0/browser.js | alexmojaki/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
node_modules/react-bootstrap/src/PanelGroup.js | gitoneman/react-soc | import React, { cloneElement } from 'react';
import classSet from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import ValidComponentChildren from './utils/ValidComponentChildren';
const PanelGroup = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
collapsable: React.PropTypes.bool,
... |
__tests__/components/SkipLinks-test.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import SkipLinks from '../../src/js/components/SkipLinks';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('SkipLinks',... |
js/components/DeviceTypes/MethodType.js | gilesbradshaw/uaQL | // @flow
'use strict';
import React from 'react';
import Relay from 'react-relay';
import {createContainer} from 'recompose-relay';
import {compose, doOnReceiveProps} from 'recompose';
import DataValue from '../DataValue';
const composer = compose(
createContainer(
{
fragments: {
viewer: () => ... |
executor/htdocs/lib/jquery-1.8.0.min.js | owulveryck/gorchestrator | /*! jQuery v@1.8.0 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/client/containers/Auth/Login.js | eliasmeire/hz-pictionary | import React from 'react';
import { Button, Heading } from 'grommet';
import GithubIcon from 'grommet/components/icons/base/SocialGithub';
import Header from '../../components/Header/Header';
import { hz } from '../../lib/horizon';
import { AUTH_PROVIDERS } from '../../constants';
import './Login.scss';
const onLogin ... |
src/js/pages/Home.js | hadnazzar/ModernBusinessBootstrap-ReactComponent | import React from 'react';
import Header from '../components/Header';
import Footer from '../components/Footer';
import Body from '../components/Body';
import Carousel from '../components/Carousel';
import ThreeBoxes from '../components/ThreeBoxes';
import PortfolioSixPic from '../components/PortfolioSixPic';
... |
docs/src/pages/demos/selection-controls/RadioButtons.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import green from '@material-ui/core/colors/green';
import Radio from '@material-ui/core/Radio';
import RadioButtonUncheckedIcon from '@material-ui/icons/RadioButtonUnchecked';
import RadioButtonChecked... |
node_modules/react-icons/md/panorama-wide-angle.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdPanoramaWideAngle = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 6.6q6 0 13.3 1.3l1.5 0.2 0.4 1.5q1.4 5.2 1.4 10.4t-1.4 10.4l-0.4 1.5-1.5 0.2q-7.3 1.3-13.3 1.3t-13.3-1.3l-1.5-0.2-0.4-1.5q-1.4-5.2-1.4-10.4t1.4-10.4l0.4... |
src/components/App.js | niekert/soundify | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { BrowserRouter as Router, Route, Redirect } from 'react-router-dom';
import styled, { ThemeProvider } from 'styled-components';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import { ... |
js/cards/SwitchCard/SwitchCard.js | Learnone/ShanghaiTechAPP | import React, { Component } from 'react';
import { View, ScrollView } from 'react-native';
import { connect } from 'react-redux';
import { Text, Button, Icon } from 'native-base';
import compose from 'lodash/fp/compose';
import curry from 'lodash/fp/curry';
import { FlipCard } from '../../cards';
import { SwitchIcon }... |
src/svg-icons/maps/navigation.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsNavigation = (props) => (
<SvgIcon {...props}>
<path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"/>
</SvgIcon>
);
MapsNavigation = pure(MapsNavigation);
MapsNavigation.displayName = 'MapsNavigation';
... |
src/components/comment_list.js | kors-mk5/react-starter | import React, { Component } from 'react';
import { connect } from 'react-redux';
const CommentList = (props) => {
const list = props.comments.map(comment => <li key={comment}>{comment}</li>);
return(
<ul className="comment-list">{list}</ul>
);
};
function mapStateToProps(state) {
return {comm... |
files/react/15.0.0-rc.2/react-with-addons.js | gswalden/jsdelivr | /**
* React (with addons) v15.0.0-rc.2
*/
(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!=="... |
app/src/assets/js/components/global/club-linked-logo.js | Huskie/ScottishPremiershipData | import React from 'react';
import { Link } from 'react-router';
class ClubLinkedLogoComponent extends React.Component {
constructor (props) {
super(props);
}
render() {
return (
<div className="club-linked-logo">
<Link className="club-linked-logo__link" to={"... |
ajax/libs/mediaelement/2.1.4/jquery.js | zhengyongbo/cdnjs | /*!
* jQuery JavaScript Library v1.5.1rc1
* 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 License... |
src/component/home/index.js | Cadburylion/personal-portfolio | import React from 'react'
import ReactDom from 'react-dom'
import {connect} from 'react-redux'
import {withRouter} from 'react-router'
import {NavLink} from 'react-router-dom'
import FontAwesome from 'react-fontawesome'
import * as viewActions from '../../action/viewActions.js'
import * as route from '../../action/rout... |
src/routes/Home/components/HomeView.js | MichalObi/redux-to-do-app | import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
export const HomeView = () => (
<div>
<h4>Welcome!</h4>
<img
alt='This is a duck, because Redux!'
className='duck'
src={DuckImage} />
</div>
)
export default HomeView
|
ajax/libs/rxjs/2.2.26/rx.js | AMoo-Miki/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... |
react/features/conference/components/AbstractConference.js | gpolitis/jitsi-meet | // @flow
import React, { Component } from 'react';
import { NotificationsContainer } from '../../notifications/components';
import { shouldDisplayTileView } from '../../video-layout';
import { shouldDisplayNotifications } from '../functions';
/**
* The type of the React {@code Component} props of {@link AbstractLab... |
src/svg-icons/action/important-devices.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionImportantDevices = (props) => (
<SvgIcon {...props}>
<path d="M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1.... |
files/rxjs/2.3.9/rx.compat.js | bonbon197/jsdelivr | // 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... |
docs/app/Examples/elements/List/Content/ListExampleImage.js | koenvg/Semantic-UI-React | import React from 'react'
import { List, Image } from 'semantic-ui-react'
const ListExampleImage = () => (
<List>
<List.Item>
<Image avatar src='http://semantic-ui.com/images/avatar2/small/rachel.png' />
<List.Content>
<List.Header as='a'>Rachel</List.Header>
<List.Description>Last se... |
geonode/contrib/monitoring/frontend/src/components/organisms/alert-list/index.js | ingenieroariel/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import RaisedButton from 'material-ui/RaisedButton';
import CircularProgress from 'material-ui/CircularProgress';
import SettingsIcon from 'material-ui/svg-icons/action/settings';
import HoverPaper from '../../atoms/ho... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-youtube/7.4.0/test/helpers/shallowRender.js | Akkuma/npm-cache-benchmark | /**
* Module dependencies
*/
import React from 'react';
import TestUtils from 'react-dom/test-utils';
import setupYouTube from './setupYouTube';
/**
* Helper for testing the output of a component's `render` method
*
* @param {Object} [props] - component instance props
* @returns {Object}
*/
con... |
sites/all/themes/custom/gbifadmin/bootstrap/js/tests/vendor/jquery.min.js | gbif/gbif-drupal | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/components/Overlay/Content.js | u-wave/web | import cx from 'clsx';
import React from 'react';
import PropTypes from 'prop-types';
const OverlayContent = ({
className,
children,
}) => (
<div className={cx('Overlay-content', className)}>
{children}
</div>
);
OverlayContent.propTypes = {
className: PropTypes.string,
children: PropTypes.node.isRequ... |
src/FormControls/Static.js | dongtong/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import InputBase from '../InputBase';
import childrenValueValidation from '../utils/childrenValueInputValidation';
class Static extends InputBase {
getValue() {
const {children, value} = this.props;
return children ? children : value;
}
ren... |
examples/src/components/Footer.js | krasimir/hocbox | import React from 'react';
import { wire, signal } from '../../../lib';
class Footer extends React.Component {
render() {
const { all, done } = this.props;
const latestAddedTodo = this.props['new-todo'];
return (
<div className='footer'>
<span>Done: { `${ done } / ${ all }` }</span>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.