path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/MenuItem.js | justinanastos/react-bootstrap | import React from 'react';
import classnames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
import SafeAnchor from './SafeAnchor';
export default class MenuItem extends React.Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
hand... |
src/svg-icons/av/fiber-smart-record.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberSmartRecord = (props) => (
<SvgIcon {...props}>
<g><circle cx="9" cy="12" r="8"/><path d="M17 4.26v2.09c2.33.82 4 3.04 4 5.65s-1.67 4.83-4 5.65v2.09c3.45-.89 6-4.01 6-7.74s-2.55-6.85-6-7.74z"/></g>
</S... |
src/ui/components/views/Offline.native.js | Anup-Allamsetty/pure | /* @flow */
import React, { Component } from 'react';
import ReactNative from 'react-native';
import shallowEqual from 'shallowequal';
import Colors from '../../Colors';
import AppText from './AppText';
import Page from './Page';
const {
StyleSheet,
Image,
} = ReactNative;
const styles = StyleSheet.create({
conta... |
WWW/App/index.js | Yaakov-Belch/ibm-talk | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux';
import { topReducer } from './model.js';
import { TreeApp } from './view.js';
import { serverConn } from './serverConn.js';
let createStore2 = applyMiddleware(serve... |
src/svg-icons/action/view-stream.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewStream = (props) => (
<SvgIcon {...props}>
<path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z"/>
</SvgIcon>
);
ActionViewStream = pure(ActionViewStream);
ActionViewStream.displayName = 'ActionViewStream';
Acti... |
ajax/libs/video.js/5.0.0-rc.73/alt/video.novtt.js | cdnjs/cdnjs | /**
* @license
* Video.js 5.0.0-rc.73 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports... |
ajax/libs/yui/3.6.0pr4/simpleyui/simpleyui.js | vetruvet/cdnjs | /**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @main yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI gl... |
client/index.js | maicongil/fcc_voting_app | /**
* Client entry point
*/
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './App';
import { configureStore } from './store';
import 'semantic-ui-css/semantic.min.css';
// Initialize store
const store = configureStore(window.__INITIAL_S... |
examples/huge-apps/routes/Grades/components/Grades.js | KamilSzot/react-router | import React from 'react';
class Grades extends React.Component {
render () {
return (
<div>
<h2>Grades</h2>
</div>
);
}
}
export default Grades;
|
src/components/ExplorerMenuButton/ExplorerMenuButton.example.js | 6congyao/CGB-Dashboard | /*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import ExplorerMenuButton from 'components/ExplorerMenuButton/ExplorerMenuButton.react';
import React from 'r... |
packages/react/src/components/CopyButton/CopyButton-story.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { action } from '@storybook/addon-actions';
import { withKnobs, number, text } from '@storybook/addon-knob... |
src/svg-icons/notification/power.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPower = (props) => (
<SvgIcon {...props}>
<path d="M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"/>
</SvgIcon>
);
NotificationPower = pu... |
src/components/icon.js | conveyal/woonerf | import React from 'react'
export default class Icon extends React.PureComponent {
render () {
const {className = '', type, ...props} = this.props
return <i
className={`fa fa-${type} fa-fw ${className}`}
{...props}
/>
}
}
|
app/addons/fauxton/navigation/__tests__/navbar-test.js | michellephung/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
app/src/components/Notes/RecentNotesPanel.js | GetStream/Winds | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import Panel from '../Panel';
import { ReactComponent as NoteIcon } from '../../images/icons/note.svg';
import { ReactComponent as RssIcon } from '../../images/icons/rss-bg.svg... |
flow-typed/npm/react-router_vx.x.x.js | SiDevesh/Bootleg | // flow-typed signature: abe244a2393d4f8e909e4f7426ba4c49
// flow-typed version: <<STUB>>/react-router_v^3.0.0/flow_v0.37.4
/**
* This is an autogenerated libdef stub for:
*
* 'react-router'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with ... |
web/portal/src/components/Popup/GeneralBox/index.js | trendmicro/serverless-survey-forms |
// CSS
import styles from './style.css';
import React from 'react';
import PropTypes from 'prop-types';
import PureComponent from 'react-pure-render/component';
import Mixins from '../../../mixins/global';
class GeneralBox extends PureComponent {
componentDidMount() {
Mixins.fixScrollbar();
}
... |
app/src/components/CentroidCircleMap/CentroidCircleMap.stories.js | WoundedPixels/us-population | import React from 'react';
import { storiesOf } from '@storybook/react';
import { topoToGeo } from '../../DataManipulation';
import CentroidCircleMap from './CentroidCircleMap';
import Tooltip from '../Tooltip/Tooltip';
const buildTooltip = d => <div>Static tooltip</div>;
const calculateArea = d => {
return Math... |
src/index.js | tmobaird/i-want-to-contribute | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import Routes from './routes';
import configureStore from './store/configureStore';
/* The following is one way to include bootstrap in the project, but this way has a
* somewhat di... |
renderer/components/Autopay/AutopayStatus.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import { compose } from 'redux'
import { withFieldState } from 'informed'
import { FormattedMessage, injectIntl } from 'react-intl'
import { Text } from 'components/UI'
import messages from './messages'
const AutopayStatus = ({ fieldState, ...rest }) => (
... |
modules/RoutingContext.js | arasmussen/react-router | import React from 'react'
import invariant from 'invariant'
import getRouteParams from './getRouteParams'
const { array, func, object } = React.PropTypes
/**
* A <RoutingContext> renders the component tree for a given router state
* and sets the history object and the current location in context.
*/
const RoutingC... |
src/svg-icons/maps/local-gas-station.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalGasStation = (props) => (
<SvgIcon {...props}>
<path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.4... |
packages/examples-counter/src/containers/DevTools.js | kastigar/borex | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey='ctrl-h'
changePositionKey='ctrl-q'>
<LogMonitor /... |
client/verification-portal/components/toggle-formik.js | HelpAssistHer/help-assist-her | import { useField } from 'formik'
import React from 'react'
import injectSheet from 'react-jss'
import cx from 'classnames'
const ToggleFormik = ({ classes, ...props }) => {
// eslint-disable-next-line no-unused-vars
const [field, meta, helpers] = useField({ ...props, type: 'checkbox' })
const { setValue, setTouche... |
ajax/libs/vkui/4.22.2/cjs/components/SplitCol/SplitCol.js | cdnjs/cdnjs | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.SplitCol = exports.SplitColContext = voi... |
packages/material-ui-icons/src/AddPhotoAlternateOutlined.js | lgollut/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M18 20H4V6h9V4H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2v9zm-7.79-3.17l-1.96-2.36L5.5 18h11l-3.54-4.71zM20 4V1h-2v3h-3c.01.01 0 2 0 2h3v2.99c.01.01 2 0 2 0V6h3V4h-3z" />
, 'AddPh... |
node_modules/material-ui/Card/CardHeader.js | Alex-Shilman/Drupal8Node | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
src/components/header.js | shabib87/Albums |
// Impost library
import React from 'react';
import { Text, View } from 'react-native';
// create a Component
const styles = {
viewStyle: {
backgroundColor: '#F8F8F8',
justifyContent: 'center',
alignItems: 'center',
height: 60,
paddingTop: 20,
shadowColor: '#000',
... |
actor-apps/app-web/src/app/components/common/MessageItem.react.js | supertanglang/actor-platform | import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import memoize from 'memoizee';
import classNames from 'classnames';
import emojify from 'emojify.js';
import hljs from 'highlight.js';
import marked from 'marked';
import emojiCharacters from 'emoji-named-characters';
... |
ajax/libs/react-native-web/0.14.11/cjs/exports/DeviceEventEmitter/index.min.js | cdnjs/cdnjs | "use strict";exports.__esModule=!0,exports.default=void 0;var _RCTDeviceEventEmitter=_interopRequireDefault(require("../../vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=_RCTDeviceEventEmitter.default;exports.default=_... |
src/App.js | theJian/react-boilerplate | import React from 'react';
export default class App extends React.Component {
render() {
return (
<div>React Boilerplate</div>
);
}
}
|
node_modules/@material-ui/core/es/FormControlLabel/FormControlLabel.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withFormControlContext from '../FormControl/withFormControlContext';
impo... |
components/Footer/index.js | styled-components/styled-components-website | import React from 'react';
import styled, { css } from 'styled-components';
import { Favorite } from '@styled-icons/material';
import rem from '../../utils/rem';
import { mobile } from '../../utils/media';
import { grey, paleGrey, red } from '../../utils/colors';
import Link from '../Link';
import { Content } from '../... |
stories/Nav.stories.js | reactstrap/reactstrap | import React from 'react';
export default {
title: 'Components/Nav',
parameters: {
docs: {
description: {
component: `
[Bootstrap Navs](https://getbootstrap.com/docs/5.1/components/navs-tabs/)
Bootstrap’s navigation components.
`
}
}
}
};
export { default as Navs } from './e... |
src/three.js | laddhoffman/realm-js | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import * as THREE from 'three';
import React3 from 'react-three-renderer';
import * as _ from 'lodash';
import {observer} from 'mobx-react';
import {extendObservable} from 'mobx';
import TrackballControls from './ref/trackball';
const Icosahed... |
ajax/libs/6to5/1.12.17/browser-polyfill.js | kennynaoh/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... |
components/JustArrived/JustArrived.js | elliotec/LnL | import React from 'react';
import Product from 'components/Product/Product';
import '../FeaturedProducts/FeaturedProducts.css';
export default class JustArrived extends React.Component {
render () {
return (
<section className="just-arrived">
<h2 className="just-arrived-header">Just Arrived</h2>
... |
src/svg-icons/action/alarm-on.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarmOn = (props) => (
<SvgIcon {...props}>
<path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.0... |
docs/build.js | kwnccc/react-bootstrap | /* eslint no-console: 0 */
import React from 'react';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import Root from './src/Root';
import fsp from 'fs-promise';
import { copy } from '../tools/fs-utils';
import { exec } from '../tools/exec';
import metadata from './gener... |
examples/node_modules/react-native/node_modules/react-tools/src/browser/ui/__tests__/ReactMountDestruction-test.js | wjb12/react-native-swiper | /**
* 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... |
packages/material-ui-icons/src/ViewStream.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z" />
, 'ViewStream');
|
lib/components/MapPolyline.js | parkling/react-native-maps | import PropTypes from 'prop-types';
import React from 'react';
import {
ViewPropTypes,
} from 'react-native';
import decorateMapComponent, {
USES_DEFAULT_IMPLEMENTATION,
SUPPORTED,
} from './decorateMapComponent';
const propTypes = {
...ViewPropTypes,
/**
* An array of coordinates to describe the polygon... |
ajax/libs/webshim/1.15.6/dev/shims/moxie/js/moxie-html4.js | 2947721120/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 ... |
ajax/libs/react/0.10.0/react.js | chriszarate/cdnjs | /**
* React v0.10.0
*/
!function(e){if("object"==typeof exports)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.React=e()}}(function(){var define,module,exports;return (fu... |
test/fixtures/exportedDeclaration/input.js | kadirahq/babel-plugin-react-docgen | import React from 'react';
export const Button = ({ children, onClick, style = {} }) => {
return (
<button
style={{ }}
onClick={onClick}
>
{children}
</button>
);
};
Button.propTypes = {
children: React.PropTypes.string.isRequired,
onClick: React.PropTypes.func,
style: React.Pr... |
app/components/Home.js | Ivanwangcy/github-battle-tutorial | import React, { Component } from 'react';
import ReactRouter, { Link } from 'react-router';
import styles from '../styles/index';
import MainContainer from './MainContainer';
class Home extends Component {
render() {
return (
<MainContainer>
<h1>Github Battle</h1>
<p className='lead'>Some f... |
ajax/libs/react-redux-form/0.14.4/ReactReduxForm.min.js | froala/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("redux")):"function"==typeof define&&define.amd?define(["react","redux"],t):"object"==typeof exports?exports.ReactReduxForm=t(require("react"),require("redux")):e.ReactReduxForm=t(e.React,e.Redux)}(this,function(e... |
src/asset-details/AssetDetailsPage.js | binary-com/binary-next-gen | import React from 'react';
import WebPage from '../containers/WebPage';
import AssetDetailsContainer from './AssetDetailsContainer';
export default (props) => (
<WebPage>
<AssetDetailsContainer {...props} />
</WebPage>
);
|
components/UI/Header/MainMenu.js | Dadidam/gladiator | import React from 'react';
import { Menu, Icon } from 'antd';
import { connect } from 'react-redux';
import { setActiveTab } from '../../../actions';
const menu = [{
key: 1,
icon: 'key',
title: 'Quests'
},{
key: 2,
icon: 'flag',
title: 'Arena'
},{
key: 3,
icon: 'shop',
title: 'Shop'... |
app/containers/NotFoundPage/index.js | Voltmod/productSaver | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
src/components/Touchable/ButtonHOC.js | wkozyra95/react-boilerplate | /* @flow */
import React from 'react';
const ButtonHOC = (WrapedComponent: any) => {
return class extends React.Component {
props: {
onTouchTap?: Function,
payload?: any,
}
onTouchTap = (event: any) => {
if (this.props.onTouchTap) {
this.props.onTouchTap(event, this.props.paylo... |
ajax/libs/yui/3.17.2/datatable-core/datatable-core-coverage.js | ram-nadella/cdnjs | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-core/datatable-core.js']) {
__coverage__['build/datatable-core/datatable-... |
ajax/libs/forerunnerdb/1.3.609/fdb-all.min.js | pombredanne/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... |
src/parser/druid/feral/modules/bleeds/RakeSnapshot.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import { STATISTIC_ORDER } from 'interface/others/StatisticsListBox';
import { RAKE_BASE_DURATION, JAGGED_WOUNDS_MODIFIER, PANDEMIC_FRACTION } from '../../constants'... |
app/javascript/mastodon/features/compose/components/warning.js | gol-cha/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
export default class Warning extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
};
render () {
const { mes... |
src/containers/App.js | jwyung/navigation-rotor | import React, { Component } from 'react';
import logo from '../logo.svg';
import '../lato.css';
import '../App.css';
import ConversationsList from '../components/ConversationsList/ConversationsList';
import ChannelHeader from '../components/ConversationHeader/ConversationHeader';
import MessagePane from '../components/... |
spec/components/card.js | showings/react-toolbox | /* eslint-disable react/prop-types */
import React from 'react';
import Button, { IconButton } from '../../components/button';
import Card, { CardActions, CardMedia, CardText, CardTitle } from '../../components/card';
import style from '../style';
const dummyText = 'Lorem Ipsum is simply dummy text of the printing and... |
ajax/libs/react-chartjs/0.7.3/react-chartjs.js | honestree/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"), require("Chartjs"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom", "Chartjs"], factory);
e... |
src/components/Case.js | jonatanramhoj/single-page | import React from 'react';
import Accordion from '../../src/components/Accordion';
import GoToSection from '../../src/components/GoToSection';
class Case extends React.Component {
render() {
return(
<section className="case section" id="case">
<Accordion />
<GoToSection href="about" />
... |
ajax/libs/core-js/0.5.3/library.js | perdona/cdnjs | /**
* Core.js 0.5.3
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(global, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
app/javascript/mastodon/features/account/components/header.js | alarky/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import emojify from '../../../emoji';
import escapeTextContentForBrowser from 'escape-html';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import IconButton from '../..... |
src/Table.js | egauci/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
getDefaultProps() {
... |
src/svg-icons/navigation/arrow-drop-down-circle.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropDownCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"/>
</SvgIcon>
);
NavigationArrowDropDownCircle =... |
app/components/ToggleOption/index.js | react-boilerplate/react-boilerplate | /**
*
* ToggleOption
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>{message ? intl.formatMessage(message) : value}</option>
);
ToggleOption.propTypes = {
value:... |
sites/default/files/js/js_00s4CbSFVlOCvlG6OtSm3CenyBF1oTV8f9XhbD4v9b4.js | towards2sky/drupal8 | /*! jQuery v2.2.3 | (c) jQuery Foundation | 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 window?window:this,fun... |
src/ui/components/Shared/TrackRow.react.js | Eeltech/SpaceMusik | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import AppActions from '../../actions/AppActions';
import classnames from 'classnames';
/*
|--------------------------------------------------------------------------
| TrackRow
|-----------------------------------------------------------... |
src/routes/Account/containers/SearchBarContainer.js | altonzheng/PHC | import { connect } from 'react-redux'
import * as STATIONS from '../../../constants/stations'
import {
loadAccountData,
loadEventRegistration,
searchForAccount,
} from '../modules/account'
import SearchBar from '../components/SearchBar'
const mapStateToProps = (state) => ({
fetching: state.account.fetching,
... |
es6/Scrollbar/Scrollbar.js | yurizhang/ishow | 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... |
js/jquery.js | Jaribeau/jaribeau.github.io | /*! 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... |
ajax/libs/onsen/2.5.2/js/onsenui.min.js | holtkamp/cdnjs | /*! onsenui v2.5.2 - 2017-08-07 */
!function(root,factory){"object"==typeof exports&&"object"==typeof module?module.exports=factory():"function"==typeof define&&define.amd?define([],factory):"object"==typeof exports?exports.ons=factory():root.ons=factory()}(this,function(){return function(modules){function __webpack_re... |
src/svg-icons/maps/pin-drop.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPinDrop = (props) => (
<SvgIcon {...props}>
<path d="M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11zm-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2zM5 20v2h14v-2H5z"/>
</SvgIcon>
);
... |
examples/react-native-vanilla/__tests__/index.ios.js | nfl/react-storybook | // This is the default file as put down by RN
/* eslint-disable */
import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.cre... |
src/shell/crud-operations/basic/Basic.js | Shyam-Chen/React-Fullstack-Starter | import React from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { dynamic } from 'redux-dynamic-manager';
import { makeStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import TextField from '@material-ui/core/TextField';
import Button from '@mate... |
Source code/Static HTML/User pages/bower_components/datatables/media/js/jquery.js | trungdq88/insurance-card | /*! jQuery v1.11.1 | (c) 2005, 2014 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... |
public/scripts/components/applicants/applicant-card.js | asarode/flux-grok | 'use strict'
import React from 'react'
import cx from 'classname'
import moment from 'moment'
import ApplicantActions from '../../actions/applicant-actions'
class ApplicantCard extends React.Component {
constructor(props) {
super(props)
this.state = {}
}
render() {
let {
className,
item... |
src/shared/utils/__tests__/traverseAllChildren-test.js | 8398a7/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/jquery/1.6.4/jquery.min.js | blairvanderhoof/cdnjs | /*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */
(function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"... |
src/components/Main/Main.js | maximgatilin/weathernow | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './Main.css';
import PageBackground from './../PageBackground/PageBackground';
import WeatherIcon from './../WeatherIcon/WeatherIcon';
import Temperature from './../Temperature/Temperature';
import Location from './../Loc... |
node_modules/react-icons/io/search.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoSearch = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m34.8 30.2c0.3 0.3 0.3 0.8 0 1.1l-3.4 3.5c-0.1 0.1-0.4 0.2-0.6 0.2s-0.4-0.1-0.6-0.2l-6.5-6.8c-2 1.2-4.1 1.8-6.3 1.8-6.8 0-12.4-5.5-12.4-12.4s5.6-12.4 12.4-12.4 12.4 5.... |
sites/all/modules/jquery_update/replace/jquery/1.5/jquery.min.js | mikeusry/action | /*!
* jQuery JavaScript Library v1.5.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
node_modules/react-icons/ti/folder-delete.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const TiFolderDelete = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m30 10h-10c0-1.8-1.5-3.3-3.3-3.3h-6.7c-2.8 0-5 2.2-5 5v16.6c0 2.8 2.2 5 5 5h20c2.8 0 5-2.2 5-5v-13.3c0-2.8-2.2-5-5-5z m-20 0h6.7c0 1.8 1.5 3.3 3.3 3.3h10c0.9 0 1... |
ajax/libs/react/0.13.0-beta.1/react-with-addons.js | extend1994/cdnjs | /**
* React (with addons) v0.13.0-beta.1
*/
!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.React=e... |
src/svg-icons/editor/insert-chart.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertChart = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/>
</SvgIcon>
);
Editor... |
src/svg-icons/notification/event-available.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEventAvailable = (props) => (
<SvgIcon {...props}>
<path d="M16.53 11.06L15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17l5.94-5.94zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 ... |
client/src/MessagePage.js | martchellop/shcode | import React, { Component } from 'react';
import { Row } from 'react-bootstrap';
class MessagePage extends Component {
render(){
const row_st = {
marginLeft: 0,
marginRight: 0
};
return(
<Row fluid className="text-center" style={row_st}>
<h1>{this.props.message}</h1>
</Ro... |
ajax/libs/react-native-web/0.14.0/cjs/modules/usePlatformMethods/index.min.js | cdnjs/cdnjs | "use strict";exports.__esModule=!0,exports.default=usePlatformMethods;var _UIManager=_interopRequireDefault(require("../../exports/UIManager")),_createDOMProps=_interopRequireDefault(require("../createDOMProps")),_react=require("react");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function ow... |
example/examples/PolygonCreator.js | athaeryn/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} 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 LA... |
app/screen/Message.js | shuiszhang/fanfou | /**
* Created by shuis on 2017/5/23.
*/
import React, { Component } from 'react';
import {
FlatList
} from 'react-native';
import {TabBarIcon, TweetSeparator} from '../component/base';
import Tweet from '../component/Tweet';
import {mentions} from '../api/api';
class Message extends Component{
static navigation... |
examples/04 Sortable/Cancel on Drop Outside/index.js | longlho/react-dnd | import React, { Component } from 'react';
import Container from './Container';
export default class SortableCancelOnDropOutside extends Component {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/04%20Sortable/Cancel%20on%20Drop%20Outsid... |
assets/javascripts/kitten/components/form/credit-card-form/components/expiry.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
import NumberFormat from 'react-number-format'
import { useFormContext } from '../'
const limit = (val, max) => {
if (val.length === 1 && val[0] > max[0]) {
val = '0' + val
}
if (val.length === 2) {
if (Number(val) === 0) {
val = '01'
... |
app/components/payment/index.js | ritishgumber/dashboard-ui | import React from 'react';
import planList from './plans';
import {paymentCountries} from './config';
var valid = require('card-validator');
import {xhrDashBoardClient} from './xhrClient';
import RefreshIndicator from 'material-ui/RefreshIndicator';
import {Modal, Button} from 'react-bootstrap';
import PlanDetails from... |
packages/material-ui-icons/src/PauseCircleFilledOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z" />
, 'PauseCircleFilledOutlined');
|
src/components/projects/content/Disney.js | tehfailsafe/portfolio | import React from 'react';
import Section from '../show/Section'
import CopySplitLeft from '../show/CopySplitLeft'
import CopySplitRight from '../show/CopySplitRight'
import Copy from '../show/Copy'
import ImageFull from '../show/ImageFull'
import VideoPlayer from '../show/VideoPlayer'
export default React.createClas... |
src/GameInfo.js | mamendes/3d-tic-tac-toe | import React, { Component } from 'react';
import './index.css';
class GameInfo extends Component {
pixelsToScroll() {
let {offsetHeight: hdHeight} = this.historyDiv;
let {offsetHeight: hlHeight} = this.historyList;
let ΔHeight = hdHeight - hlHeight;
return ΔHeight < 0 ? -ΔHeight : 0;
}
render... |
src/app/components/list/Order.js | cherishstand/OA-react | import React from 'react';
import {Link, browserHistory} from 'react-router';
import {List, ListItem, MakeSelectable} from 'material-ui/List';
import { Router, Route, hashHistory } from 'react-router';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import ArrowBaclIcon from 'm... |
src/FadingCircle/index.js | bentatum/better-react-spinkit |
import React from 'react'
import PropTypes from 'prop-types'
import BaseCircle from '../Base/Circle'
import { animationName } from '../util'
const defaultSize = 22
const FadingCircle = ({ startOpacity, endOpacity, ...props }) => {
const name = animationName('fading-circle')
return (
<BaseCircle
css={`
... |
fields/types/text/TextFilter.js | nickhsine/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import { FormField, FormInput, FormSelect, SegmentedControl } from 'elemental';
const TOGGLE_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contains' },
{... |
node_modules/react-icons/go/repo-forked.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const GoRepoForked = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35 5c0-2.8-2.2-5-5-5s-5 2.2-5 5c0 1.8 1 3.5 2.5 4.3v4.2l-7.5 8.3-7.5-8.3v-4.2c1.5-0.8 2.5-2.4 2.5-4.3 0-2.8-2.2-5-5-5s-5 2.2-5 5c0 1.8 1 3.5 2.5 4.3v6.1l10 11v4.3... |
react/demo1/src/client.js | feng003/ForXB | /**
* Created by zhang on 2017/2/3.
*/
import React from 'react';
import { render } from 'react-dom';
import App from './App';
render(<App />,document.querySelector('#app')); |
node_modules/react-icons/fa/step-forward.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaStepForward = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m9.5 36.9q-0.4 0.4-0.7 0.2t-0.3-0.7v-32.8q0-0.6 0.3-0.7t0.7 0.2l15.9 15.9q0.1 0.2 0.2 0.4v-15.1q0-0.6 0.5-1t1-0.4h2.8q0.6 0 1 0.4t0.5 1v31.4q0 0.6-0.5 1t-1 0.4h-2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.