path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/svg-icons/action/settings-power.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsPower = (props) => (
<SvgIcon {...props}>
<path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-... |
packages/material-ui-icons/src/DoneOutlineOutlined.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M19.77 4.93l1.4 1.4L8.43 19.07l-5.6-5.6 1.4-1.4 4.2 4.2L19.77 4.93m0-2.83L8.43 13.44l-4.2-4.2L0 13.47l8.43 8.43L24 6.33 19.77 2.1z" /></g></R... |
examples/CardSimple.js | jhernandezme/react-materialize | import React from 'react';
import Card from '../src/Card';
import Col from '../src/Col';
export default
<Col m={6} s={12}>
<Card className='blue-grey darken-1' textClassName='white-text' title='Card title' actions={[<a href='#'>This is a link</a>]}>
I am a very simple card.
</Card>
</Col>;
|
app/containers/SinglePost/index.js | DhammaLuke/affirmation | /*
*
* SinglePost
*
*/
import React from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import selectSinglePost from './selectors';
import PostView from '../../components/PostView/index';
export class SinglePost extends React.PureComponent { // eslint-disable-line react/prefer-... |
ajax/libs/forerunnerdb/1.3.630/fdb-core.min.js | jdh8/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... |
webpack/components/extensions/RegistrationCommands/fields/LifecycleEnvironment.js | Katello/katello | import React from 'react';
import PropTypes from 'prop-types';
import {
FormGroup,
FormSelectOption, FormSelect,
} from '@patternfly/react-core';
import { sprintf, translate as __ } from 'foremanReact/common/I18n';
import { noop } from 'foremanReact/common/helpers';
const LifecycleEnvironment = ({
pluginValues... |
demo/src/components/App/App.js | joshwcomeau/react-collection-helpers | /* eslint-disable max-len */
import React from 'react';
import Nav from '../Nav';
import Header from '../Header';
import MaxWidthWrapper from '../MaxWidthWrapper';
import ComponentName from '../ComponentName';
import FiddleEmbed from '../FiddleEmbed';
import Footer from '../Footer';
import './App.scss';
const App = ... |
src/layouts/CoreLayout.js | vizidrixfork/react-redux-starter-kit | import React from 'react';
import 'styles/core.scss';
export default class CoreLayout extends React.Component {
static propTypes = {
children : React.PropTypes.element
}
constructor () {
super();
}
render () {
return (
<div className='page-container'>
<div className='view-containe... |
ajax/libs/primereact/6.1.0/components/datatable/DataTable.min.js | cdnjs/cdnjs | "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Dat... |
ajax/libs/analytics.js/2.8.13/analytics.min.js | magoni/cdnjs | (function umd(require){if("object"==typeof exports){module.exports=require("1")}else if("function"==typeof define&&define.amd){define(function(){return require("1")})}else{this["analytics"]=require("1")}})(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[... |
node_modules/node-pre-gyp/node_modules/aws-sdk/dist/js/jquery-1.9.1.js | ranajays/bottomsUp | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
app/config/utils.js | Donluigimx/transporta2_admin | import React from 'react';
import {Redirect, Route} from "react-router-dom";
import {connect} from "react-redux";
export const PrivateRoute = connect(
(state) => ({
isAuthed: state.isAuthed,
})
)(({ component: Component, redirect, isAuthed, ...rest }) => (
<Route {...rest} render={props => (
... |
docs/src/app/components/pages/components/SvgIcon/ExampleIcons.js | ngbrown/material-ui | import React from 'react';
import ActionHome from 'material-ui/svg-icons/action/home';
import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff';
import FileCloudDownload from 'material-ui/svg-icons/file/cloud-download';
import HardwareVideogameAsset from 'material-ui/svg-icons/hardware/videogame-as... |
src/index.js | tcrosen/minimal-react-starter | import React from 'react';
import { render } from 'react-dom';
import a11y from 'react-a11y';
// Note: This is an intentionally verbose way of importing local files.
// It will be cleaned up in more advanced iterations of this project.
import App from './components/App/App.js';
// Enable accessibility warnings.
// Ple... |
src/with-data/index.js | ForbesLindesay/react-data-fetching-demo | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
ReactDOM.render(
<App/>,
document.getElementById('container'),
);
|
components/Flashcard.js | zuhairp/LearningSpace | import React from 'react';
import { Entity } from 'aframe-react';
import Text from './primitives/Text';
import Plane from './primitives/Plane';
export default props => {
const { text, position, scale, color } = props;
return (
<Entity position={position}>
<Plane height={1.5} width={3} rotation={[-15, 0,... |
frontend/src/components/customStepper/Step.js | unicef/un-partner-portal |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from 'material-ui/styles';
export const styleSheet = () => ({
root: {
flex: '0 0 auto',
},
horizontal: {
marginLeft: -6,
},
vertical: {
marginLeft: -14,
},
});
function S... |
test/ngettext-spec.js | bholloway/react-i18n-interpolation | import test from 'tape';
import sinon from 'sinon';
import React from 'react';
import {check, gen} from 'tape-check';
import {times, requireSrc} from './helpers';
import {
anyPrimitive, anyValue, anyUnkeyedComplexSubstitution,
anyKeyedPrimitiveSubstitutionKV, anyKeyedComplexSubstitutionKV,
anyIllegalPrimitiveSub... |
src/svg-icons/editor/insert-invitation.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertInvitation = (props) => (
<SvgIcon {...props}>
<path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/>
... |
dist/1.10.0/jquery-dimensions-event-alias-offset-wrap.min.js | michaelBenin/jquery-builder | /*! jQuery v1.10.0 -wrap,-event-alias,-offset,-dimensions | (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.0 -wrap,-event-alias,-offset,-dimensions",d=p.... |
src/components/organizations/organization-list.js | FranckCo/Operation-Explorer | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { organizationLink } from './routes';
import display from 'utils/display-results'
import D from 'i18n'
export default function OrganizationList({ organizations, title }) {
if (organizations.length === 0)
... |
wp-includes/js/jquery/jquery.js | peibabo/plugmin | /*! jQuery v1.11.0 | (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... |
client/js/Routes.js | unijs/demo | import React from 'react';
import {Route, DefaultRoute} from 'react-router';
import Main from './components/Main.react';
import Home from './components/Home.react';
import BlogPost from './components/BlogPost.react';
var routes = (
<Route handler={Main} name="main" path="/">
<Route handler={BlogPost} name="blogpo... |
examples/forms-material-ui/src/components/forms-update-optimistic/Layout.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import CodeExample from '../_common/CodeExample';
import PayloadStates from '../../constants/PayloadStates';
import Hook from './Hook';
import hookCode from '!raw-loader!./Hook';
import { Card } from 'mater... |
admin/client/components/ItemsTable/ItemsTableDragDrop.js | suryagh/keystone | import React from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import { Sortable } from './ItemsTableRow';
import DropZone from './ItemsTableDragDropZone';
var ItemsTableDragDrop = React.createClass({
displayName: 'ItemsTableDragDrop',
propTypes: {
colum... |
react_native_frontend/src/pages/privacy.js | CUNYTech/BudgetApp | import React, { Component } from 'react';
import { View, StyleSheet, TouchableOpacity, ScrollView } from 'react-native';
import { BackgroundWrapper } from '../components';
import { Container, Content, Text, Left, transparent, Right, Body, ListItem, Switch, Badge, Spinner } from 'native-base';
import Icon from 'react-na... |
client/src/AddResourceModal.js | roxroy/codeploy | import React, { Component } from 'react';
import Modal from 'react-modal';
//import {RadioGroup, Radio} from 'react-radio-group'
class AddResourceModal extends Component {
constructor(props) {
super(props);
this.save = this.save.bind(this);
this.state = {
errorVisible: "none",
errorText: nul... |
src/svg-icons/editor/vertical-align-top.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorVerticalAlignTop = (props) => (
<SvgIcon {...props}>
<path d="M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"/>
</SvgIcon>
);
EditorVerticalAlignTop = pure(EditorVerticalAlignTop);
EditorVerticalAlignTop.dis... |
misc/jquery.js | skokcha/bikegig |
/*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.... |
metashare/media/js/jquery-1.7.1.min.js | MiltosD/CEF-ELRC | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
Js/Backend/Modules/Jobs/Components/CronJobInstaller/CreateJobModal.js | Webiny/CronManager | import React from 'react';
import Webiny from 'webiny';
/**
* @i18n.namespace CronManager.Backend.Jobs.CronJobInstaller.CreateJobModal
*/
class CronJobModal extends Webiny.Ui.ModalComponent {
renderTargetInput(model) {
const urlDescription = this.i18n(`You can use variables like {apiPath} and {webPath} i... |
src/js/components/Posts.spec.js | slavapavlutin/pavlutin-node | import React from 'react';
import render from 'react-test-renderer';
import { MemoryRouter as Router } from 'react-router-dom';
import Posts from './Posts';
const posts = [
{ id: 0, title: 'First Post', tags: ['js'] },
{ id: 1, title: 'Second Post' },
];
it('renders posts', () => {
const tree = render.create(<R... |
src/app/components/footer.js | webcoding/soapee-ui | import React from 'react';
import ShareThis from 'components/shareThis';
export default React.createClass( {
shouldComponentUpdate() {
return false;
},
render() {
return (
<footer className="footer hidden-print">
<div className="container">
... |
frontend/node_modules/react-dom/umd/react-dom-server.browser.development.js | justdotJS/rowboat | /** @license React v16.0.0-rc.3
* react-dom-server.browser.development.js
*
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights c... |
src/pages/news/CBA/NewsCBAWoman.js | HeliumLau/Hoop-react | import React from 'react';
import NewsList from 'components/NewsList.js';
export default class NewsCBAWoman extends React.Component {
render() {
const list = [
{
title: '王治郅微微一笑,已深得主教练信任',
lNum: '28',
cNum: '212',
bgurl: 'htt... |
ajax/libs/yui/3.1.0/loader/loader-base.js | pm5/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
(function() {
var VERSION = Y.version,
CONFIG = Y.config,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSION = ... |
jqwidgets/jqwidgets-react/react_jqxdropdownlist.js | UCF/IKM-APIM | /*
jQWidgets v5.6.0 (2018-Feb)
Copyright (c) 2011-2017 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxDropDownList extends React.Component {
componentDidMount() {
let options = this.m... |
src/browser/app/Root.js | skallet/este | // @flow
import App from './App';
import React from 'react';
import configureFela from '../configureFela';
import { BrowserRouter } from 'react-router';
import { Provider as Fela } from 'react-fela';
import { Provider as Redux } from 'react-redux';
type Props = {
store: Object,
};
// This should be part of Fela.
//... |
ajax/libs/yui/3.3.0pr3/event-custom/event-custom.js | sympmarc/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module ev... |
lib/go-types-view.js | natdm/go-types-atom | 'use babel';
import ReactDOM from 'react-dom';
import React from 'react';
import View from './components';
import { NoGo, Error, LoadingMessage } from './components/components';
const exec = require('child_process').exec;
const fs = require('fs');
// the compatible version of go-typelist
const compatibleVersion = '0.0... |
src/native/app/Menu.react.js | XeeD/test | import Component from '../components/Component.react';
import Dimensions from 'Dimensions';
import React from 'react-native';
const {
PropTypes, ScrollView, StyleSheet, Text, View
} = React;
const window = Dimensions.get('window');
const styles = StyleSheet.create({
container: {
backgroundColor: '#2C2C2C',
... |
src/components/Roll.js | cannc4/Siren | import _ from 'lodash';
import React from 'react';
import { inject, observer } from 'mobx-react';
import timeLoop from '../utils/timeLoop';
import rollStore from '../stores/rollStore';
class RollCanvas extends React.Component {
render() {
// console.log("RENDER CANVASLOOP");
rollStore.value_t... |
src/svg-icons/image/wb-cloudy.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageWbCloudy = (props) => (
<SvgIcon {...props}>
<path d="M19.36 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.64-4.96... |
files/rxjs/2.3.6/rx.lite.js | yaplas/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
docs/app/Examples/collections/Grid/Variations/GridExamplePaddedVertically.js | koenvg/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExamplePaddedVertically = () => (
<div>
<p>The following grid has vertical gutters.</p>
<Grid columns={2} padded='vertically'>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />... |
core/DOMUtils.js | jansmolders86/yet-another-react-flux-boilerplate | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
export function addEventListener(node, event, listener) {
... |
examples/huge-apps/components/GlobalNav.js | runlevelsix/react-router | import React from 'react';
import { Link } from 'react-router';
const styles = {};
class GlobalNav extends React.Component {
static defaultProps = {
user: {
id: 1,
name: 'Ryan Florence'
}
};
constructor (props, context) {
super(props, context);
this.logOut = this.logOut.bind(this);... |
src/toolbar/ClearSearchButton.js | prajapati-parth/react-bootstrap-table | import React, { Component } from 'react';
import PropTypes from 'prop-types';
const clearBtnDefaultClass = 'react-bs-table-search-clear-btn';
class ClearSearchButton extends Component {
render() {
const {
btnContextual,
className,
onClick,
btnText,
children,
...rest
} = ... |
src/components/header/leftMenu.js | fmsouza/wcode | import React from 'react';
import * as Action from 'common/actions';
export default class LeftMenu extends React.Component {
state = { collapsed: { fileMenu: true } };
get menuCollapsed() {
return Object.keys(this.state.collapsed).map(key => this.state.collapsed[key])
.reduce((prev, next)... |
src/swagger-ui/lib/jquery-1.8.0.min.js | lukeautry/tsoa-example | /*! jQuery v@1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==... |
src/app/components/Footer/Footer.js | kresimircoko/empathy | import React from 'react';
const Footer = () => {
return (
<footer id="site-footer">
<div className="container">
<p>Some meaningful information about the guild</p>
</div>
</footer>
)
}
export default Footer;
|
dev/react-subjects/subjects/ServerRendering/solution/App.js | AlanWarren/dotfiles | import React from 'react'
class App extends React.Component {
static propTypes = {
contacts: React.PropTypes.array
}
render() {
const { contacts } = this.props
return (
<div>
<h1>¡Universal App!</h1>
{contacts ? (
<ul>
{contacts.map(contact => (
... |
node_modules/react/lib/ReactTransitionEvents.js | AndrejLavrinovic/reacttutorial | /**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
'use strict... |
src/components/shell/header/Header.js | fredmarques/petshop | import React, { Component } from 'react';
import logo from '../../../logo.svg';
class Header extends Component {
render() {
return (
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<span style={{fontSize: 30, color: "#42cef4"}}>PetCare</span>
</div>
... |
pkg/interface/groups/src/js/components/lib/contact-sidebar.js | jfranklin9000/urbit | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { ContactItem } from '/components/lib/contact-item';
import { ShareSheet } from '/components/lib/share-sheet';
import { Sigil } from '../lib/icons/sigil';
import { Spinner } from '../lib/icons/icon-spinner';
import { cite } from '... |
node_modules/gulp-bower/node_modules/bower/node_modules/inquirer/node_modules/rx/src/core/linq/observable/amb.js | chi-sea-lions-2015/house-rules-frontend | /**
* Propagates the observable sequence or Promise that reacts first.
*
* @example
* var = Rx.Observable.amb(xs, ys, zs);
* @returns {Observable} An observable sequence that surfaces any of the given sequences, whichever reacted first.
*/
Observable.amb = function () {
var acc = observableNev... |
src/Checkbox.js | tanbo800/react-ui | "use strict"
import React from 'react'
import classnames from 'classnames'
import { requireCss } from './themes'
requireCss('checkbox')
class Checkbox extends React.Component {
static displayName = "Checkbox"
static propTypes = {
checked: React.PropTypes.bool,
children: React.PropTypes.any,
className... |
client/src/components/Item.js | teddy-ma/github-comment | import React, { Component } from 'react';
import Avatar from './Avatar.js';
import Content from './Content.js';
import InlineItem from '../styles/InlineItem.js';
class Item extends Component {
render() {
return (
<InlineItem>
<Avatar user={this.props.user} />
<Content content={this.props.co... |
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js | JamesWatling/actor-platform | import _ from 'lodash';
import Immutable from 'immutable';
import keymirror from 'keymirror';
import React from 'react';
import { Styles, TextField, FlatButton } from 'material-ui';
import CreateGroupActionCreators from '../../../actions/CreateGroupActionCreators';
import ContactStore from '../../../stores/ContactSt... |
public/assets/application-977e15c2e755e037c206ea82691f122c24e247b6d6072a736f838f4b16dcf698.js | 3osman/pharmacy_handling | !function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.moment=b()}(this,function(){"use strict";function a(){return Md.apply(null,arguments)}function b(a){Md=a}function c(a){return"[object Array]"===Object.prototype.toString.call(a)}funct... |
client/extensions/woocommerce/app/settings/shipping/shipping-zone/shipping-methods/free-shipping.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
import { localize } from 'i18n-calypso';
import { connect } from 'react-redux';
/**
* Internal dependencies
*/
import FormFieldSet from 'components/forms/form-fieldset';
import FormLabel from 'components/... |
docs/src/pages/demos/snackbars/SimpleSnackbar.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Button from 'material-ui/Button';
import Snackbar from 'material-ui/Snackbar';
import IconButton from 'material-ui/IconButton';
import CloseIcon from '@material-ui/icons/Close';
const styles = theme =... |
app/javascript/mastodon/features/compose/index.js | cobodo/mastodon | import React from 'react';
import ComposeFormContainer from './containers/compose_form_container';
import NavigationContainer from './containers/navigation_container';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { mountCom... |
src/components/Cube.js | ryyppy/redux-word-gl | import React from 'react';
export default class Cube extends React.Component {
render() {
const { value } = this.props;
return (
<span>{ value }</span>
);
}
}
Cube.propTypes = {
value: React.PropTypes.string,
};
|
src/List/NestedList.spec.js | IsenrichO/mui-with-arrows | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import NestedList from './NestedList';
describe('<NestedList />', () => {
describe('prop: open', () => {
it('should render the children when open is true', () => {
const wrapper = shallow(
... |
src/containers/Introduce.js | FAN-CUK/official | import React from 'react';
import { Main } from 'components';
class Introduce extends React.Component {
render() {
return(
<Main />
);
}
}
export default Introduce;
|
modules/publication/jsx/uploadForm.js | kongtiaowang/Loris | import React from 'react';
import ProjectFormFields from './projectFields';
import swal from 'sweetalert2';
/**
* Publication upload form component
*/
class PublicationUploadForm extends React.Component {
/**
* @constructor
* @param {object} props - React Component properties
*/
constructor(props) {
... |
docs/app/Examples/views/Comment/Types/CommentExampleComment.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Button, Comment, Form, Header } from 'semantic-ui-react'
const CommentExampleComment = () => (
<Comment.Group>
<Header as='h3' dividing>Comments</Header>
<Comment>
<Comment.Avatar src='/assets/images/avatar/small/matt.jpg' />
<Comment.Content>
<Comment.... |
src/AffixMixin.js | brynjagr/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
const AffixMixin = {
propTypes: {
offset: React.PropTypes.number,
offsetTop: React.PropTypes.number,
offsetBottom: React.PropTypes.number
},
getInitialState() {
return {
a... |
app/components/player/Player.js | EstebanFuentealba/t13 | import React from 'react';
import {
StyleSheet,
View
} from 'react-native';
import Video from 'react-native-video';
import { toggleIsPlaying } from '../../actions/playerActions';
export default class Player extends React.Component {
constructor(props) {
super(props);
this.state = {
paused: false,
... |
files/babel/5.2.9/browser-polyfill.js | Valve/jsdelivr | (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/containers/MainContainer.js | maximgatilin/weathernow | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as actionCreators from './../actions/actionCreators';
import Main from './../components/Main/Main';
class MainContainer extends Component {
componentDidMount() {
this.props.actions.d... |
src/components/examples/ClockHook.js | heartziq/Allimnee | import React from 'react';
function Main() {
const [date, setDate] = React.useState(new Date());
let timerId;
const color = [
"#ff5733",
"#900C3F",
"#33ceff",
" #f333ff ",
"#34b636",
" #e24faf ",
" #e24fa4 ",
" #32a065 ",
" #9bd32b ",
" #d36d2b "
];
React.useEffect((... |
client/react/frontpage/components/SportsUpdate.js | uclaradio/uclaradio | //SportsUpdate.js
import React from 'react';
import './SportsUpdate.scss';
const SoccerUpdate = () => (
<div id="container">
<div id="sportball">⚾</div>
<div id="linkContainer">
<a
class="blinkText"
target="_blank"
href="https://ucla.leanplayer.com/mobile"
>
“UCLA... |
js/src/dapps/tokenreg/Inputs/Text/container.js | pdaian/parity | // Copyright 2015, 2016 Ethcore (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.... |
src/components/UserProvider.js | OpenCollective/frontend | import React from 'react';
import { isEqual } from 'lodash';
import { withApollo } from 'react-apollo';
import withLoggedInUser from '../lib/withLoggedInUser';
import UserClass from '../classes/LoggedInUser';
export const UserContext = React.createContext({
loadingLoggedInUser: true,
LoggedInUser: null,
logout(... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | jepezi/react-router | import React from 'react';
class Assignments extends React.Component {
render () {
return (
<div>
<h3>Assignments</h3>
{this.props.children || <p>Choose an assignment from the sidebar.</p>}
</div>
);
}
}
export default Assignments;
|
app/RootComponent.js | AngelHorn/react-redux-demo | import React from 'react';
import {connect} from 'react-redux';
import { reduxReactRouter, routerStateReducer, ReduxRouter,pushState } from 'redux-router';
import {Link} from 'react-router';
//引入connect需要的映射方法
import {mapStateToProps,mapDispatchToProps} from './maptoProps';
//引入下级组件
import {FuckComponent} from './com... |
ajax/libs/rxjs/2.4.5/rx.all.compat.js | freak3dot/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
... |
assets/plugins/jquery-rss/lib/jquery-1.6.4.min.js | MNauman025/Resume | /*! 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"... |
__test__/bootstrap.js | BrisklyPapers/react | import React from 'react';
import ReactDOM from 'react-dom';
import ReactTestUtils from 'react-dom/test-utils';
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-15';
configure({ adapter: new Adapter() });
window.clickMaterialUiFlatButton = (wrapper, id) => {
// enzyme does not suppor... |
ajax/libs/material-ui/4.9.11/esm/test-utils/findOutermostIntrinsic.js | cdnjs/cdnjs | /**
* checks if a given react wrapper wraps an intrinsic element i.e. a DOM node
*
* @param {import('enzyme').ReactWrapper} reactWrapper
* @returns {boolean} true if the given reactWrapper wraps an intrinsic element
*/
export function wrapsIntrinsicElement(reactWrapper) {
return typeof reactWrapper.type() === 's... |
app/webroot/js/theme/lib/formwizard/js/jquery-1.4.2.min.js | LINUXADDICT/cakecrud | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
client/acp/view/display/save-button.js | NicolasSiver/nodebb-plugin-ns-points | import React from 'react';
const SaveButton = ({enabled, clickHandler}) => {
if (enabled) {
return (
<button
className="btn btn-primary"
type="button"
onClick={clickHandler}><i className="fa fa-floppy-o"></i> Save Changes
</button>
... |
src/utils/createContextWrapper.js | thealjey/react-bootstrap | import React from 'react';
/**
* Creates new trigger class that injects context into overlay.
*/
export default function createContextWrapper(Trigger, propName) {
return function(contextTypes) {
class ContextWrapper extends React.Component {
getChildContext() {
return this.props.context;
}
... |
examples/01 Dustbin/Multiple Targets/index.js | wagonhq/react-dnd | import React from 'react';
import Container from './Container';
export default class DustbinMultipleTargets {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Multiple%20Targets'>Browse the Source</a></b>
</p>
... |
ajax/libs/react-chartjs-2/1.2.2/react-chartjs-2.min.js | dakshshah96/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Chart=e()}}(function(){return function e(t,n,r){functio... |
src/components/Square.js | kjirou/reversi-tactics | import { Component } from 'flumpt';
import React from 'react';
import FlipBook from 'react-flip-book';
import { REVERSI_PIECE_TYPES, STYLES } from '../consts';
import EventHandlerCarrier from '../lib/EventHandlerCarrier';
import AnimatedIcon from './AnimatedIcon';
export default class Square extends Component {
_... |
components/react-semantify/src/views/feed.js | react-douban/douban-book-web | import React from 'react';
import ClassGenerator from '../mixins/classGenerator';
let defaultClassName = 'ui feed';
const Feed = React.createClass({
mixins: [ClassGenerator],
render: function () {
let {className, ...other} = this.props;
return (
<div {...other} className={this.getClassName(defau... |
lib/openlayers/lib/OpenLayers/Control/Panel.js | skruse/PLATIN | /* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the 2-clause BSD license.
* See license.txt in the OpenLayers distribution or repository for the
* full text of the license. */
/**
* @requires OpenLayers/Control.js
* @requires OpenLayers/Even... |
node_modules/babel-traverse/lib/path/lib/hoister.js | Sweetgrassbuffalo/ReactionSweeGrass-v2 | "use strict";
exports.__esModule = true;
var _getIterator2 = require("babel-runtime/core-js/get-iterator");
var _getIterator3 = _interopRequireDefault(_getIterator2);
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _babel... |
src/entity_inputs/LinkInput.js | panter/megadraft | /*
* Copyright (c) 2016, Globo.com (https://github.com/globocom)
*
* License: MIT
*/
import React, {Component} from "react";
import icons from "../icons";
export default class LinkInput extends Component {
constructor(props) {
super(props);
this.state = {
url: props && props.url || ""
};
... |
Examples/UIExplorer/createExamplePage.js | zhaoxingyu/rn-for-eclipse | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
definitions/npm/styled-components_v2.x.x/flow_v0.53.x-/test_styled-components_native_v2.x.x.js | hansonw/flow-typed | // @flow
import nativeStyled, {
ThemeProvider as NativeThemeProvider,
withTheme as nativeWithTheme,
keyframes as nativeKeyframes,
} from 'styled-components/native'
import React from 'react'
import type {
Theme as NativeTheme,
Interpolation as NativeInterpolation,
ReactComponentFunctional as NativeReactCompo... |
packages/material-ui-icons/src/RadioButtonUncheckedTwoTone.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 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" />
, 'RadioButtonUncheckedTwoTone');
|
src/client/wallet/Wallet.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { injectIntl } from 'react-intl';
import Affix from '../components/Utils/Affix';
import LeftSidebar from '../app/Sidebar/LeftSidebar';
import WalletSidebar from '../components/Sidebar/WalletSidebar';
import UserWall... |
components/Player/index.js | sikhote/clairic | import React from 'react';
import { findDOMNode } from 'react-dom';
import PropTypes from 'prop-types';
import ReactPlayer from 'react-player';
import { merge, get, throttle } from 'lodash';
import screenfull from 'screenfull';
import moment from 'moment';
import { connect } from 'react-redux';
import IconButton from '... |
src/svg-icons/notification/phone-in-talk.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhoneInTalk = (props) => (
<SvgIcon {...props}>
<path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5... |
js/components/pages/NotFound.react.js | jsphdnl/Dreamers | import React, { Component } from 'react';
import { Link } from 'react-router';
class NotFound extends Component {
render() {
return (
<article>
<h1>Page not found.</h1>
<Link to="/" className="btn">Home</Link>
</article>
);
}
}
export default NotFound;
|
packages/mui-icons-material/lib/SendTwoTone.js | oliviertassinari/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")... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.