target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
docs/src/components/Homepage/Demo/index.js | rhalff/storybook | import React from 'react';
import demoImg from './images/demo.gif';
import './style.css';
const Demo = () => (
<div id="demo" className="row">
<div className="col-xs-12">
<center>
<img className="demo-img" src={demoImg} alt="" />
</center>
</div>
</div>
);
export default Demo;
|
src/containers/App.js | afikris6/afikris6.github.io | import 'react-mdl/extra/material';
import 'react-mdl/extra/material.css';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { HashRouter as Router, Route, Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { updateGeo } from '../reducers/main';
impo... |
packages/react/src/Signup.js | js-accounts/react | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { PasswordSignupFields, validators } from '@accounts/common';
import isString from 'lodash/isString';
import { Form, FormInput } from 'react-form';
class Signup extends Component {
static propTypes = {
accounts: PropTypes.object... |
packages/material-ui-icons/src/MyLocationRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V2c0-.55-.45-1-1-1s-1 .45-1 1v1.06C6.83 3.52 3.52... |
src/routes/accountList/AccountListContainer.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { loadUserList } from '../../actions/user';
import { Groups } from '../../organization';
import { getVisibleUsers, getResourcePageInfo } from '../../reducers';
import { genUsersPageKey } from '../../reducers/pag... |
docs/src/app/AppRoutes.js | igorbt/material-ui | import React from 'react';
import {
Route,
Redirect,
IndexRoute,
} from 'react-router';
// Here we define all our material-ui ReactComponents.
import Master from './components/Master';
import Home from './components/pages/Home';
import RequiredKnowledge from './components/pages/get-started/RequiredKnowledge';
i... |
src/routes/login/index.js | murphysierra/VinnyStoryPage | /**
* 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.
*/
import React from 'react';
import Login from './Login';
e... |
docs/src/app/components/pages/components/Paper/ExampleSimple.js | kittyjumbalaya/material-components-web | import React from 'react';
import Paper from 'material-ui/Paper';
const style = {
height: 100,
width: 100,
margin: 20,
textAlign: 'center',
display: 'inline-block',
};
const PaperExampleSimple = () => (
<div>
<Paper style={style} zDepth={1} />
<Paper style={style} zDepth={2} />
<Paper style={s... |
packages/material-ui-icons/src/FastForward.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let FastForward = props =>
<SvgIcon {...props}>
<path d="M4 18l8.5-6L4 6v12zm9-12v12l8.5-6L13 6z" />
</SvgIcon>;
FastForward = pure(FastForward);
FastForward.muiName = 'SvgIcon';
export default FastForwar... |
Example.Mvc4.Net40/Scripts/jquery-1.8.2.min.js | sorenhl/Glimpse.NLog | /*! jQuery v1.8.2 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===... |
ajax/libs/yui/3.2.0/event/event-focus.js | askehansen/cdnjs | YUI.add('event-focus', function(Y) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
useActivate = YLang.isFunction(
Y.DOM.create('<p onbeforeactivate="... |
src/shell/server.js | jeffhandley/redux-playground | import React from 'react';
import ReactDOMServer from 'react-dom/server'
export default function server(store) {
return {
renderPage(page) {
// Rendering the page body will populate the store's state
const body = ReactDOMServer.renderToString(page);
// Once the body has... |
client/src/index.js | googleinterns/Pictophone | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import * as serviceWorker from './serviceWorker';
import App from './components/App';
import Firebase, { FirebaseContext } from './components/Firebase';
ReactDOM.render(
<FirebaseContext.Provider value={new Firebase()}>
<App />
... |
brjs-sdk/sdk/jsdoc-toolkit-resources/jsdoc-toolkit/lib/jsdoc/tutorial.js | briandipalma/brjs | /**
@overview
@author Rafał Wrzeszcz <rafal.wrzeszcz@wrzasq.pl>
@license Apache License 2.0 - See file 'LICENSE.md' in this project.
*/
'use strict';
var markdown = require('jsdoc/util/markdown');
var util = require('util');
var hasOwnProp = Object.prototype.hasOwnProperty;
/** Removes child tutorial fr... |
src/app/core/atoms/icon/icons/drilldown.js | blowsys/reservo | import React from 'react'; const Drilldown = (props) => <svg {...props} x="0px" y="0px" viewBox="0 0 14.173 14.173"><polygon points="3.847,5.984 7.087,9.223 10.326,5.984" clipRule="evenodd"/></svg>; export default Drilldown;
|
stories/InputArray.stories.js | maputnik/editor | import React from 'react';
import {useActionState} from './helper';
import InputArray from '../src/components/InputArray';
import {Wrapper} from './ui';
import {withA11y} from '@storybook/addon-a11y';
export default {
title: 'InputArray',
component: InputArray,
decorators: [withA11y],
};
export const NumberTyp... |
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js | formatlos/react-native | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class WelcomeText extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</... |
tmeister/static/src/menu/main-menu.component.js | CanopyTax/toggle-meister | import React from 'react';
import { Tooltip, Paper, Icon } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles(theme => ({
menu: {
position: 'fixed',
top: 0,
left: 0,
height: '100%',
width: '64px',
display: 'flex',
flexDirection: 'c... |
imports/ui/components/commentary/Commentary/Commentary.js | pletcher/cltk_frontend | import React from 'react';
import PropTypes from 'prop-types';
class Commentary extends React.Component {
constructor(props) {
super(props);
this.state = {
showMore: false,
};
}
toggleShowMore() {
this.setState({
showMore: !this.state.showMore,
});
}
render() {
const { showMore } = this.stat... |
packages/material-ui-icons/src/GridOff.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let GridOff = props =>
<SvgIcon {...props}>
<path d="M8 4v1.45l2 2V4h4v4h-3.45l2 2H14v1.45l2 2V10h4v4h-3.45l2 2H20v1.45l2 2V4c0-1.1-.9-2-2-2H4.55l2 2H8zm8 0h4v4h-4V4zM1.27 1.27L0 2.55l2 2V20c0 1.1.9 2 2 2h15.... |
ajax/libs/react-native-web/0.11.6/exports/Image/index.js | cdnjs/cdnjs | function _extends() { _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; }; return _extends.apply(this, arguments); }
f... |
src/parser/warlock/affliction/modules/talents/SiphonLifeUptime.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import UptimeBar from ... |
src/components/Canvas.js | rumblesan/webmandel |
import React from 'react';
import ZoomBox from './ZoomBox';
import * as Colour from '../lib/colour';
import * as Mandelbrot from '../lib/mandelbrot';
export default React.createClass({
componentDidUpdate: function () {
this.drawCanvas();
},
componentDidMount: function () {
this.drawCanvas();
},
on... |
src/components/StepBar.js | codeforboston/cliff-effects | import React from 'react';
import { Step } from 'semantic-ui-react';
import { STEP_VALS } from '../forms/STEP_VALS';
const StepBar = ({ currentStepKey, goToStep, translations }) => {
let cleanSteps = [];
STEP_VALS.forEach((step, index) => {
let newStep = { title: { content: translations[ `i_` + step.key ] ... |
node_modules/babel-core/lib/traversal/path/lib/hoister.js | PsukheDelos/react-cms | "use strict";
exports.__esModule = true;
// istanbul ignore next
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj;... |
app/packs/src/admin/generic/FieldCondEditModal.js | ComPlat/chemotion_ELN | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { AgGridReact } from 'ag-grid-react';
import { Modal, Button } from 'react-bootstrap';
import GenericSubField from '../../components/models/GenericSubField';
import LayerSelect from '../../components/generic/LayerSelect';
import FieldS... |
src/__tests__/Map.js | devgateway/react-leaflet | import React from 'react';
import { findDOMNode, render } from 'react-dom';
import { renderToStaticMarkup } from 'react-dom/server';
jest.dontMock('../Map');
jest.dontMock('../MapComponent');
const Map = require('../Map');
describe('Map', () => {
beforeEach(() => {
document.body.innerHTML = '<div id="test"></d... |
modules/__tests__/isActive-test.js | davertron/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import IndexRoute from '../IndexRoute'
import Router from '../Router'
import Route from '../Route'
describe('isActive', function () {
let node
beforeEach(function () {
node =... |
modules/Redirect.js | nickaugust/react-router | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* A <Redirect> is used to declare another URL path a client should b... |
packages/material-ui-icons/src/CropLandscape.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let CropLandscape = props =>
<SvgIcon {...props}>
<path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z" />
</SvgIcon>;
CropLandscape = pure(CropLandscape);
... |
js/components/missions/TaskRewardModal.js | kort/kort-reloaded | import React from 'react';
import { StyleSheet, View, Text, Image } from 'react-native';
import I18n from 'react-native-i18n';
import { Actions } from 'react-native-router-flux';
import Button from '../shared/Button';
const styles = StyleSheet.create({
container: {
flex: 1,
padding: 20,
flexDirection: '... |
src/svg-icons/image/collections.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCollections = (props) => (
<SvgIcon {...props}>
<path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/>
... |
src/server.js | ImanMh/react-proto | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present 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.
*/
import path from 'path';
import express from 'express';... |
docs/app/Examples/elements/Button/Variations/ButtonExampleSocial.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Button, Icon } from 'semantic-ui-react'
const ButtonExampleSocial = () => (
<div>
<Button color='facebook'>
<Icon name='facebook' /> Facebook
</Button>
<Button color='twitter'>
<Icon name='twitter' /> Twitter
</Button>
<Button color='google plus'>
... |
WebContent/resources/js/vendor/jquery-1.10.2.min.js | mpi2/PhenotypeArchive | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
admin/client/App/screens/List/index.js | danielmahon/keystone | /**
* The list view is a paginated table of all items in the list. It can show a
* variety of information about the individual items in columns.
*/
import React from 'react';
// import { findDOMNode } from 'react-dom'; // TODO re-implement focus when ready
import numeral from 'numeral';
import { connect } from 'rea... |
modules/field_ui/field_ui.js | bmccune/RefrigerationSys |
(function($) {
Drupal.behaviors.fieldUIFieldOverview = {
attach: function (context, settings) {
$('table#field-overview', context).once('field-overview', function () {
Drupal.fieldUIFieldOverview.attachUpdateSelects(this, settings);
});
}
};
Drupal.fieldUIFieldOverview = {
/**
* Implements dep... |
src/Svg/ArrowSVG.js | numieco/patriot-trading | import React from 'react'
const ArrowSVG = () => (
<div>
<svg width="9px" height="17px" viewBox="0 0 9 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink">
<title>Shape Copy 8</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Welcome... |
modules/field_ui/field_ui.js | cmthoreau/Microgreens | /**
* @file
* Attaches the behaviors for the Field UI module.
*/
(function($) {
Drupal.behaviors.fieldUIFieldOverview = {
attach: function (context, settings) {
$('table#field-overview', context).once('field-overview', function () {
Drupal.fieldUIFieldOverview.attachUpdateSelects(this, settings);
... |
electron/app/containers/EditorView.js | zindlerb/static | import React from 'react';
import classnames from 'classnames';
import EditorRenderer from './EditorRenderer';
import Sidebar from '../components/Sidebar';
import AttributesContainer from './AttributesContainer';
import EditorLeftPanel from './EditorLeftPanel';
import OpenSiteModal from './OpenSiteModal';
const Edito... |
ajax/libs/flocks.js/1.2.0/flocks.min.js | wormful/cdnjs | if("undefined"===typeof React)var React=require("react");
(function(){function f(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){return"undefined"===typeof a}function u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===type... |
fields/types/code/CodeField.js | mohitjindal1992/keystone | var _ = require('underscore'),
React = require('react'),
Field = require('../Field'),
CodeMirror = require('codemirror');
// See CodeMirror docs for API:
// http://codemirror.net/doc/manual.html
module.exports = Field.create({
displayName: 'CodeField',
getInitialState: function() {
return {
isFocused: f... |
static/tables/backtest-table.js | joequant/sptrader | import React from 'react';
import {AgGridReact} from 'ag-grid-react';
import {Button} from 'react-bootstrap';
import {actionBoxWidth, BacktestControl, renderLog, pad,
process_headers} from '../../static/utils';
Date.prototype.Format = function (fmt) { //author: meizz
var o = {
"M+": this.getMonth() + 1, //... |
__tests__/index.android.js | Deepankar01/react-native-sticky-footer-header | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/app/app.js | trueporWu/cw_react_seed | /**
* Created by Truepor on 16/10/15.
* 入口文件
*/
import React from 'react';
import {render} from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Main from '../components/Main/Main';
// Needed for onTouchTap
// http://stackoverflow.com/a/34015469/988941
injectTapEventPlugin ();
// Re... |
ui/src/containers/customerEditContainer.js | jollopre/mps | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Edit from '../components/customers/edit';
import { getCustomer, putCustomer } from '../actions/customers';
class CustomerEditContainer extends Component {
componentDidMount() {
const { getCustomer, customer } = this.props;
... |
ajax/libs/forerunnerdb/1.3.42/fdb-core+views.js | dada0423/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... |
node_modules/_rc-table@5.6.12@rc-table/es/TableRow.js | ligangwolai/blog | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import PropTypes ... |
ajax/libs/video.js/5.0.0-rc.45/alt/video.novtt.js | keicheng/cdnjs | /**
* @license
* Video.js 5.0.0-rc.45 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports... |
ajax/libs/forerunnerdb/1.3.496/fdb-core+persist.js | sufuf3/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/client/todos/todo.react.js | sljuka/portfolio-este | import './todo.styl';
import Component from '../components/component.react';
// import Editable from '../components/editable.react';
import React from 'react';
export default class Todo extends Component {
static propTypes = {
actions: React.PropTypes.object.isRequired,
todo: React.PropTypes.object.isRequir... |
ajax/libs/yui/3.4.1/loader-base/loader-base-debug.js | paleozogt/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSI... |
src/components/svg/RadarComponent.js | RxKotlin/techradar-reactjs | 'use strict';
import React from 'react';
import Triangle from './TriangleComponent';
import Circle from './CircleComponent';
require('styles/svg/Radar.scss');
var UUID = require('uuid-js');
class RadarComponent extends React.Component {
constructor(props) {
super();
this.radius = props.radius;
this.did... |
modules/IndexRoute.js | opichals/react-router | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './PropTypes';
var { bool, func } = React.PropTypes;
/**
* An <IndexRoute> is used to specify its parent's <Route indexRoute> in
* a JSX route config... |
client/modules/Post/components/PostCreateWidget/PostCreateWidget.js | mraq1234/mod11 | import React, { Component } from 'react';
import propTypes from 'prop-types';
import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
// Import Style
import styles from './PostCreateWidget.css';
export class PostCreateWidget extends Component {
addPost = () => {
const nameRef = this.refs.name;
... |
examples/05-normalizr-github-paged-project-search-and-viewer/lib/project-details-page/project-details-page.js | jhudson8/react-redux-model | // "dumb / state unaware" React component
import React from 'react';
export default function ({ id, model }) {
// model was provided automatically by the modelFetcher in the smart component (./index.js)
// you will *always* get a model even if you actually have no model state data
const value = model.value();
... |
tests/react/createContext.js | facebook/flow | // @flow
import React from 'react';
{
const Context = React.createContext('div');
const {Consumer, Provider} = Context;
class Foo extends React.Component<{}> {
divRef: {current: null | HTMLDivElement} = React.createRef();
render() {
return (
<React.Fragment>
<Provider value='sp... |
client/src/components/common/Hero.js | alexandernanberg/luncha | import React from 'react'
import styled from 'styled-components'
import { media } from '../../style'
const Hero = styled.section`
position: relative;
display: flex;
flex-flow: column wrap;
justify-content: center;
align-items: center;
padding-top: 64px;
padding-bottom: 64px;
text-align: center;
${pr... |
ajax/libs/babel-polyfill/7.0.0-alpha.9/polyfill.js | cdnjs/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/analytics/components/partials/maps/Route.js | Haaarp/geo | import React from 'react';
import { connect } from 'react-redux';
import { Polyline } from 'react-google-maps';
import { map } from './../../../actions';
const initialConfig = {
strokeColor: '#00ccbe',
strokeOpacity: 1.0,
strokeWeight: 1
};
class Route extends React.Component {
constructor (props) {
... |
web/ext/packages/sencha-core/src/data/AbstractStore.js | ybbkd2/publicweb | /**
* AbstractStore is a superclass of {@link Ext.data.ProxyStore} and {@link Ext.data.ChainedStore}. It's never used directly,
* but offers a set of methods used by both of those subclasses.
*
* We've left it here in the docs for reference purposes, but unless you need to make a whole new type of Store, what
* yo... |
ajax/libs/react-is/18.0.0-alpha-bdd6d5064-20211001/cjs/react-is.development.min.js | cdnjs/cdnjs | "use strict";"production"!==process.env.NODE_ENV&&function(){var n=60103,s=60106,c=60107,a=60108,i=60114,p=60109,u=60110,f=60112,l=60113,d=60120,x=60115,y=60116,t=60129,r=60130,o=60131;"function"==typeof Symbol&&Symbol.for&&(n=(R=Symbol.for)("react.element"),s=R("react.portal"),c=R("react.fragment"),a=R("react.strict_m... |
src/svg-icons/content/text-format.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentTextFormat = (props) => (
<SvgIcon {...props}>
<path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"/>
</SvgIcon>
);
ContentTextFormat = pure(C... |
web/src/js/__tests__/components/Header/OptionMenuSpec.js | mhils/mitmproxy | import React from 'react'
import renderer from 'react-test-renderer'
import { Provider } from 'react-redux'
import OptionMenu from '../../../components/Header/OptionMenu'
import { TStore } from '../../ducks/tutils'
describe('OptionMenu Component', () => {
it('should render correctly', () => {
let store = T... |
app/scripts/ui-lib/closing-message.js | kouryuu/react-questionnaire | import React from 'react'
import {store} from '../store.js'
/* This React Component is used to send the result to your API or server.
*/
export default class ClosingMessage extends React.Component{
constructor(){
super();
this.state = {
saved: false
}
}
_saveResponses(){
let responses = JSON... |
src/svg-icons/action/account-circle.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccountCircle = (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 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.... |
dist/mobservable.min.js | sandals/mobservable | var __extends=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);c.prototype=b.prototype,a.prototype=new c},mobservable;!function(a){var b=function(){return this}();if(b.__mobservableTrackingStack)throw new Error("[mobservable] An incompatible version of ... |
ajax/libs/react-data-grid/2.0.47/react-data-grid.min.js | jonobr1/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(th... |
example/src/components/Header.js | tipsi/tipsi-stripe | import React from 'react'
import { View, Text, Image, TouchableOpacity, Platform, StyleSheet } from 'react-native'
import PropTypes from 'prop-types'
import testID from '../utils/testID'
export default function Header({ title, onMenuPress }) {
return (
<View style={styles.container}>
<TouchableOpacity
... |
admin/assets/js/uncompressed/x-editable/bootstrap-editable.js | micwallace/wallacepos | /*! X-editable - v1.4.6
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to form tag... |
packages/material-ui-icons/src/ThreeDRotationRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M8.41 14.96c-.19 0-.37-.03-.52-.08-.16-.06-.29-.13-.4-.24-.11-.1-.2-.22-.26-.37-.06-.14-.09-.3-.09-.47h-1.3c0 .36.07.68.21.95.14.27.33.5.56.69.24.18.51.32.82.41.3.1.62.15.96.15.37 0 .72-.05 1.03-.15.3... |
ajax/libs/analytics.js/1.3.6/analytics.js | neveldo/cdnjs | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... |
ajax/libs/iview/2.9.0-rc.2/iview.min.js | extend1994/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("iview",["vue"],t):"object"==typeof exports?exports.iview=t(require("vue")):e.iview=t(e.Vue)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(i){if(... |
src/svg-icons/action/accessible.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccessible = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19... |
src/frontend/components/Loading.js | Bernie-2016/ground-control | import React from 'react';
import Relay from 'react-relay';
import {Styles} from 'material-ui';
import TopNav from './TopNav';
import {BernieTheme} from './styles/bernie-theme';
import {BernieColors} from './styles/bernie-css';
import {CircularProgress} from 'material-ui';
export default class Loading extends React.Co... |
ajax/libs/forerunnerdb/1.3.484/fdb-legacy.min.js | seogi1004/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... |
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js | zillachan/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
import ActorClient from 'utils/ActorClient';
import { Styles, FlatButton } from 'material-ui';
import { KeyCodes } from 'constants/ActorAppConstant... |
src/index.js | kaizensauce/campari-app | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tell webpack t... |
src/components/Html.js | ImanMh/react-proto | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present 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.
*/
import React from 'react';
import PropTypes from 'prop-... |
icons/AndroidPrint.js | fbfeix/react-icons | 'use strict';
var React = require('react');
var IconBase = require(__dirname + 'components/IconBase/IconBase');
var AndroidPrint = React.createClass({
displayName: 'AndroidPrint',
render: function render() {
return React.createElement(
IconBase,
null,
React.createElement(
'g',
null,
React.cr... |
ajax/libs/react-slick/0.12.2/react-slick.js | dhenson02/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
src/IconToggle/index.js | reactivers/react-material-design | /**
* Created by Utku on 26/03/2017.
*/
import React from 'react';
import PropTypes from 'prop-types';
import generateId from "../utils/generateId";
import '@material/icon-toggle/dist/mdc.icon-toggle.css'
import {MDCIconToggle} from "@material/icon-toggle/dist/mdc.iconToggle";
import classNames from 'classnames';
ex... |
lib/admin/admin-topics/view.js | DemocracyOS/democracyos | /**
* Module dependencies.
*/
import React from 'react'
import { render as ReactRender } from 'react-dom'
import debug from 'debug'
import t from 't-component'
import List from 'democracyos-list.js'
import moment from 'moment'
import confirm from 'democracyos-confirmation'
import ReactPaginate from 'react-paginate'
i... |
node_modules/rx/src/core/linq/observable/never.js | KJ-B/Project03 | /**
* Returns a non-terminating observable sequence, which can be used to denote an infinite duration (e.g. when using reactive joins).
* @returns {Observable} An observable sequence whose observers will never get called.
*/
var observableNever = Observable.never = function () {
return new Anonym... |
frontend/app/index.js | petr/gqlclans | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import thunkMiddleware from 'redux-thunk'
import { ApolloProvider } from 'react-apollo'
import ApolloClient from 'apollo-client-preset'
import { createStore, applyMiddleware, compose } from 'redux'
import MuiThemeProvider ... |
packages/react-ui-core/src/Button/__tests__/ApplyButton-tests.js | rentpath/react-ui | import React from 'react'
import { shallow } from 'enzyme'
import Button from '../Button'
import ThemedApplyButton from '../ApplyButton'
const ApplyButton = ThemedApplyButton.WrappedComponent
describe('ag/Buttons/ApplyButton', () => {
it('does not render a button with no handleClick function', () => {
const wr... |
examples/basic/src/routes/index.js | supasate/connected-react-router | import React from 'react'
import { Route, Switch } from 'react-router'
import Home from '../components/Home'
import Hello from '../components/Hello'
import Counter from '../components/Counter'
import NoMatch from '../components/NoMatch'
import NavBar from '../components/NavBar'
const routes = (
<div>
<NavBar />
... |
src/webview/js/components/actions/action-timeline.js | julianburr/sketch-debugger | import React, { Component } from 'react';
export default class ActionTimeline extends Component {
render () {
const { data, index } = this.props;
return (
<div className="panel-timeline">
{data.finish !== undefined ? (
[
<span
className="panel-timeline-bar"
... |
ajax/libs/jquery/1.11.1-rc2/jquery.min.js | the-destro/cdnjs | /*! jQuery v1.11.1-rc2 | (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 ... |
src/svg-icons/action/assignment-return.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentReturn = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45... |
src/main.js | Mayanka-Sheoran/fun-ipl-statistics | import React from 'react'
import ReactDOM from 'react-dom'
import createBrowserHistory from 'history/lib/createHashHistory'
import { useRouterHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import createStore from './redux/createStore'
import AppContainer from './containers/AppCo... |
node_modules/react-router/es/StaticRouter.js | yaolei/Node-Clound | 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 = {... |
packages/material-ui-icons/src/LocalHospitalOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-8.5-2h3v-3.5H17v-3h-3.5V7h-3v3.5H7v3h3.5z" />
, 'LocalHospitalOutlined');
|
public/assets/js/jquery.min.js | hctr666/SIContratos | /*! 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){return... |
src/components/Profile.js | thinq4yourself/simply-social-in | import PostList from './PostList';
import React from 'react';
import faker from 'faker';
import { Link } from 'react-router-dom';
import api from '../services/api';
import { connect } from 'react-redux';
import {
FOLLOW_USER,
UNFOLLOW_USER,
PROFILE_PAGE_LOADED,
PROFILE_PAGE_UNLOADED
} from '../constants/actionT... |
views/blocks/QuestPhotos/QuestPhotos.js | dimastark/team5 | import React from 'react';
import b from 'b_';
import './QuestPhotos.css';
import PhotoContainer from './../Photo/PhotoContainer';
const questPhotos = b.lock('quest-photos');
export default class QuestPhotos extends React.Component {
componentDidMount() {
this.props.onAction();
}
render() {
... |
src/pages/App.js | joemcbride/react-starter-kit-app | import React from 'react';
//import '../styles/site.less';
class Application extends React.Component {
render() {
return (
<div>
<h1>React Application Starter Kit</h1>
</div>
);
}
}
export default Application;
|
src/shared/element-react/dist/npm/es6/src/table/TableHeader.js | thundernet8/Elune-WWW | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import ReactDom from 'react-dom';
import Checkbox from '../checkbox';
import { ... |
js/jqwidgets/demos/react/app/panel/fluidsize/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxPanel from '../../../jqwidgets-react/react_jqxpanel.js';
class App extends React.Component {
render () {
let innerHtml =
'<div style=\'margin: 10px;\'>' +
'<h3>Early History of the Internet</h3></div>' +
'<!--Content--... |
src/ObjectInspector.js | xyc/react-object-inspector | import React, { Component } from 'react';
import ObjectDescription from './ObjectDescription';
import ObjectPreview from './ObjectPreview';
// Constants
const DEFAULT_ROOT_PATH='root';
// Styles
import objectStyles from './objectStyles';
const styles = {
base: {
fontFamily: 'Menlo, monospace',
fontSize: '1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.