target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
src/FadeMixin.js | herojobs/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import deprecationWarning from './utils/deprecationWarning';
// TODO: listen for onTransitionEnd to remove el
function getElementsAndSelf (root, classes){
let els = root.querySelectorAll('.' + classes.join('.'));
els = [].map.call(els, function(e... |
src/components/transactions/status.js | LiskHQ/lisk-nano | import React from 'react';
import { IconButton } from 'react-toolbox/lib/button';
import styles from './transactions.css';
const Status = (props) => {
let iconProps = {};
if (props.value.type === 0 &&
props.value.senderId === props.value.recipientId) {
iconProps = {
icon: 'replay',
};
} else if... |
src/svg-icons/content/unarchive.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentUnarchive = (props) => (
<SvgIcon {...props}>
<path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.4... |
src/browser/ui/dom/__tests__/Danger-test.js | hzoo/react | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
ajax/libs/firebase/7.14.0/firebase-auth.min.js | cdnjs/cdnjs | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app"],e):e((t=t||self).firebase)}(this,function(jl){"use strict";try{(function(){jl=jl&&Object.prototype.hasOwnProperty.call(jl,"default")?jl.default:jl,function(){var... |
js/components/home/index.js | acbde45/bookRead |
import React, { Component } from 'react';
import { TouchableOpacity, View, ScrollView } from 'react-native';
import { Actions } from 'react-native-router-flux';
import { connect } from 'react-redux';
import {
Container,
Header,
Title,
Text,
Button,
Icon,
Left,
Body,
Right,
} from 'native-base';
impor... |
src/container/PostsIndex.js | natcreates/react-learning | import React, { Component } from 'react';
import {connect} from 'react-redux';
import {Link} from 'react-router-dom';
import {map} from 'lodash';
import {fetchPosts} from '../actions';
class PostsIndex extends Component {
// make the API call as should as we load
// called when component present in DOM
// called... |
ajax/libs/angular-data/1.5.3/angular-data.js | Dervisevic/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 1.5.3 - Homepage <http://angular-data.pseudobry.com/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Data store for Angular.js.... |
src/svg-icons/notification/time-to-leave.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationTimeToLeave = (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-.... |
docs/src/sections/ThumbnailSection.js | apkiernan/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function ThumbnailSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
packages/react-native-renderer/src/ReactNativeTypes.js | jdlehman/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.
*
* @format
* @flow
*/
import React from 'react';
export type MeasureOnSuccessCallback = (
x: number,
y: number,
width: num... |
packages/mineral-ui-icons/src/IconFilter2.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconFilter2(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}... |
Popover.js | quri/react-bootstrap-npm | var React = require('react');
var joinClasses = require('./utils/joinClasses');
var classSet = require('./utils/classSet');
var BootstrapMixin = require('./BootstrapMixin');
var Popover = React.createClass({displayName: 'Popover',
mixins: [BootstrapMixin],
propTypes: {
placement: React.PropTypes.oneOf(['top'... |
protected/extensions/booster/assets/highcharts/highcharts.src.js | zahdxj/YinCart | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v3.0.6 (2013-10-04)
*
* (c) 2009-2013 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout... |
src/components/ProductCardList/ProductCardList.js | GoogleChromeLabs/react-shrine | /*
* Copyright 2019 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
web/js/jquery.js | sblondeau/BabyBottleManager | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
stories/SingleDatePicker.js | acp31/react-dates | import React from 'react';
import moment from 'moment';
import { storiesOf } from '@kadira/storybook';
import SingleDatePickerWrapper from '../examples/SingleDatePickerWrapper';
const TestInput = props => (
<div style={{ marginTop: 16 }} >
<input
{...props}
type="text"
style={{
height:... |
packages/vx-demo/pages/home.js | Flaque/vx | import React from 'react';
import Page from '../components/page';
import Footer from '../components/footer';
export default () => (
<Page>
<div className="home">
<div className="hero">
<h1>
React + D3 = VX
</h1>
<div className="btn-container">
<a className="btn"... |
Web/Scripts/jquery-1.11.1.min.js | tst20170901/test2 | !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 window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={}... |
node_modules/react-icons/md/hearing.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdHearing = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m19.1 15c0-2.3 2-4.1 4.3-4.1s4.1 1.8 4.1 4.1-1.9 4.1-4.1 4.1-4.3-1.8-4.3-4.1z m-6.4-10.6c-2.7 2.7-4.3 6.5-4.3 10.6s1.6 7.9 4.3 10.6l-2.3 2.4c-3.3-3.3-5.4-7.9-5.4-13s2... |
docs/app/Examples/modules/Progress/Variations/ProgressExampleInvertedColor.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Progress, Segment } from 'semantic-ui-react'
const ProgressExampleInvertedColor = () => (
<Segment inverted>
<Progress percent={32} inverted color='red' label />
<Progress percent={59} inverted color='orange' label />
<Progress percent={13} inverted color='yellow' label... |
packages/material-ui-icons/src/DescriptionRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M14.59 2.59c-.38-.38-.89-.59-1.42-.59H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8.83c0-.53-.21-1.04-.59-1.41l-4.82-4.83zM15 18H9c-.55 0-1-.45-1-1s.45-1 1-1h6c.55 0 1 .45 1 1s-.45 1-1 1z... |
src/svg-icons/image/hdr-strong.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrStrong = (props) => (
<SvgIcon {...props}>
<path d="M17 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zM5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 ... |
packages/material-ui-icons/src/CallMerge.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let CallMerge = props =>
<SvgIcon {...props}>
<path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z" />
</SvgIcon>;
CallMerge = pure(CallMerge);
Call... |
src/components/NotFoundPage.js | aleccunningham/robinhood-react | import React from 'react';
const AboutPage = () => {
return {
<div>
<h1>About Page</h1>
<p>An implementation of ReactJS and Redux with the Robinhood API to make trades on your desktop machine!</p>
</div>
};
};
export default AboutPage
|
ajax/libs/6to5/3.4.0/browser.js | 2947721120/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/reflexbox/docs/components/Header.js | HasanSa/hackathon |
import React from 'react'
import { withReflex, Flex, Box } from '../../src'
import CarbonAd from './CarbonAd'
import TweetButton from './TweetButton'
import GithubButton from './GithubButton'
const H1 = withReflex()('h1')
const Header = ({ description, ...props }) => {
return (
<header className='gray bg-blue'... |
src/modules/cart/component.js | gustavoisensee/shoppingcart | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import style from './style.scss';
import Productcart from './../productcart/container';
import Notification from './../notification/component';
const defaultProps = {
main: {
cart: {},
notification: {
success: false,
me... |
src/components/DuplicateSectionButton.js | BenGoldstein88/redux-chartmaker | import React from 'react';
export default class DuplicateSectionButton extends React.Component {
// static propTypes = {
// name: React.PropTypes.string,
// };
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick(e) {
e.preventDefault();
this.... |
src/shared/element-react/dist/npm/es6/src/slider/Slider.js | thundernet8/Elune-WWW | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import { Component, PropTypes } from '../../libs';
import InputNumber from '..... |
src/browser/me/SettingsPage.js | VigneshRavichandran02/3io | /* @flow */
import React from 'react';
import linksMessages from '../../common/app/linksMessages';
import { Block, Title, View } from '../app/components';
import { FormattedMessage } from 'react-intl';
const SettingsPage = () => (
<View>
<Title message={linksMessages.settings} />
<Block>
<FormattedMess... |
app/containers/SideBar/NavTree.js | klpdotorg/tada-frontend | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import TreeView from 'react-treeview';
import { Link } from 'react-router';
import { capitalize, getEntityType } from '../../utils';
import { filterBoundaries } from './utils';
import { collapsedProgramEntity, getBoun... |
pages/components/head.js | GallenHu/Hinote | import React from 'react';
import PropTypes from 'prop-types';
import Head from 'next/head';
import config from '../../config';
const HeadComp = props => (
<Head>
<meta httpEquiv="Content-type" content="text/html; charset=utf-8" />
<title>{`${props.title} - ${config.siteName}`}</title>
<meta name="viewpo... |
node_modules/react-icons/go/search.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const GoSearch = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m38.5 32.5l-9.7-9.7c1.4-2.3 2.2-4.9 2.2-7.8 0-8.3-6.7-15-15-15-8.3 0-15 6.7-15 15 0 8.3 6.7 15 15 15 2.9 0 5.5-0.8 7.8-2.2l9.7 9.7c0.7 0.7 1.8 0.7 2.5 0l2.5-2.5c0.7-0.... |
code/workspaces/web-app/src/components/welcome/NavBar.js | NERC-CEH/datalab | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import datalabsLogo from '../../assets/images/datalabs-hori.png';
import { getAuth } from '../../config/auth';
import navBarLinks from '../../constants/navBarLinks';
import TopBarButton from '../app/Top... |
packages/material-ui-icons/lib/esm/PhoneIphoneSharp.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M18 1H5v22h13V1zm-6.5 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"
}), 'PhoneIphoneSharp'); |
app/containers/ChartPage/index.js | Statfine/reactDemo | /**
* Created by easub on 2017/2/27.
*/
import React from 'react';
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts';
import './vendor/jspdf.min';
import './vendor/html2canvas.min';
import './vendor/html2pdf';
// import html2pdf from 'html2pdf';
// import D... |
test/FadeSpec.js | mxc/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Fade from '../src/Fade';
describe('Fade', () => {
let Component, instance;
beforeEach(() => {
Component = React.createClass({
render() {
let { children, ...props } = this.props;
return (
... |
assets/vendor/swiper/js/swiper.jquery.js | kqueiroz/kqueiroz.github.io | /**
* Swiper 3.4.2
* Most modern mobile touch slider and framework with hardware accelerated transitions
*
* http://www.idangero.us/swiper/
*
* Copyright 2017, Vladimir Kharlampidi
* The iDangero.us
* http://www.idangero.us/
*
* Licensed under MIT
*
* Released on: March 10, 2017
*/
(function () {
'... |
scripts/components/Stickify.js | maratgaip/MusicApp | import React, { Component } from 'react';
export default function (InnerComponent, scrollHeight) {
class StickyComponent extends Component {
constructor(props) {
super(props);
this.onScroll = this.onScroll.bind(this);
this.state = { sticky: false };
}
componentDidMount() {
window... |
pkg/interface/publish/src/js/components/lib/new.js | jfranklin9000/urbit | import React, { Component } from 'react';
import { InviteSearch } from './invite-search';
import { Spinner } from './icons/icon-spinner';
import { Route, Link } from 'react-router-dom';
import { uuid, isPatTa, deSig, stringToSymbol } from "/lib/util";
import urbitOb from 'urbit-ob';
export class NewScreen extends Comp... |
react/src/components/dashboard/tools/toolsMultisigAddressStorage.js | pbca26/EasyDEX-GUI | import React from 'react';
import translate from '../../../translate/translate';
import addCoinOptionsAC from '../../addcoin/addcoinOptionsAC';
import Select from 'react-select';
import {
triggerToaster,
apiToolsBalance,
apiToolsBuildUnsigned,
apiToolsPushTx,
apiToolsSeedToWif,
apiToolsWifToKP,
apiElectru... |
ajax/libs/analytics.js/2.3.11/analytics.min.js | bgrins/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
src/Row.js | mmartche/boilerplate-shop | import React from 'react';
import classNames from 'classnames';
import elementType from 'react-prop-types/lib/elementType';
const Row = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: elementType
},
getDefaultProps() {
return {
... |
ajax/libs/phaser/2.1.1/custom/p2.js | luanlmd/cdnjs | /**
* The MIT License (MIT)
*
* Copyright (c) 2013 p2.js authors
*
* 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 ... |
examples/dropdown.js | ninemilli-song/table-v7 | /* eslint-disable no-console,func-names,react/no-multi-comp */
const React = require('react');
const ReactDOM = require('react-dom');
const Table = require('table-v7');
require('table-v7/assets/index.less');
require('rc-dropdown/assets/index.css');
import Menu, { Item, Divider } from 'rc-menu';
import DropDown from 'rc... |
ajax/libs/redux-form/4.2.0/redux-form.js | iwdmb/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["ReduxForm"] = facto... |
src/components/Footer/index.js | hasibsahibzada/quran.com-frontend | import React from 'react';
import Link from 'react-router/lib/Link';
import styled from 'styled-components';
import LocaleFormattedMessage from 'components/LocaleFormattedMessage';
import { FOOTER_EVENTS } from '../../events';
const Container = styled.footer`
background-color: ${props => props.theme.colors.tuatara}... |
client/views/admin/settings/inputs/PasswordSettingInput.js | VoiSmart/Rocket.Chat | import { Box, Field, Flex, PasswordInput } from '@rocket.chat/fuselage';
import React from 'react';
import ResetSettingButton from '../ResetSettingButton';
function PasswordSettingInput({
_id,
label,
value,
placeholder,
readonly,
autocomplete,
disabled,
hasResetButton,
onChangeValue,
onResetButtonClick,
}) ... |
assets/js/app/index.js | albi34/help-me-choose | import React from 'react';
import { render } from 'react-dom';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import App from './containers/App';
import todoApp from './reducers';
let store = createStore(todoApp);
let rootElement = document.getElementById('root');
render(
<Provider sto... |
src/server.js | 18621032336/Three | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
const server = global.... |
examples/preact/src/index.js | allanalexandre/material-ui | import React from 'react';
import ReactDOM from 'react-dom';
import CssBaseline from '@material-ui/core/CssBaseline';
import { ThemeProvider } from '@material-ui/styles';
import App from './App';
import theme from './theme';
ReactDOM.render(
<ThemeProvider theme={theme}>
{/* CssBaseline kickstart an elegant, con... |
test/FactoriesSpec.js | simonliubo/react-ui | import React from 'react';
import components from '../tools/public-components';
let props = {
ButtonInput: {value: 'button'},
Glyphicon: {glyph: 'star'},
Modal: {onHide() {}},
ModalTrigger: {modal: React.DOM.div(null)},
OverlayTrigger: {overlay: React.DOM.div(null)}
};
function createTest(component) {
let... |
src/components/forms/ConfirmationNumber.js | muiradams/plantogo | import React, { Component } from 'react';
import { TextField } from 'redux-form-material-ui';
import { Field } from 'redux-form';
import { Row, Column } from 'react-cellblock';
const style = {
error: {
float: "left",
},
fullLength: {
width: "100%",
},
grayBackground: {
background: "#EEEEEE",
},... |
gatsby-browser.js | 01binary/zeroweb | /*--------------------------------------------------------*\
| ██████ ██ |
| ██ ██ ██ |
| ██ ██ ██ |
| ██████ ██ | binary : tech art
|
| Gatsby react rendering configuraiton.
|----------------------------------------------------------
| Copyright(C) 2021 Valeriy Novytskyy
\*------------------------... |
src/components/styler/index.js | abbr/ShowPreper | import React from 'react'
import { langs } from 'i18n/lang'
import './index.less'
import _ from 'lodash'
import BackgroundEditor from './backgroundEditor'
import BorderEditor from './borderEditor'
export default class extends React.Component {
componentDidMount() {
super.componentDidMount && super.componentDidMo... |
ajax/libs/material-ui/4.12.1/esm/Toolbar/Toolbar.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import _defineProperty from"@babel/runtime/helpers/esm/defineProperty";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import withStyles ... |
src/components/tags.js | nbzwt/zyzPress | 'use strict';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import request from '../utils/http';
import { browserHistory, Router, Route, IndexRoute, Link } from 'react-router'
class Tags extends Component {
constructor() {
super();
this.state = {
tags: [],
}
reque... |
examples/node_modules/react-native/Libraries/CustomComponents/Navigator/NavigatorStaticContextContainer.js | rreusser/react-native-swiper | /**
* Copyright (c) 2015, Facebook, Inc. All rights reserved.
*
* Facebook, Inc. (“Facebook”) owns all right, title and interest, including
* all intellectual property and other proprietary rights, in and to the React
* Native CustomComponents software (the “Software”). Subject to your
* compliance with these t... |
ajax/libs/cyclejs-core/2.0.1/cycle.js | hasantayyar/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()}})... |
src/layouts/layout-2-2.js | nazaninreihani/binary-next-gen | import React from 'react';
export default (components, className, onClick) => (
<div className={className + ' horizontal'} onClick={onClick}>
{components[0]}
{components[1]}
</div>
);
|
app/javascript/mastodon/features/account_timeline/components/header.js | KnzkDev/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import InnerHeader from '../../account/components/header';
import ImmutablePureComponent from 'react-immutable-pure-component';
import MovedNote from './moved_note';
import { FormattedMessage } fro... |
ajax/libs/angular-google-maps/2.0.14/angular-google-maps_dev_mapped.js | wallin/cdnjs | /*! angular-google-maps 2.0.14 2015-03-09
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
;
(function( window, angular, undefined ){
'use strict';
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, ... |
packages/mineral-ui-icons/src/IconInvertColors.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconInvertColors(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconP... |
src/index.js | salmonax/photobucket-exercise | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(<App />, document.getElementById('app')); |
js/pages/tola_management_pages/audit_log/views.js | mercycorps/TolaActivity | import React from 'react';
import { observer } from "mobx-react"
import Pagination from '../../../components/pagination'
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"
import { toJS } from "mobx"
import classNames from "classnames";
import LoadingSpinner from '../../../components/loading-spinner'
cons... |
server/sonar-web/src/main/js/apps/projects/components/FavoriteFilter.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
Libraries/JavaScriptAppEngine/Initialization/ExceptionsManager.js | lstNull/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/Parser/DeathKnight/Blood/Modules/Features/BlooddrinkerTicks.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import SPELLS from 'common/SPELLS';
import AbilityTracker from 'Parser/Core/Modules/AbilityTracker';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import Combatants from 'Parser/Core/Modules/Combatants';
import SpellIcon from '... |
ajax/libs/jssip/2.0.3/jssip.js | joeyparrish/cdnjs | /*
* JsSIP v2.0.3
* the Javascript SIP library
* Copyright: 2012-2016 José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)
* Homepage: http://jssip.net
* License: MIT
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&def... |
ajax/libs/forerunnerdb/1.3.416/fdb-all.js | sufuf3/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/parser/warrior/protection/modules/talents/AngerManagement.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatDuration } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import RESOURCE_TYPES from 'game/RESOURCE_T... |
v0.3/src/App.js | sakulstra/firebase-web-todo | import React from 'react';
import { BrowserRouter, Match, Miss } from 'react-router';
import { Error404, Home, Todo } from './ui/pages';
import DevTools from 'mobx-react-devtools';
import './api/firebase';
const App = () => (
<BrowserRouter>
<div>
<DevTools />
<Match exactly pattern... |
src/svg-icons/device/battery-charging-80.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging80 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L11... |
site/examples/ExamplesPage.js | sachgits/fixed-data-table | /**
* This file provided by Facebook is 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,
* FITNESS... |
src/components/Disciplina/Previsao/__tests__/index.js | RodolfoSilva/DeVryCalc | import React from 'react'
import Previsao from '../'
import { shallow } from 'enzyme'
describe('Previsao', () => {
it('Renderiza a previsão da nota contendo 10', () => {
const wrapper = shallow(<Previsao value={10} title="Média" />)
expect(wrapper).toMatchSnapshot()
})
it('Renderiza a previsão da nota c... |
saleor/static/js/components/Loading.js | tfroehlich82/saleor | import React from 'react';
import InlineSVG from 'react-inlinesvg';
import loader from '../../images/loader.svg';
const Loading = () => {
return (
<div className="row loader">
<div className="col-12">
<InlineSVG src={loader} />
</div>
</div>
);
};
export default Loading;
|
packages/ringcentral-widgets/components/SaveButton/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import classnames from 'classnames';
import PropTypes from 'prop-types';
import { Button } from '../Button';
import i18n from './i18n';
import styles from './styles.scss';
export default function SaveButton({
className,
currentLocale,
disabled,
onClick,
}) {
return (
<Button
... |
modules/gui/src/app/home/body/process/recipe/remapping/panels/retrieve/retrieve.js | openforis/sepal | import {MosaicRetrievePanel} from 'app/home/body/process/recipe/mosaic/panels/retrieve/retrievePanel'
import {RecipeActions} from 'app/home/body/process/recipe/remapping/remappingRecipe'
import {compose} from 'compose'
import {getGroupedBandOptions} from 'app/home/body/process/recipe/remapping/bands'
import {withRecipe... |
packages/material-ui-icons/src/PaletteTwoTone.js | Kagami/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... |
ajax/libs/material-ui/5.0.0-alpha.34/FormControl/FormControl.min.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import{unstable_composeClasses as composeClasses}from"@material-ui/unstyled";im... |
cfg/base.js | spencerHT/gallery-react-IMOOC | 'use strict';
let path = require('path');
let defaultSettings = require('./defaults');
// Additional npm or bower modules to include in builds
// Add all foreign plugins you may need into this array
// @example:
// let npmBase = path.join(__dirname, '../node_modules');
// let additionalPaths = [ path.join(npmBase, 're... |
src/client/components/svg/svg.container.js | DBCDK/tanterne | /* eslint-disable */
import React from 'react';
export const Arrow = ({className = ''}) => {
return (
<svg className={`arrow ${className}`} height="32px" viewBox="0 0 32 32" width="32px">
<path
d="M24.285,11.284L16,19.571l-8.285-8.288c-0.395-0.395-1.034-0.395-1.429,0 c-0.394,0.395-0.394,1.035,0,1... |
internals/generators/language/index.js | frascata/vivaifrappi | /**
* Language Generator
*/
const fs = require('fs');
const exec = require('child_process').exec;
function languageIsSupported(language) {
try {
fs.accessSync(`app/translations/${language}.json`, fs.F_OK);
return true;
} catch (e) {
return false;
}
}
module.exports = {
description: 'Add a langua... |
ajax/libs/analytics.js/2.3.8/analytics.min.js | Mrkebubun/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
src/__tests__/export-named-test.js | brigand/babel-plugin-flow-react-proptypes | const babel = require('babel-core');
const content = `
// @flow
import React from 'react'
type VendorProps = {
test: string,
};
export class ExportedVendorCard extends React.Component {
props: VendorProps;
render () {
return (
<div />
);
}
}
class LocalVendorCard extends React.Component {
prop... |
imports/ui/components/WelcomeContent/WelcomeContent.js | hwillson/meteor-solr-demo | import React from 'react';
const WelcomeContent = () => (
<div className="welcome-content">
<h1>Meteor Solr Search Demo</h1>
<p>
Welcome to the Meteor Solr search demo!
</p>
<div className="welcome-get-started clearfix">
<div className="pull-left hidden-xs">
<i className="fa fa-in... |
ajax/libs/webshim/1.14.6-RC1/dev/shims/moxie/js/moxie.js | DaAwesomeP/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
src/svg-icons/communication/call.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCall = (props) => (
<SvgIcon {...props}>
<path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-... |
web/src/js/components/General/PaperItem.js | gladly-team/tab | import React from 'react'
import Button from '@material-ui/core/Button'
import Paper from '@material-ui/core/Paper'
import Typography from '@material-ui/core/Typography'
import PropTypes from 'prop-types'
const PaperItem = props => (
<Paper
elevation={1}
style={{
padding: 24,
backgroundColor: '#F... |
packages/example-phone/src/scripts/components/call/media-status.js | good-joe/spark-js-sdk | import React from 'react';
export default function MediaStatus({audioDirection, videoDirection}) {
return (
<table>
<tbody>
<tr>
<td>audio:</td>
<td className="audio-direction">{audioDirection}</td>
</tr>
<tr>
<td>video:</td>
<td className="vi... |
components/catalog/statistics.js | sgmap/inspire | import React from 'react'
import PropTypes from 'prop-types'
import {translate} from 'react-i18next'
import {get} from 'lodash'
import Counter from '../counter'
import Percent from '../percent'
import Pie from './pie'
const Statistics = ({metrics, t}) => {
const openness = get(metrics, 'datasets.partitions.opennes... |
packages/benchmarks/src/cases/SierpinskiTriangle.js | css-components/styled-components | import { BenchmarkType } from '../app/Benchmark';
import { number, object } from 'prop-types';
import React from 'react';
import { interpolatePurples, interpolateBuPu, interpolateRdPu } from 'd3-scale-chromatic';
const targetSize = 10;
class SierpinskiTriangle extends React.Component {
static displayName = 'Sierpin... |
ajax/libs/vue/1.0.26-csp/vue.common.js | redmunds/cdnjs | /*!
* Vue.js v1.0.26-csp
* (c) 2016 Evan You
* Released under the MIT License.
*/
'use strict';
function set(obj, key, val) {
if (hasOwn(obj, key)) {
obj[key] = val;
return;
}
if (obj._isVue) {
set(obj._data, key, val);
return;
}
var ob = obj.__ob__;
if (!ob) {
obj[key] = val;
r... |
src/Spin/index.js | Lobos/react-ui | import React from 'react'
import PropTypes from '../utils/proptypes'
import Plane from './Plane'
import DoubleBounce from './DoubleBounce'
import Wave from './Wave'
import Pulse from './Pulse'
import ChasingDots from './ChasingDots'
import ThreeBounce from './ThreeBounce'
import Circle from './Circle'
import CubeGrid f... |
src/svg-icons/maps/local-activity.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalActivity = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2z... |
examples/auth-with-shared-root/components/Dashboard.js | zenlambda/react-router | import React from 'react'
import auth from '../utils/auth'
const Dashboard = React.createClass({
render() {
const token = auth.getToken()
return (
<div>
<h1>Dashboard</h1>
<p>You made it!</p>
<p>{token}</p>
{this.props.children}
</div>
)
}
})
export default... |
src/components/Work-Old/index.js | jmikrut/keen-2017 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Background from './Background';
import Header from './Header';
import Title from './Title';
import Nav from './Nav';
import Excerpt from './Excerpt';
import Scroll from './Scroll';
import workContent from '../../content/work';
im... |
blueocean-material-icons/src/js/components/svg-icons/image/adjust.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageAdjust = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3z"/>
... |
src/js/components/icons/base/StandardsOfflineStorage.js | odedre/grommet-final | /**
* @description StandardsOfflineStorage 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.t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.