path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/chimee/0.10.0-alpha.10/index.browser.js | jonobr1/cdnjs |
/**
* chimee v0.10.0-alpha.10
* (c) 2017-2018 toxic-johann
* Released under MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Chimee = factory());
}(this, (funct... |
node_modules/react-icons/fa/long-arrow-right.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaLongArrowRight = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m39.1 19.9q0 0.3-0.3 0.6l-8.5 7.9q-0.4 0.3-0.8 0.1-0.4-0.2-0.4-0.6v-5h-27.9q-0.3 0-0.5-0.2t-0.2-0.6v-4.2q0-0.4 0.2-0.6t0.5-0.2h27.9v-5q0-0.4 0.4-0.6t0.8 0.1l8.... |
src/pricing/pricingSection/index.js | ChDeinert/react-katas | import React from 'react';
import PropTypes from 'prop-types';
import shortid from 'shortid';
const PricingSection = ({ children }) => (
<section className="pricing">
{children}
</section>
);
export default PricingSection;
|
app/packs/src/components/generic/GenericElTableDropTarget.js | ComPlat/chemotion_ELN | /* eslint-disable react/forbid-prop-types */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import uuid from 'uuid';
import { DropTarget } from 'react-dnd';
import { Tooltip, OverlayTrigger, Popover, Button } from 'react-bootstrap';
import { previewAttachmentImage } from '../utils/imageHe... |
screens/SolutionScreen/Solution.js | nattatorn-dev/expo-with-realworld | import React from 'react'
import { TouchableOpacity, View } from 'react-native'
import Spinner from 'react-native-loading-spinner-overlay'
import PropTypes from 'prop-types'
import { object } from 'utilities'
import {
CardContent,
CardContentImage,
HeaderSection,
HeaderTitle,
Slider,
TextDescriptionCard,
}... |
app/containers/BootStrap/BSNavBrand/index.js | perry-ugroop/ugroop-react-dup2 | /* *********************************************************** */
/* Created by Vince on 2016-11-22 */
/* *********************************************************** */
import React from 'react';
import styled from 'styled-components';
const BSNavBrand = (props) => <a className={'navbar-br... |
ajax/libs/redux-form/4.0.4/redux-form.js | pombredanne/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... |
ajax/libs/react-router/0.13.2/ReactRouter.min.js | CyrusSUEN/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactRouter=e(require("react")):t.ReactRouter=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].e... |
src/svg-icons/maps/rate-review.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRateReview = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm1... |
src/panel/PanelContents.js | HarvestProfit/harvest-profit-ui | import React from 'react';
import PropTypes from 'prop-types';
/**
* Renders the body of the panel.
*/
const PanelContents = (props) => {
if (props.padding) {
return (
<div className={`content ${props.className}`} style={props.style}>
<div className="panel-contents">
{props.children}
... |
vendor/htmlburger/carbon-fields/assets/js/fields/components/association/index.js | Apiki/gb-plugin-api | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import {
compose,
withState,
withProps,
withHandlers,
setStatic
} from 'recompose';
import {
cloneDeep,
without,
isMatch,
sortBy,
includes,
find
} from 'lodash';
import { vsprintf } from 'sprintf-js';
/**
*... |
app/src/containers/App.js | Serghar/DnDm | import React, { Component } from 'react';
import {MemoryRouter as Router, Link, Route, Redirect} from 'react-router-dom';
import InitiativeApp from '../subApps/initiativeTrackerApp/src/containers/InitiativeApp';
class App extends Component {
constructor() {
super();
this.state = {
}
}
render()... |
app/javascript/mastodon/components/loading_indicator.js | kagucho/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const LoadingIndicator = () => (
<div className='loading-indicator'>
<FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />
</div>
);
export default LoadingIndicator;
|
app/javascript/src/components/conversations/Conversation.js | michelson/chaskiq | import React from 'react'
import { withRouter, Link } from 'react-router-dom'
import { connect } from 'react-redux'
import { ThemeProvider } from 'emotion-theming'
import Tooltip from 'rc-tooltip'
import graphql from '../../graphql/client'
import { last } from 'lodash'
import Moment from 'react-moment'
import { toCam... |
website/core/HeaderWithGithub.js | browniefed/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... |
client/src/components/Message2.js | shamb0t/orbit | 'use strict'
import React from "react"
import MentionHighlighter from 'components/plugins/mention-highlighter'
import User from "components/User"
import File from "components/File"
import TextMessage from "components/TextMessage"
import Directory from "components/Directory"
import ChannelActions from 'actions/ChannelA... |
ajax/libs/yui/3.17.2/event-custom-base/event-custom-base-coverage.js | tonytlwu/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/event-custom-base/event-custom-base.js']) {
__coverage__['build/event-custom-base/e... |
docs/src/Root.js | justinanastos/react-bootstrap | import React from 'react';
import Router from 'react-router';
const Root = React.createClass({
statics: {
/**
* Get the list of pages that are renderable
*
* @returns {Array}
*/
getPages() {
return [
'index.html',
'introduction.html',
'getting-started.html',... |
app/src/components/Intro/Intro.js | RyanCCollins/ryancollins.io | import React from 'react';
import './Intro.scss';
import DownChevron from '../DownChevron/DownChevron';
import IntroImage from './IntroImage';
import * as Constants from '../../constants';
const Intro = () => (
<section className="intro">
<div className="intro-header">
<div className="intro-header__content... |
src/components/Routes.js | suhodolskiy/bsuir-evt-laba-2017 | import React from 'react';
import { Route, Switch } from 'react-router-dom';
import DefaultLayout from '../layouts/DefaultLayout';
import Home from './Home/Home';
import Create from './Create/Create';
const Routes = () => (
<Switch>
<DefaultLayout exact path="/" component={Home}/>
<DefaultLayout path="/cre... |
actor-apps/app-web/src/app/components/common/Stateful.react.js | Dreezydraig/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import _ from 'lodash';
import React from 'react';
import { AsyncActionStates } from 'constants/ActorAppConstants';
export class Root extends React.Component {
static propTypes = {
className: React.PropTypes.string,
currentState: React.PropTypes.num... |
app/javascript/components/collection_index.js | avalonmediasystem/avalon | /*
* Copyright 2011-2022, The Trustees of Indiana University and Northwestern
* University. 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/LICENS... |
ajax/libs/6to5/3.2.1/browser.js | qooxdoo/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... |
index.ios.js | dddzg/app | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class app extends Component {
render() {
return (
<View style={styles.container}>
... |
docs/app/Examples/views/Feed/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import Content from './Content'
import Types from './Types'
import Variations from './Variations'
const FeedExamples = () => (
<div>
<Types />
<Content />
<Variations />
</div>
)
export default FeedExamples
|
build/resources/main/static/diagram-viewer/js/jquery/jquery.js | QiaoG/modeler-custom | /*!
* jQuery JavaScript Library v1.7.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.
... |
admin/client/App/screens/Item/components/FormHeading.js | matthewstyers/keystone | import React from 'react';
import evalDependsOn from '../../../../../../fields/utils/evalDependsOn';
module.exports = React.createClass({
displayName: 'FormHeading',
propTypes: {
options: React.PropTypes.object,
},
render () {
if (!evalDependsOn(this.props.options.dependsOn, this.props.options.values)) {
re... |
packages/material-ui-icons/src/SdStorage.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z" />
, 'SdStorage');
|
docs-ui/components/mutedBox.stories.js | mvaled/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import MutedBox from 'app/components/mutedBox';
storiesOf('UI|Muted Box', module)
.add('default', withInfo('Default')(() => <MutedBox statusDetails={{}} />))
.add(
'ignoreUntil',
withInfo... |
react/boiling_calculator/src/components/Calculator.js | greganswer/devnotes | import React, { Component } from 'react';
import BoilingVerdict from './BoilingVerdict';
import TemperatureInput from './TemperatureInput';
class Calculator extends Component {
constructor(props) {
super(props);
this.state = { temperature: '', scale: 'c' };
this.handleCelsiusChange = this.handleCelsiusC... |
src/desktop/apps/categories/components/Gene.js | kanaabe/force | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import colors from 'reaction/Assets/Colors'
const propTypes = {
id: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
display_name: PropTypes.string,
}
const GeneItem = styled.li`
font-size: 20px... |
frontend/src/components/customerSearch.js | GreatDevelopers/LibreHatti | import React from "react";
import TextField from '@material-ui/core/TextField';
import Container from '@material-ui/core/Container';
import Button from '@material-ui/core/Button';
import { makeStyles } from '@material-ui/core/styles';
import '../css/common.css';
const useStyles = makeStyles((theme) => ({
submit: {
... |
local-cli/wrong-react-native.js | Jericho25/react-native | #!/usr/bin/env node
console.error([
'\033[31mLooks like you installed react-native globally, maybe you meant react-native-cli?',
'To fix the issue, run:\033[0m',
'npm uninstall -g react-native',
'npm install -g react-native-cli'
].join('\n'));
|
Inspector/js/app.js | Jonahss/WebDriverAgent | /**
* 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.
*/
import Rea... |
webroot/img/Regioner _ Anax a web template-filer/jquery.js | emwi/CCLC | /*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.1",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim... |
client/components/Header.js | oshirodk/dogMatch |
import React from 'react';
const Header = ( {message} ) => {
return (
<div>
<h2 className="Header text-center">
{message}
</h2>
<div>
...
</div>
</div>
);
};
Header.propTypes = {
message: React.PropTypes.string
};
export default Header;
|
app/components/Editor.js | christianalfoni/TeachKidsCode | import React from 'react';
import {Mixin} from 'cerebral-react-immutable-store';
import MTRC from 'markdown-to-react-components';
import {
Row,
Col,
Input,
Button
} from 'react-bootstrap';
MTRC.configure({});
const TextareaStyle = {
outline: 'none',
width: '100%',
height: 'calc(100% - 49px)',
resize: ... |
internals/templates/utils/injectSaga.js | kaizen7-nz/gold-star-chart | import React from 'react';
import PropTypes from 'prop-types';
import hoistNonReactStatics from 'hoist-non-react-statics';
import getInjectors from './sagaInjectors';
/**
* Dynamically injects a saga, passes component's props as saga arguments
*
* @param {string} key A key of the saga
* @param {function} saga A r... |
frontend/src/Components/InfoLabel.js | Radarr/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { kinds, sizes } from 'Helpers/Props';
import styles from './InfoLabel.css';
function InfoLabel(props) {
const {
className,
title,
kind,
size,
outline,
children,
...otherProps
} = ... |
node_modules/react-router/es6/Link.js | jotamaggi/react-calendar-app | 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]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
app/components/List/EmptyMessage.js | vollmerr/app-hub | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { DefaultButton } from 'office-ui-fabric-react/lib/Button';
export const Wrapper = styled.div`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
hei... |
client/src/components/dashboard/messaging/message-list.js | hah-nan/papabear2 | import React, { Component } from 'react';
import MessageItem from './message-item';
const moment = require('moment');
class MessageList extends Component {
render() {
return (
<div className="messages">
{this.props.displayMessages.map(data => <MessageItem
key={data._id}
messag... |
ajax/libs/react/0.14.0/react-with-addons.js | jonobr1/cdnjs | /**
* React (with addons) v0.14.0
*/
(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!=="undef... |
sample/jquery.js | tndev/jquery-scroll-reason | /*!
* jQuery JavaScript Library v1.11.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-01-23T21:02Z
*/
(function( global, factory ) {
if ... |
src/components/HomePage/Biography.js | guivazcabral/site | import React from 'react';
import { Link } from 'react-router';
const Biography = () => {
return (
<div className="content biography row">
<div className="small-12 medium-8 large-6 columns">
<p>
I am a young man who likes to cook and eat. Professionaly, I craft code for web.
... |
src/components/FilePicker.js | jekyll/jekyll-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Modal from 'react-modal';
import StaticIndex from '../containers/views/StaticIndex';
import Icon from './Icon';
export default class FilePicker extends Component {
state = {
showModal: false,
};
customStyles = {
overlay... |
stories/Text/index.js | skyiea/wix-style-react | import React from 'react';
import {storiesOf} from '@storybook/react';
import CodeExample from '../utils/Components/CodeExample';
import AutoDocs from '../utils/Components/AutoDocs';
import TextSource from '!raw-loader!wix-style-react/Text/Text';
import ExampleStandard from './ExampleStandard';
import ExampleStandard... |
src/PageHeader.js | chilts/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const PageHeader = React.createClass({
render() {
return (
<div {...this.props} className={classNames(this.props.className, 'page-header')}>
<h1>{this.props.children}</h1>
</div>
);
}
});
export default PageHeader;
|
library_js/src/components/BookList/index.js | HoldYourBreath/Library | import React from 'react';
import { Table } from 'react-bootstrap';
import TableRow from './TableRow';
class BookList extends React.Component {
constructor() {
super();
this.state = {};
};
render() {
console.log(this.props);
return (
<div>
<Table striped bordered condensed hover>
... |
PhotoReview.js | bitmakerlabs/reception-react-native | 'use strict';
var React = require('react-native');
var {
StyleSheet,
Text,
TextInput,
View,
TouchableHighlight,
ActivityIndicatorIOS,
Image,
Component
} = React;
var Button = require('react-native-button');
var Form = require('./Form');
var PhotoReview = React.createClass({
statics: {
title: '... |
reports/js/plugins/jquery.js | NathanAhlstrom/CORAL | /*! 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==... |
docs/src/app/components/pages/components/TextField/ExampleControlled.js | igorbt/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
export default class TextFieldExampleControlled extends React.Component {
constructor(props) {
super(props);
this.state = {
value: 'Property Value',
};
}
handleChange = (event) => {
this.setState({
value: eve... |
src/components/Form/InputGroup.js | antoinechalifour/Reddix | import React from 'react'
import styled from 'styled-components'
const Outer = styled.div`
& + & {
margin-top: 24px;
}
`
const InputGroup = ({ children }) => {
return (
<Outer>
{children}
</Outer>
)
}
export default InputGroup
|
src/components/Text/Text.js | expdevelop/ultrastore | import React from 'react'
import { classNames } from 'helpers'
import s from './Text.sass'
const Text = ({className, tag, inherit, children, ...rest}) => {
const Element = tag ? tag : 'span';
const _className = classNames(
s.text,
inherit && s.inherit,
className
);
return (
<Element className... |
packages/material-ui-icons/lib/DoDisturbOn.js | mbrookes/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
test/test-0.10.7.js | wkh237/react-native-fetch-blob-dev | import RNTest from './react-native-testkit/'
import React from 'react'
import _ from 'lodash'
import RNFetchBlob from 'react-native-fetch-blob'
import {
StyleSheet,
Text,
View,
ScrollView,
Linking,
Platform,
Dimensions,
BackHandler,
AsyncStorage,
AppState,
Image,
} from 'react-native';
import Imag... |
ajax/libs/inferno/0.7.17/inferno-compat.js | nolsherry/cdnjs | /*!
* inferno-compat v0.7.17
* (c) 2016 Dominic Gannaway
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.InfernoComp... |
fields/types/password/PasswordField.js | riyadhalnur/keystone | import React from 'react';
import Field from '../Field';
import { Button, FormInput, InputGroup } from 'elemental';
module.exports = Field.create({
displayName: 'PasswordField',
getInitialState () {
return {
passwordIsSet: this.props.value ? true : false,
showChangeUI: this.props.mode === 'create' ? true :... |
public/js/jquery-1.9.1.min.js | SamEngenner/RelatorioH | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){retu... |
examples/todomvc/test/jsdomReact.js | kevinold/redux | import ExecutionEnvironment from 'react/lib/ExecutionEnvironment';
import jsdom from 'mocha-jsdom';
export default function jsdomReact() {
jsdom();
ExecutionEnvironment.canUseDOM = true;
}
|
stories/ImageViewer/ExampleStandard.js | skyiea/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import ImageViewer from '../../src/ImageViewer';
const style = {
display: 'inline-block',
padding: '0 25px 25px'
};
const Example = () =>
<div>
<div className="ltr" style={style}>Without image<br/><br/><ImageViewer dataHook="empty-image-viewer" ... |
packages/reactive-dict/reactive-dict.js | AnjirHossain/meteor | // XXX come up with a serialization method which canonicalizes object key
// order, which would allow us to use objects as values for equals.
var stringify = function (value) {
if (value === undefined)
return 'undefined';
return EJSON.stringify(value);
};
var parse = function (serialized) {
if (serialized ===... |
ajax/libs/webshim/1.14.3-RC3/dev/shims/moxie/js/moxie.js | viskin/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/components/menu_top.js | davide-ravasi/redux-firebase | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../actions';
import { Link } from 'react-router';
class MenuTop extends Component {
render() {
return (
<nav className="navbar navbar-inverse navbar-fixed-top">
<div classN... |
src/components/address/Address.js | ipfs/webui | import React from 'react'
import Multiaddr from 'multiaddr'
const Address = ({ value }) => {
if (!value) return null
// future-proofing interop for multiaddr > 8.x
value = value.buffer || value
const ma = Multiaddr(value)
const protos = ma.protoNames().concat(['ipfs', 'p2p'])
const parts = ma.toString().... |
src/containers/Root.js | petersandor/react-weather-app | import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import { deepOrange500 } from 'material-ui/styles/colors';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemePr... |
src/components/error.js | BryceHQ/form-designer | import React from 'react';
import _ from 'lodash';
import Dialog from 'material-ui/lib/dialog';
import RaisedButton from 'material-ui/lib/raised-button';
import Alert from './common/alert';
const styles = {
actions: {
textAlign: 'center',
},
};
const ErrorDialog = React.createClass({
//@param error Arra... |
app/static/src/diagnostic/Norm_modules/NewNormFuranForm.js | vsilent/Vision | import React from 'react';
import Checkbox from 'react-bootstrap/lib/Checkbox';
import {findDOMNode} from 'react-dom';
import {hashHistory} from 'react-router';
import {Link} from 'react-router';
import {NotificationContainer, NotificationManager} from 'react-notifications';
import TextField from './TextField';
import... |
app/components/RootView.js | lotgd/client-react-native | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
StyleSheet,
View,
StatusBar,
} from 'react-native';
import { connect } from 'react-redux'
class RootView extends Component {
render() {
return (
<View style={styles.container}>
<StatusBar hidd... |
modules/ScrollManagementMixin.js | Sirlon/react-router | import React from 'react';
import { canUseDOM, setWindowScrollPosition } from './DOMUtils';
import NavigationTypes from './NavigationTypes';
var { func } = React.PropTypes;
function getCommonAncestors(branch, otherBranch) {
return branch.filter(route => otherBranch.indexOf(route) !== -1);
}
function shouldUpdateSc... |
ajax/libs/material-ui/5.0.0-beta.1/node/List/List.js | cdnjs/cdnjs | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
... |
app/js/components/page.js | leon-4A6C/tplay | import React from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import Item from "./item.js";
import tmdb from "../tmdb";
import { page } from "../actions";
class Page extends React.Component {
constructor(props) {
super(props);
this.loadedPages = 0;
this.scrollLoadO... |
graph/src/App.js | balaSpyrus/wave11 | import React, { Component } from 'react';
import axios from 'axios';
import {BarChart} from 'react-d3-components';
import HeatMap from 'react-heatmap-grid';
import './App.css'
class App extends Component {
state={
data : [{
label: 'ap1',
values: [{x: 'ap1', y: Math.floor(Math.random() * 100)}, {x: ... |
packages/material-ui-icons/src/BorderInnerTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M3 15h2v2H3zM3 3h2v2H3zm0 16h2v2H3zm8 2h2v-8h8v-2h-8V3h-2v8H3v2h8zm-4-2h2v2H7zm12-4h2v2h-2zm-4 4h2v2h-2zm4 0h2v2h-2zM3 7h2v2H3zm16 0h2v2h-2zM7 3h2v2H7zm8 0h2v2h-2zm4 0h2v2h-2z" />
, 'BorderInnerTwoTon... |
src/svg-icons/notification/bluetooth-audio.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationBluetoothAudio = (props) => (
<SvgIcon {...props}>
<path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-... |
src/helpers/__tests__/connectData-test.js | captainill/react-redux-universal-hot-example | import { expect } from 'chai';
import React from 'react';
import { div } from 'react-dom';
import connectData from '../connectData';
describe('connectData', () => {
let fetchData;
let fetchDataDeferred;
let WrappedComponent;
let DataComponent;
beforeEach(() => {
fetchData = 'fetchDataFunction';
fetc... |
examples/flux-chat/js/app.js | superphung/flux | /**
* This file is provided by Facebook for 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 FOR A PARTICUL... |
transitions/index.android.js | lintonye/react-native-diary | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import App from './app/App';
export default class Transitions extends Component {
render() {
return (
... |
packages/material-ui-icons/src/SignalCellular2BarSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M2 22h20V2L2 22z" /><path d="M14 10L2 22h12V10z" /></React.Fragment>
, 'SignalCellular2BarSharp');
|
src/flickr/components/FlickrForm.js | nnance/react-backbone-flux-example | import React from 'react';
import SingleInputForm from '../../shared/components/SingleInputForm';
module.exports = React.createClass({
onSubmit: function(value) {
this.props.onSearch(value);
},
render: function() {
return <SingleInputForm
className='form-control'
... |
lib-dist/svg-icons/maps/directions-bike.js | IsenrichO/mui-with-arrows | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
information/blendle-frontend-react-source/app/modules/coupon/GiftContainer.js | BramscoChill/BlendleParser | import React from 'react';
import CouponPage from 'modules/coupon/components/CouponPage';
import AltContainer from 'alt-container';
import GiftStore from 'stores/GiftStore';
import AuthStore from 'stores/AuthStore';
import GiftActions from 'actions/GiftActions';
function transformRewards(giftResponse) {
if (giftResp... |
frontend/src/components/eois/details/applications/openCfeiPreselected.js | unicef/un-partner-portal | import R from 'ramda';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { browserHistory as history } from 'react-router';
import { TableCell } from 'material-ui/Table';
import Typography from 'material-ui/Typography';
import PartnerProfileNameC... |
fields/types/relationship/RelationshipColumn.js | davibe/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#bbb',
fontSize: '.8rem',
fontWeight: 500,
marginLeft: 8,
};
var RelationshipColumn = React.create... |
files/zeroclipboard/2.1.3/ZeroClipboard.js | labsvisual/jsdelivr | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.1.3
*/
(function(window, undefined) {
"use strict";... |
apps/marketplace/components/Opportunity/EvaluationCriteria.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
import AUheading from '@gov.au/headings/lib/js/react.js'
import styles from './EvaluationCriteria.scss'
const EvaluationCriteria = props => (
<div className={styles.container}>
<div className="row">
<div
role="columnheader"
id="he... |
app/admin/components/AdminList.js | in42/internship-portal | import React from 'react';
import _ from 'lodash';
import { Container, Table, Message, Loader } from 'semantic-ui-react';
import PropTypes from 'prop-types';
import AdminListItem from './AdminListItem';
const AdminList = (props) => {
const admins = _.orderBy(props.admins, ['email'], ['asc']);
const adminList = adm... |
ajax/libs/material-ui/4.9.4/es/TableSortLabel/TableSortLabel.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import ArrowDownwardIcon from '../internal/svg-icons/ArrowDownward';
imp... |
app/components/ui/game/quest/quest-list.js | rensouhou/dockyard-app | /* eslint no-nested-ternary: 0 */
/**
* @overview
* @since 0.3.0
*/
import React from 'react';
import R from 'ramda';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { StaticPanel, Label } from '../../';
import { QuestState } from '../../../../constants';
const { cond, equals, always, T } = R;
/... |
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js | yaoliyc/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class UserProfileContactInfo extends React.Component {
static propTypes = {
phones: React.PropTypes.arr... |
ajax/libs/angular-ui-select/0.13.3/select.js | ahocevar/cdnjs | /*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.13.3 - 2016-01-25T22:42:29.532Z
* License: MIT
*/
(function () {
"use strict";
var KEY = {
TAB: 9,
ENTER: 13,
ESC: 27,
SPACE: 32,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
SHIFT: 16,
CTRL: 17,
ALT: 18,... |
src/svg-icons/av/library-books.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvLibraryBooks = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h1... |
react-router-demo/lessons/10-clean-urls/index.js | zhangjunhd/react-examples | import React from 'react'
import { render } from 'react-dom'
import { Router, Route, hashHistory, IndexRoute } from 'react-router'
import App from './modules/App'
import About from './modules/About'
import Repos from './modules/Repos'
import Repo from './modules/Repo'
import Home from './modules/Home'
render((
<Rout... |
src/ButtonToolbar.js | brentertz/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ButtonToolbar = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'button-toolbar'
};
},
render() {
let classes = this.getBsClassSet();
... |
ajax/libs/jqwidgets/10.1.6/jqwidgets-react-tsx/jqxtagcloud/react_jqxtagcloud.esm.min.js | cdnjs/cdnjs | import*as jqxcore from"../../jqwidgets/jqxcore";import*as jqxdata from"../../jqwidgets/jqxdata";import*as jqxbuttons from"../../jqwidgets/jqxbuttons";import*as jqxtagcloud from"../../jqwidgets/jqxtagcloud";import{createElement,PureComponent}from"react";var extendStatics=function(t,e){return(extendStatics=Object.setProt... |
cfg/base.js | chris-deng/gallery-by-react | '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/assets/javascripts/features/mapper/components/Properties/Properties.js | tlodge/uibuilder | import React, { Component } from 'react';
import CSSTransitionGroup from 'react-addons-css-transition-group';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Flex, Box } from 'reflexbox';
import '../../../../../styles/index.scss';
import Tabs from 'react-md/lib/Tabs/Tabs';
... |
src/Icon.js | pandoraui/react-ui | "use strict"
import React from 'react'
import classnames from 'classnames'
let prefix = "icon"
export default class Icon extends React.Component {
static displayName = 'Icon'
static propTypes = {
icon: React.PropTypes.string,
size: React.PropTypes.oneOfType([React.PropTypes.string, React.PropTypes.number... |
ajax/libs/js-data/1.6.2/js-data-debug.js | joeylakay/cdnjs | /*!
* js-data
* @version 1.6.2 - Homepage <http://www.js-data.io/>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Robust framework-agnostic data store.
*/
(function webpackUniversalModul... |
src/container.js | xorkevin/stratosphere | import React from 'react';
class Container extends React.Component {
render(){
const k = ["container"];
if(this.props.padded){
k.push("padded")
}
return <div className={k.join(" ")}>
{ this.props.children }
</div>;
}
}
export default Container
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.