path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
catalog/app/utils/Dialogs.js | quiltdata/quilt | import * as React from 'react'
import Dialog from '@material-ui/core/Dialog'
import defer from 'utils/defer'
export const useDialogs = () => {
// open | closed | closing
const [state, setState] = React.useState('closed')
// { render, resolver }
const [dialog, setDialog] = React.useState(null)
const open = ... |
flow-typed/npm/flow-coverage-report_vx.x.x.js | movio/apidoc-ui | // flow-typed signature: 8f76ee7ec18a6190908237ec630ca6c0
// flow-typed version: <<STUB>>/flow-coverage-report_v^0.3.0/flow_v0.41.0
/**
* This is an autogenerated libdef stub for:
*
* 'flow-coverage-report'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share... |
client/src/auth/SignIn.js | flyrightsister/boxcharter | /*
* Copyright (c) 2017 Bonnie Schulkin. All Rights Reserved.
*
* This file is part of BoxCharter.
*
* BoxCharter is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, either version 3 of the License, ... |
src/components/pages/Account/Logout.js | ESTEBANMURUZABAL/bananaStore | /**
* Imports
*/
import React from 'react';
import connectToStores from 'fluxible-addons-react/connectToStores';
import {FormattedMessage} from 'react-intl';
// Flux
import AccountStore from '../../../stores/Account/AccountStore';
import IntlStore from '../../../stores/Application/IntlStore';
import logout from '../... |
ajax/libs/highmaps/1.1.0/highmaps.src.js | kristoferjoseph/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highmaps JS v1.1.0 (2015-02-16)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearTi... |
ajax/libs/reactive-elements/0.5.9/reactive-elements.min.js | kennynaoh/cdnjs | !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.ReactiveElements=e()}}(function(){var define,module,exports;return function e(t,r,n)... |
examples/animations/app.js | rubengrill/react-router | import React from 'react'
import { render } from 'react-dom'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
import StaticContainer from 'react-static-container'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link } from 'react-router'
require('./app.css')
const h... |
test/components/test-button-favorite.js | bokuweb/tomato_pasta | import assert from 'power-assert';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import Button from '../../src/components/button-favorite';
describe('Favorite Button Component test', () => {
it ('Should button classname is item__button--favoritewhen not... |
source/containers/VideoPage/Details/Description.js | mikey1384/twin-kle | import React from 'react';
import PropTypes from 'prop-types';
import Textarea from 'components/Texts/Textarea';
import LongText from 'components/Texts/LongText';
import Button from 'components/Button';
import { renderCharLimit, stringIsEmpty } from 'helpers/stringHelpers';
import { edit } from 'constants/placeholders'... |
packages/material-ui-icons/src/NetworkLockedRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0z" /><g><path d="M22 16v-.5c0-1.38-1.12-2.5-2.5-2.5S17 14.12 17 15.5v.5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-4c0-.55-.45-1-1-1z... |
src/svg-icons/communication/clear-all.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationClearAll = (props) => (
<SvgIcon {...props}>
<path d="M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z"/>
</SvgIcon>
);
CommunicationClearAll = pure(CommunicationClearAll);
CommunicationClearAll.di... |
src/common/components/forms/user/RegisterForm.js | gocreating/express-react-hmr-boilerplate | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { Field, reduxForm } from 'redux-form';
import Alert from 'react-bootstrap/lib/Alert';
import Button from 'react-bootstrap/lib/Button';
// import validator from 'validator';
import FormName... |
src/list-item.js | anara123/udemy-react-todo-app | import React from 'react';
const rootUrl = 'https://brilliant-inferno-1304.firebaseio.com/';
var ListItem = React.createClass({
getInitialState: function() {
return {
text: this.props.item.text,
done: this.props.item.done,
textEdited: false
};
},
componentWillMount: function() {
this.fb = new Fire... |
src/views/target/Glance.js | anysome/objective | /**
* Created by Layman(http://github.com/anysome) on 16/3/11.
*/
import React from 'react';
import {StyleSheet, ScrollView, View, Text, TouchableOpacity} from 'react-native';
import { AnimatedCircularProgress } from 'react-native-circular-progress';
import Button from 'react-native-button';
import {analytics, style... |
src/containers/AuthorsList/Page.js | LifeSourceUA/lifesource.ua | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import Meta from './Meta';
// import * as Book from 'components/Book';
import * as Common from 'components/Common';
import breadcrumbs from './Mock/Breadcrumbs.json';
import headerMenuItems from './Mock/HeaderMenu.json';
class AuthorsListPa... |
ajax/libs/core-js/1.2.6/shim.js | seogi1004/cdnjs | /**
* core-js 1.2.6
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
files/rxjs/2.3.25/rx.lite.compat.js | vvo/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... |
src/components/Layout.js | MattMcFarland/codepix-client | import React from 'react';
import { Link } from 'react-router';
import {
Navbar,
Nav,
MenuItem,
Modal,
Button,
NavDropdown
} from 'react-bootstrap';
import { SignupForm, LoginForm } from './';
import { AppActions } from '../actions/AppActions';
import { AppStore } from '../stores/AppStore';
import Notificat... |
ajax/libs/react-datetime/2.8.4/react-datetime.js | sashberd/cdnjs | /*
react-datetime v2.8.4
https://github.com/arqex/react-datetime
MIT: https://github.com/arqex/react-datetime/raw/master/LICENSE
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("moment"), require("React"), r... |
src/components/flex/flex.js | n7best/react-weui | //1.0.0 components
import React from 'react';
/**
* FlexItem Container
*
*/
const Flex = (props) => (
<div className="weui-flex" {...props}>
{ props.children }
</div>
);
export default Flex; |
src/client/js/components/LoginForm.js | neffka/ssi | import React from 'react';
export default class LoginForm extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div style={{visibility: this.props.visibility, position: 'fixed', fontFamily: ["Lucida Sans Unicode", "Lucida Grande", 'sans-serif'], fontSize: 12 + 'px', left: 40 + '... |
packages/@vega/article-state-tool/src/index.js | VegaPublish/vega-studio | import React from 'react'
import ArticleStateTool from './components/ArticleStateTool'
import {route} from 'part:@vega/core/router'
import routerParams from '@vega/utils/routerParams'
const icon = () => <span />
const INTENT_NAMES = ['state']
const ACCEPTED_TYPES = ['article']
function canHandleIntent(intentName, pa... |
node_modules/react/lib/ReactElement.js | yhx0634/foodshopfront | /**
* Copyright 2014-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/containers/json_get.js | b0ts/react-redux-sweetlightstudios-website | import React, { Component } from 'react';
import { connect } from 'react-redux'; // glue between react and redux
class JsonGet extends Component {
render() {
return (
<div>
<h2> { (this.props.jsonTest ) ? this.props.jsonTest.title : ""} </h2>
<p> { (this.props.jsonTest) ? this.props.jsonTest.content : ""... |
src/index.js | sonaak/react-components | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
node_modules/react-flexbox-grid/spec/root.js | SerendpityZOEY/Solr-Search-React-UI | /* global VERSION */
require('./stylesheets/base');
import box from './stylesheets/modules/box';
import React from 'react';
import {Grid, Row, Col} from '../src/index';
const Root = () => (
<div>
<h1>React Flexbox Grid <small>Spec {VERSION}</small></h1>
<Grid>
<Row>
<Col xs={12} sm={3} md={2} ... |
ajax/libs/preact/8.0.1/preact.js | hare1039/cdnjs | !function() {
'use strict';
function VNode() {}
function h(nodeName, attributes) {
var lastSimple, child, simple, i, children = EMPTY_CHILDREN;
for (i = arguments.length; i-- > 2; ) stack.push(arguments[i]);
if (attributes && null != attributes.children) {
if (!stack.leng... |
src/svg-icons/image/rotate-90-degrees-ccw.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageRotate90DegreesCcw = (props) => (
<SvgIcon {...props}>
<path d="M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26C17.61 4.88 15.3 4 13 4V.76L8.7... |
docs/src/pages/components/dialogs/ScrollDialog.js | kybarg/material-ui | import React from 'react';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogContentText';
import D... |
ajax/libs/babel-core/4.7.9/browser.min.js | brix/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.babel=e()}}(function(){var e,n,l;return function t(e,n,... |
ajax/libs/ember-data.js/2.1.0-beta.4/ember-data.js | sajochiu/cdnjs | (function() {
"use strict";
var ember$lib$main$$default = Ember;
var ember$data$lib$adapters$build$url$mixin$$get = Ember.get;
var ember$data$lib$adapters$build$url$mixin$$default = Ember.Mixin.create({
/**
Builds a URL for a given type and optional ID.
By default, it pluralizes ... |
ajax/libs/flocks.js/1.5.0/flocks.min.js | CosmicWebServices/cdnjs | if("undefined"===typeof React)var React=require("react");
(function(){function h(a){return"[object Array]"===Object.prototype.toString.call(a)}function l(a){return"undefined"===typeof a}function v(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function b(a,c){if("string"===type... |
node_modules/react-bootstrap/es/Tabs.js | acalabano/get-committed | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
test/SplitButtonSpec.js | tannewt/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import SplitButton from '../src/SplitButton';
import MenuItem from '../src/MenuItem';
import Button from '../src/Button';
describe('SplitButton', function () {
let instance;
afterEach(function() {
if (instance && ReactTestUtils.i... |
Web/src/components/ValidatedInput/InputContainer.js | CMITInternational/Guitars | import React from 'react';
export default class InputContainer extends React.Component {
componentWillMount () {
this._inputs = {};
}
componentWillUnmount () {
}
registerInput (input) {
let type = input.props.type;
let name = input.props.name;
if (!name) {
throw new Error('Input ' +... |
src/components/TextArea/Textarea-story.js | wfp/ui | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKnobs, boolean, number, text } from '@storybook/addon-knobs';
import TextArea from '../TextArea';
import TextAreaSkeleton from '../TextArea/TextArea.Skeleton';
const TextAreaProps = ... |
docs/src/pages/system/basics/Variant.js | allanalexandre/material-ui | import React from 'react';
import styled, { ThemeProvider } from 'styled-components';
import NoSsr from '@material-ui/core/NoSsr';
import { style, typography } from '@material-ui/system';
const variant = style({
prop: 'variant',
cssProperty: false,
themeKey: 'typography',
});
// ⚠ Text is already defined in the... |
site/IndexPage.js | Reggino/react-dnd | import './base.less';
import Constants, { APIPages, ExamplePages, Pages } from './Constants';
import HomePage from './pages/HomePage';
import APIPage from './pages/APIPage';
import ExamplePage from './pages/ExamplePage';
import React, { Component } from 'react';
const APIDocs = {
OVERVIEW: require('../docs/00 Quick ... |
app/javascript/mastodon/containers/compose_container.js | sylph-sin-tyaku/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { hydrateStore } from '../actions/store';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import Compose f... |
Realization/frontend/czechidm-core/src/components/basic/HelpIcon/HelpIcon.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
//
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogConten... |
ajax/libs/primereact/6.5.0/accordion/accordion.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { UniqueComponentId, classNames, ObjectUtils, CSSTransition } from 'primereact/core';
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) {
arr2[i] = arr[i];
}
r... |
src/app/common/UserInterface/components/Image.js | toxzilla/app | import React from 'react';
import shallowCompare from 'react-addons-shallow-compare';
import {classNames, compose as composeStyle, ease} from 'react-dom-stylesheet';
export default class Image extends React.Component {
static displayName = 'Image'
static propTypes = {
src: React.PropTypes.string.isRequired,
... |
app/react-app/src/components/Footer/index.js | dockersamples/atsea-sample-shop-app | import React from 'react';
import './styles.css'
const Footer = () => {
return (
<div className='footer'>
<div className='copyright'>
© 2017
</div>
</div>
);
}
export default Footer;
|
client/react/src/components/category/CategoryForm.js | peasy/peasy-js-samples | import React from 'react';
import TextInput from '../common/TextInput';
const CategoryForm = ({viewModel, onSave, onChange, saving, errors, onCancel}) => {
return (
<form>
<TextInput
name="name"
label="Name"
value={viewModel.entity.name}
onChange={onChange}
errors={e... |
bin/files/javascript/App.js | viromedia/viro | /**
* Copyright (c) 2017-present, Viro, 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 React, ... |
demo/sections/Tables.js | joshq00/react-mdl | import React from 'react';
import Example from './Example';
import DataTable from '../../src/DataTable';
export default ( props ) => (
<section { ...props }>
<h3>Tables</h3>
<Example>
<DataTable
selectable
style={{margin: 'auto'}}
columns={[
... |
src/components/common/svg-icons/communication/stay-primary-landscape.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStayPrimaryLandscape = (props) => (
<SvgIcon {...props}>
<path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/>
</SvgIcon>
);
Communicat... |
src/components/views/elements/LanguageDropdown.js | aperezdc/matrix-react-sdk | /*
Copyright 2017 Marcel Radzio (MTRNord)
Copyright 2017 Vector Creations Ltd.
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 app... |
react/ReactApp.js | vitalibynda/webpacknow | import React from 'react';
import { render } from 'react-dom';
import MainComponent from './mainComponent';
const mountNode = document.getElementById('mountNode');
render( < MainComponent /> , mountNode);
|
docs/src/app/components/pages/components/AutoComplete/Page.js | rhaedes/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import autoCompleteReadmeText from './README';
import autoCompleteCode from '!ra... |
app/components/screens/dashboard-screen.js | joeyschroeder/speedometer-app | import { Constants, KeepAwake } from 'expo';
import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import { resetSpeeds, resetTopSpeed } from '../../ducks/speed';
import { Compass } from '../compass';
import { LineChart } from '../line-chart';
import PropTypes from 'prop-types';
im... |
modules/dreamview/frontend/src/components/TeleopMonitor/CarTeleop.js | ApolloAuto/apollo | import React from 'react';
import { inject, observer } from 'mobx-react';
import { TELEOP_WS } from 'store/websocket';
import AudioControl from 'components/TeleopMonitor/AudioControl';
import MonitorSection from 'components/TeleopMonitor/MonitorSection';
import itemIcon from 'assets/images/icons/teleop_item.png';
@... |
src/Card/CardMedia.js | AndriusBil/material-ui | // @flow
import React from 'react';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = {
root: {
backgroundSize: 'cover',
backgroundRepeat: 'no-repeat',
backgroundPosition: 'center',
},
};
type DefaultProps = {
classes: Object,
};
export type ... |
ajax/libs/forerunnerdb/1.3.33/fdb-all.js | kiwi89/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... |
client/screens/components/table/Components/Header.js | francixcoag/trace_packages | import React from 'react';
import ExactFilters from './ExactFilters.js';
import DateFilters from './DateRangeFilter.js';
class Header extends React.Component {
constructor(props) {
super(props)
this.filterChanged = this.filterChanged.bind(this);
this.updateDate = this.updateDate.bind(this);
}
st... |
src/common/components/select-repository-row/index.js | canonical-websites/build.snapcraft.io | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import classNames from 'classnames';
import styles from './selectRepositoryRow.css';
class SelectRepositoryRow extends Component {
render() {
const {
errorMsg,
repository,
onChange,
isRepoEnabled // is reposit... |
src/components/FormRow.js | LegNeato/elemental | var React = require('react/addons');
var classNames = require('classnames');
module.exports = React.createClass({
displayName: 'FormRow',
propTypes: {
className: React.PropTypes.string
},
render() {
var className = classNames('FormRow', this.props.className);
return (
<div className={className}>
{thi... |
test/PaginationSpec.js | Sipree/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Pagination from '../src/Pagination';
describe('Pagination', () => {
it('Should have class', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Pagination>Item content</Pagination>
);
assert.ok(ReactTes... |
tests/react-api.tests.js | Mavrin/component-inspector | import {assert} from 'chai';
import React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import App from './../examples/react-todomvc/containers/App';
console.log('React version', React.version);
describe('react api test', function() {
before(function() {
this.domContainer = document.c... |
ajax/libs/react-data-grid/0.12.23/react-data-grid.js | pvnr0082t/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["ReactDataGrid"] = f... |
src/svg-icons/navigation/arrow-drop-down-circle.js | mtsandeep/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 =... |
src/svg-icons/device/signal-cellular-3-bar.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular3Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/>
</SvgIcon>
);
DeviceSignalCellular3Bar = pure(DeviceSignalCellular3Bar);
DeviceS... |
src/addons/ReactComponentWithPureRenderMixin.js | andrerpena/react | /**
* 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.
*
* @providesModu... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/LifecycleMethodsNone.js | AgentME/flow | // @flow
import React from 'react';
class MyComponent1 extends React.Component {
componentWillReceiveProps() {}
}
class MyComponent2 extends React.Component {
shouldComponentUpdate() {}
}
class MyComponent3 extends React.Component {
componentWillUpdate() {}
}
class MyComponent4 extends React.Component {
co... |
client/src/__mocks__/gatsby-link.js | BhaveshSGupta/FreeCodeCamp | /* eslint-disable */
import React from 'react';
const mockComponent = name => props =>
React.createElement(name, props, props.children);
export const navigateTo = () => {};
export default mockComponent('MockedLink');
|
ajax/libs/6to5/2.4.7/browser-polyfill.js | voronianski/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/index.js | quebez/react_todolist | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import update from 'immutability-helper';
import InputBar from './components/input_bar';
import List from './components/list';
import Messages from './components/messages';
let timeoutId;
class App extends Component {
state = {
i... |
src/isomorphic/modern/class/ReactComponent.js | sitexa/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.
*
* @providesModule ... |
vskeddemos/htmljavascriptcss/react/lesson1/src/index.js | brucevsked/vskeddemolist | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want to start measuring performance in yo... |
src/svg-icons/content/content-paste.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentContentPaste = (props) => (
<SvgIcon {...props}>
<path d="M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s... |
client/src/index.js | bsmithgall/biblio | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import createLogger from 'redux-logger'
import thunk from 'redux-thunk'
import App from './app';
import reducers from './reducers'
const middleware = [ thunk ]
if ... |
app/javascript/flavours/glitch/components/media_attachments.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { MediaGallery, Video, Audio } from 'flavours/glitch/util/async-components';
import Bundle from 'flavours/glitch/features... |
packages/material-ui-icons/src/FlipToBack.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M9 7H7v2h2V7zm0 4H7v2h2v-2zm0-8c-1.11 0-2 .9-2 2h2V3zm4 12h-2v2h2v-2zm6-12v2h2c0-1.1-.9-2-2-2zm-6 0h-2v2h2V3zM9 17v-2H7c0 1.1.89 2 2 2zm10-4h2v-2h-2v2zm0-4h2V7h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zM5 7H3v... |
app/hocs/toJS.js | zebbra-repos/Zeiterfassung-medi | import React from 'react';
import { Iterable } from 'immutable';
export const toJS = (WrappedComponent) => (wrappedComponentProps) => {
const KEY = 0;
const VALUE = 1;
const propsJS = Object.entries(
wrappedComponentProps
).reduce((newProps, wrappedComponentProp) => {
newProps[wrappedComponentProp[KEY... |
docs/Documentation/AppBarPage.js | reactivers/react-mcw | /**
* Created by muratguney on 29/03/2017.
*/
import React from 'react'
import {Card, CardHeader, CardActions, CardBody} from '../../lib';
export default class CheckBoxPage extends React.Component{
render(){
return(
<Card style={{height:300}}>
<CardHeader title="Title" />
... |
ajax/libs/yasgui/1.0.2/yasgui.bundled.min.js | stuartpb/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;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
src-hmi/__tests__/index.ios.js | projet-aaa/platform | 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.create(
<Index />
);
});
|
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js | Chronister/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { expandHashtagTimeline } from '../../../actions/timelines';
import { connectHashtagStream } from '../../../actions/streaming';
import Masonry from 're... |
packages/material-ui-icons/src/CalendarViewDaySharp.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="M3 17h18v2H3v-2zm0-7h18v5H3v-5zm0-4h18v2H3V6z" /></g></React.Fragment>
, 'CalendarViewDaySharp');
|
ajax/libs/hyperform/0.8.9/hyperform.amd.js | emmy41124/cdnjs | /*! hyperform.js.org */
define(function () { 'use strict';
var registry = Object.create(null);
/**
* run all actions registered for a hook
*
* Every action gets called with a state object as `this` argument and with the
* hook's call arguments as call arguments.
... |
ui/src/user/DeleteUserButton.js | cloudsonic/sonic-server | import React from 'react'
import DeleteIcon from '@material-ui/icons/Delete'
import { makeStyles } from '@material-ui/core/styles'
import { fade } from '@material-ui/core/styles/colorManipulator'
import clsx from 'clsx'
import { useDeleteWithConfirmController, Button, Confirm } from 'react-admin'
const useStyles = mak... |
docs/src/components/UseI18n.js | HsuTing/cat-components | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import radium from 'radium';
import Button from 'cat-components/lib/button';
import {language} from 'cat-components/lib/i18n';
@radium
@language
export default class UseI18n extends React.Component {
static propTypes = {
translate: Pro... |
ajax/libs/6to5/3.5.1/browser-polyfill.js | ljharb/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... |
ajax/libs/primereact/6.5.0-rc.1/knob/knob.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { classNames } from 'primereact/utils';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var i = 0; i < p... |
src/svg-icons/maps/local-laundry-service.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalLaundryService = (props) => (
<SvgIcon {...props}>
<path d="M9.17 16.83c1.56 1.56 4.1 1.56 5.66 0 1.56-1.56 1.56-4.1 0-5.66l-5.66 5.66zM18 2.01L6 2c-1.11 0-2 .89-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 ... |
packages/material-ui-icons/src/Grade.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" />
, 'Grade');
|
frontend/app/common/schemas/customFields/SelectSuggestFactory.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import t from 'tcomb-form'
import selectn from 'selectn'
import IntlService from 'common/services/IntlService'
import AutoSuggestComponent from 'components/AutoSuggestComponent'
import BrowseComponent from 'components/BrowseComponent'
import Preview from 'components/Preview'
import DialogCre... |
src/routes/files/Files.js | fkn/ndo | import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import { connect } from 'react-redux';
import s from './Files.css';
import FilesList from '../../components/FilesList';
class Files extends React.Component {
static propTypes = {
title:... |
app/config/routes.js | joshuar500/repository-notes | import React from 'react';
import Main from '../components/Main';
import Home from '../components/Home';
import Profile from '../components/Profile';
import Router from 'react-router';
import { Route, IndexRoute } from 'react-router';
export default (
// when at index of homepage, render Route component
<Route... |
src/views/Dashboard_bk/Dashboard.js | hungtruongquoc/shipper_front | import React, { Component } from 'react';
import { Bar, Line } from 'react-chartjs-2';
import { Dropdown, DropdownMenu, DropdownItem, Progress } from 'reactstrap';
const brandPrimary = '#20a8d8';
const brandSuccess = '#4dbd74';
const brandInfo = '#63c2de';
const brandDanger = '#f86c6b';
// CardGroupItem Chart... |
apps/marketplace/components/SellerAssessment/SellerAssessmentRateStage.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { Form } from 'react-redux-form'
import Textfield from 'shared/form/Textfield'
import formProps from 'shared/form/formPropsSelector'
import ErrorAlert from 'marketplace/components/Alerts/ErrorAlert'
import AUheadin... |
admin/src/components/form/tests/checkbox.spec.js | mparlak/mparlak.github.io | import React from 'react';
import expect from 'expect';
import { mount } from 'enzyme';
import Checkbox from '../Checkbox';
function setup(props = {text: 'GSoC', checked: false}) {
let actions = {
onChange: expect.createSpy()
};
let component = mount(
<Checkbox {...props} {...actions} />
);
return... |
app/Pactometro/Components/BarSum.js | alvaromb/papptometro | /* @flow */
import React from 'react'
import {
Text,
TouchableOpacity,
View,
StyleSheet,
Animation,
PixelRatio,
} from 'react-native'
import { connect } from 'react-redux'
import { fetchResults } from '../Actions/ResultsActions'
import BarParty from './BarParty'
import { PAP_ALT_RED, PAP_RED, PAP_WHITE } f... |
test/unit/FlatButton.spec.js | staticinstance/material-ui | import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import getMuiTheme from 'src/styles/getMuiTheme';
import FlatButton from 'src/flat-button';
import FontIcon from 'src/font-icon';
describe('<FlatButton />', () => {
const flatButtonTheme = getMuiTheme().flatButton;
const testCh... |
src/svg-icons/image/filter-4.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter4 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14... |
src/pages/index.js | meerasahib/meerablog1 | import React from 'react';
import Link from 'gatsby-link';
import Helmet from 'react-helmet';
import PostDate from '../components/Date';
import Preview from '../components/Preview';
import Tags from '../components/Tags';
const getParams = search => {
return search.replace('?', '').split('&').reduce((params, keyValu... |
src/icons/SettingsBrightnessIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class SettingsBrightnessIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M42 6H6c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h36c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zm0 32... |
Examples/UIExplorer/AsyncStorageExample.js | FionaWong/react-native | /**
* 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,
... |
src/ValueRef.js | gabrielbull/react-desktop | import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
function ValueRef(ComposedComponent) {
return class extends Component {
get value() {
return findDOMNode(this).getElementsByTagName('input')[0].value;
}
set value(value) {
findDOMNode(this).getElementsByTagNam... |
examples/huge-apps/components/App.js | jepezi/react-router | import React from 'react';
import Dashboard from './Dashboard';
import GlobalNav from './GlobalNav';
class App extends React.Component {
//static loadProps (params, cb) {
//console.log('App');
//cb(null, { courses: COURSES });
//}
render () {
//var { courses } = this.props;
var courses = COURSE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.