path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ui/src/components/Modal/Modal.js | LearningLocker/learninglocker | import React from 'react';
import PropTypes from 'prop-types';
import Portal from 'react-portal';
import { compose, setPropTypes, defaultProps } from 'recompose';
const enhanceConfirmModal = compose(
setPropTypes({
isOpen: PropTypes.bool,
title: PropTypes.string.isRequired,
onCancel: PropTypes.func.isReq... |
7.4.0/examples/remoteSubmit/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__e... |
src/helpers/connectData.js | fforres/coworks | import React, { Component } from 'react';
import hoistStatics from 'hoist-non-react-statics';
/*
Note:
When this decorator is used, it MUST be the first (outermost) decorator.
Otherwise, we cannot find and call the fetchData and fetchDataDeffered methods.
*/
export default function connectData(fetchData, fe... |
app/components/Label/index.js | josueorozco/parlay | import React from 'react';
import classNames from 'classnames';
/*
|--------------------------------------------------------------------------
| Label
|--------------------------------------------------------------------------
|
| Stateless component
|
*/
const Label = ({ color = 'default', className, children }) => ... |
analysis/warlockdestruction/src/modules/talents/Cataclysm.js | anom0ly/WoWAnalyzer | import { formatThousands, formatNumber, formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import BoringSpellValueText f... |
ajax/libs/rxjs/2.3.25/rx.compat.js | thesandlord/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
};
... |
packages/strapi-admin/files/public/app/containers/HomePage/index.js | skelpook/strapi | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a neccessity for you then you can refactor it and remove
* the ... |
src/parser/hunter/survival/modules/spells/azeritetraits/WildernessSurvival.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import SPELLS from 'common/SPELLS/index';
import SpellUsable from 'parser/shared/modules/SpellUsable';
import { RAPTOR_MONGOOSE_VARIANTS } from 'parser/hunter/... |
ajax/libs/react/0.14.0/react-with-addons.js | BitsyCode/cdnjs | /**
* React (with addons) v0.14.0
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undef... |
app/assets/scripts/components/loading-message.js | openaq/openaq.org | import React from 'react';
import { PropTypes as T } from 'prop-types';
import c from 'classnames';
export default function LoadingMessage(props) {
const { type, className, children } = props;
const classes = c('data-loading-msg', className, {
'data-loading-msg--minimal': type === 'minimal',
'data-loading... |
src/routes/SearchPage/index.js | wolfpilot/Traveller | import React, { Component } from 'react';
import { render } from 'react-dom';
import { Link } from 'react-router-dom';
import { searchPhotos, likePhoto, unlikePhoto } from '../../components/Unsplash';
import { DestinationsList } from '../../components/Destinations';
import Pager from '../../components/Pager/';
... |
src/components/Header/Header.js | MarynaHapon/Data-root-react | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Header.css';
import logoUrl from './logo-small.svg';
import logoUrl2x from './logo-small@2x.svg';
class Header extends React.Component {
render() {
return (
<div className={s.root}>
<div cla... |
src/pwa.js | prakash-u/react-redux | import React from 'react';
import ReactDOM from 'react-dom/server';
import Html from './helpers/Html';
export default function () {
return `<!doctype html>${ReactDOM.renderToStaticMarkup(<Html />)}`;
}
|
www/app/main.js | kalikaneko/bitmask-dev | //
// main entry point for app execution
//
// This is determined by the 'entry' option in webpack.config.js
//
import React from 'react'
import ReactDOM from 'react-dom'
import PanelSwitcher from 'components/panel_switcher'
import App from 'app'
class Main extends React.Component {
render() {
return React.cre... |
packages/babel/src/traversal/path/lib/hoister.js | sejoker/babel | import * as react from "../../../transformation/helpers/react";
import * as t from "../../../types";
/**
* [Please add a description.]
*/
var referenceVisitor = {
/**
* [Please add a description.]
*/
ReferencedIdentifier(node, parent, scope, state) {
if (this.isJSXIdentifier() && react.isCompatTag(n... |
examples/full/src/components/form/NumberField.js | JulienPradet/pigment-store | import React from 'react'
const NumberField = (props) => <input {...props} type='number' />
export default NumberField
|
src/components/templates/Templates.js | dloret/support-hub | import React from 'react';
import dataSource from '../../assets/data-sources/links.json';
import {FormPart} from './FormPart';
import './Templates.css';
const templates = dataSource.filter((template) => template.context === 'templates');
const languages = [...new Set(templates.map((template) => template.language))];
... |
stories/PowerSelectMultiple.stories.js | selvagsz/react-power-select | import React from 'react';
import { useState } from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs } from '@storybook/addon-knobs/react';
import { text, array, boolean, object } from '@storybook/addon-knobs/react';
import { action } from '@storybook/addon-actions';
import { countries } from '... |
node_modules/react-router/es/withRouter.js | Oritechnology/pubApp | 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 = {... |
lib/yuilib/2in3/2.9.0/build/yui2-yuiloader/yui2-yuiloader.js | spvickers/moodle | YUI.add('yui2-yahoo', function(Y) { Y.use('yui2-yuiloader'); }, '3.3.0' ,{});
YUI.add('yui2-get', function(Y) { Y.use('yui2-yuiloader'); }, '3.3.0' ,{"requires": ["yui2-yahoo"]});
YUI.add('yui2-yuiloader', function(Y) {
/*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
htt... |
src/scripts/components/Dialog.js | arkon/crcmaker | import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
/**
* A modal dialog window.
*/
export default class Dialog extends Component {
constructor (props) {
super(props);
this.onEsc = this.onEsc.bind(this);
this.onOverlayClick = this.onOverlayClick.bind(this);
}
compon... |
client/src/components/EventIndex/CreateFormSideBar.js | Stanley288/buddy-finder-app | import React from 'react'
import { withRouter } from 'react-router'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
import getMuiTheme from 'material-ui/styles/getMuiTheme'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import TextField from 'material-ui/TextField'
import DateP... |
components/PropertyTypePicker.js | seshurajup/den | 'use strict';
var React = require('react-native');
var {
Image,
TouchableOpacity,
StyleSheet,
Text,
View,
} = React;
var PropertyTypePickerButton = require('./PropertyTypePickerButton.js');
var styles = require('./SearchGlobalStyles.js');
var PropertyTypePicker = React.createClass({
getDefaultProps: function ... |
src/index.js | dundalek/react-blessed-contrib | import React, { Component } from 'react';
import upperFirst from 'lodash.upperfirst';
import blessed from 'blessed';
import contrib from 'blessed-contrib';
// Patch blessed so that react-blessed picks up our wrapper
blessed.__BLESSED_WRAPPER__ = function(props) {
return props.__BLESSED_WIDGET__(props);
}
const bla... |
src/js/components/TextInput/stories/Suggestions.js | HewlettPackard/grommet | import React from 'react';
import { Box, Grommet, TextInput } from 'grommet';
import { grommet } from 'grommet/themes';
const allSuggestions = Array(100)
.fill()
.map((_, i) => `${i + 1} suggestion`);
export const Suggestions = () => {
const [suggestions, setSuggestions] = React.useState(allSuggestions);
con... |
ajax/libs/react-dom/16.4.0-alpha.3174632/cjs/react-dom-server.node.development.js | sashberd/cdnjs | /** @license React v16.4.0-alpha.3174632
* react-dom-server.node.development.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
if (process.env.NODE_ENV !== "productio... |
ajax/libs/webshim/1.15.1/dev/shims/es6.js | humbletim/cdnjs | // ES6-shim 0.15.0 (c) 2013-2014 Paul Miller (http://paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.
// For more details and documentation:
// https://github.com/paulmillr/es6-shim/
webshim.register('es6', function($, webshim, window, document, undefined){
'use strict';
var isCallableW... |
src/components/Tabbar/index.js | TongChia/react-alp | import React from 'react';
import './style.styl';
export default function Tabbar({ children }) {
return (
<div className="tabbar">
{children}
</div>
);
}
|
src/components/DynamicDropdown.js | noamr/volunteers | import {observer} from "mobx-react";
import {DropdownButton, MenuItem} from "react-bootstrap"
import React from 'react';
const DynamicDropdown = observer(({label, model, collectionName, current, placeholder = "All", onSelect, title=""}) => (
<div>
<DropdownButton title={label} id={`select_${collectionName}`} o... |
docs/app/Examples/elements/Header/Variations/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'semantic-ui-react'
const HeaderVariationsExamples = () => (
<ExampleSection title='Variations'>
<Compone... |
src/svg-icons/hardware/speaker.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSpeaker = (props) => (
<SvgIcon {...props}>
<path d="M17 2H7c-1.1 0-2 .9-2 2v16c0 1.1.9 1.99 2 1.99L17 22c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 2c1.1 0 2 .9 2 2s-.9 2-2 2c-1.11 0-2-.9-2-2s.89-2 2-2zm0 16c... |
src/App.js | MichaelQQ/Oyasumi | import React from 'react';
import ThumbnailList from './containers/thumbnaillist';
import SearchformContainer from './containers/searchformContainer';
import LoadingContainer from './containers/loadingContainer';
import PageNavigatorContainer from './containers/pageNavigatorContainer';
export const App = () =>
<div>... |
components/common/link/index.js | marrus-sh/mastodon-go | // <CommonLink>
// ============
// An exceedingly simple component for rendering links. You should
// use the `onClick` prop to pass routing functions to links which
// point to another area of the frontend.
// * * * * * * * //
// Imports
// -------
// Package imports.
import classNames from 'classnames'... |
src/components/Story.js | mnmtanish/react-storybook-story | import React from 'react';
import MTRC from 'markdown-to-react-components';
import PropTable from './PropTable';
import Node from './Node';
import {H1, H2, H3, H4, H5, H6, Code, Pre, P, Small, A} from './markdown'
MTRC.configure({
h1: H1,
h2: H2,
h3: H3,
h4: H4,
h5: H5,
h6: H6,
code: Code,
pre: Pre,
... |
ajax/libs/glamorous/4.11.3/glamorous.umd.tiny.js | wout/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('glamor')) :
typeof define === 'function' && define.amd ? define(['react', 'glamor'], factory) :
(global.glamorous = factory(global.React,global.Glamor));
}(this, (function ... |
src/server/frontend/Html.js | reedlaw/read-it | // @flow
/* eslint-disable react/no-danger */
import React from 'react';
const GoogleAnalytics = ({ id }) => (
<script
dangerouslySetInnerHTML={{
__html: `
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s... |
plugins/system/t3/base-bs3/js/jquery-1.8.3.min.js | ForAEdesWeb/AEW4 | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
ajax/libs/webshim/1.14.5-RC1/dev/shims/es6.js | binaek89/cdnjs | // ES6-shim 0.8.0 (c) 2013 Paul Miller (paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.
// For more details and documentation:
// https://github.com/paulmillr/es6-shim/
webshim.register('es6', function($, webshim, window, document, undefined){
'use strict';
var isCallableWithoutNew = fun... |
ajax/libs/rxjs/2.5.1/rx.lite.compat.js | SaravananRajaraman/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
};
... |
src/client/assets/js/nodes/processors/uibuilder/features/canvas/components/svg/Ellipse.js | me-box/platform-sdk | import React, { Component } from 'react';
import {camelise} from 'nodes/processors/uibuilder/utils';
import { bindActionCreators } from 'redux';
import { actionCreators as canvasActions, selector } from '../..';
import { connect } from 'react-redux';
@connect(selector, (dispatch) => {
return{
actions: bindActio... |
src/components/common/Image.js | jinqiupeter/mtsr | import React from 'react';
import {StyleSheet, Image, TouchableOpacity} from 'react-native';
export default ({onPress, style, containerStyle, ...props}) => {
if (onPress) {
return (
<TouchableOpacity onPress={onPress} style={containerStyle}>
<Image {...props} style={style} />
</TouchableOpaci... |
wp-includes/js/jquery/jquery.js | jfbelisle/magexpress | /*! jQuery v1.11.3 | (c) 2005, 2015 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... |
js/components/Marker.js | a-omsk/Vegreact | import React from 'react';
import MapStore from '../stores/MapStores';
import MapService from '../MarkerService';
const Marker = ({ id, lat, lng }) => {
const marker = MapService.createMarker(id, lat, lng);
if (DG.ready) {
const Map = MapStore.get;
marker.addTo(Map);
}
return (<div id... |
lib/jquery-1.10.2.js | lqueryvg/sudoku | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
pootle/static/js/shared/components/ModalContainer.js | dwaynebailey/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import cx from 'classnames';
import React from 'react';
i... |
ajax/libs/primereact/6.5.0-rc.1/captcha/captcha.cjs.js | cdnjs/cdnjs | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
function _classCallCheck(inst... |
files/react/0.14.0-alpha1/react.js | yyx990803/jsdelivr | /**
* React v0.14.0-alpha1
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=s... |
antd-dva/ant-design-pro-demo/test/src/routes/User/Register.js | JianmingXia/StudyTest | import React, { Component } from 'react';
import { connect } from 'dva';
import { routerRedux, Link } from 'dva/router';
import { Form, Input, Button, Select, Row, Col, Popover, Progress } from 'antd';
import styles from './Register.less';
const FormItem = Form.Item;
const { Option } = Select;
const InputGroup = Input... |
ajax/libs/yui/3.7.1/datatable-body/datatable-body.js | hagabaka/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
src/components/LineGraphComponents/LineGraphTabs/index.js | badT/Chatson | import React from 'react';
import { styles } from './styles.scss';
export default function LineGraphTabs(props) {
return (
<div className={`${styles}`}>
<section className="row">
<div className="col-xs-12 graph-tab-holder">
<h2
className={`graph-tab ${props.activeGraph === 'em... |
app/static/src/diagnostic/EquipmentForm_modules/AditionalEqupmentParameters_modules/BushingParams.js | vsilent/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import {findDOMNode} from 'react-dom';
import {hashHistory} from 'react-router';
import {Link} from 'react-router';
im... |
modules/dreamview/frontend/src/components/Tasks/index.js | xiaoxq/apollo | import React from 'react';
import { inject, observer } from 'mobx-react';
import QuickStart from 'components/Tasks/QuickStart';
import Others from 'components/Tasks/Others';
import Delay from 'components/Tasks/Delay';
import Console from 'components/Tasks/Console';
import SensorCamera from 'components/Tasks/SensorCame... |
src/parser/priest/discipline/modules/features/PowerWordShieldWasted.js | FaideWW/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import { formatNumber } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
class PowerWordShieldWasted extends Analyz... |
app/components/profile/profilePage/followButton/FollowButton.js | JoeKarlsson1/post-stream | import React from 'react';
import { connect } from 'react-redux';
import {
followUser,
} from '../../../../actions/profile/updateProfileActions';
export class FollowButton extends React.Component {
handleClick(e){
e.preventDefault()
const {
profile,
user_id,
dispatch
} = this.props;
... |
app/containers/ConfirmBattleContainer.js | GinkgoShare/LearnReact | var React = require('react')
var ConfirmBattle = require("../components/ConfirmBattle")
var githubHelpers = require("../utils/githubHelpers")
var ConfirmBattleContainer = React.createClass({
contextTypes: {
router: React.PropTypes.object.isRequired
},
getInitialState: function() {
return {
isLoadin... |
app/components/IssueIcon/index.js | medevelopment/UMA | import React from 'react';
function IssueIcon(props) {
return (
<svg
height="1em"
width="0.875em"
className={props.className}
>
<path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v5... |
ajax/libs/yui/3.17.2/scrollview-base/scrollview-base-debug.js | nagyist/OpenF2-cdnjs | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
*... |
app/components/ResumeCard/ResumeDesc.js | Princess310/onehower-frontend | /**
*
* ResumeDesc
*
*/
import React from 'react';
import styled from 'styled-components';
import Paper from 'material-ui/Paper';
import Subheader from 'material-ui/Subheader';
import Divider from 'material-ui/Divider';
import Media from 'react-media';
import Icon from 'components/Icon';
import FlexRow from 'compone... |
dashboard/client/src/js/components/modules/ExperimentForm.js | jigarjain/sieve | import React from 'react';
function getError(errors, key) {
if (errors && errors[key]) {
return <span className="help is-danger">{errors[key]}</span>;
}
return <span className="help is-danger"> </span>;
}
export default function ExperimentForm(props) {
return (
<form onSubmit={... |
docs/src/app/components/pages/components/List/ExampleSimple.js | pomerantsev/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import ContentInbox from 'material-ui/svg-icons/content/inbox';
import ActionGrade from 'material-ui/svg-icons/action/grade';
import ContentSend from 'material-ui/svg-icons/content/send';
... |
ajax/libs/primeui/4.1.1/primeui.js | pvnr0082t/cdnjs | /*
* PrimeUI 4.1.1
*
* Copyright 2009-2015 PrimeTek.
*
* 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 applicab... |
client/test/screens/layout_test.js | Itera/itera-feedback | require("../test_helper");
const React = require("react"),
XPathUtils = require("xpath-react/utils");
const ApplicationLayout = require("../../lib/screens/layout"),
AuthStore = require("../../lib/auth/store");
describe("ApplicationLayout", () => {
describe("when isSignedIn is UNKNOWN", () => {
it... |
RNTester/js/XHRExampleDownload.js | formatlos/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
* ... |
src/admin/client/modules/settings/checkout/components/form.js | cezerin/cezerin | import React from 'react';
import { Link } from 'react-router-dom';
import messages from 'lib/text';
import Paper from 'material-ui/Paper';
import Divider from 'material-ui/Divider';
import FontIcon from 'material-ui/FontIcon';
import { List, ListItem } from 'material-ui/List';
const CheckoutFieldItem = ({ name, stat... |
app/recipes/list/index.js | lisakuli/la-vie | import React from 'react';
import { Link } from 'react-router';
import { Grid, Row, Col } from 'react-bootstrap';
import $ from 'jquery';
var ListRecipes = React.createClass({
getInitialState: function() {
return {
recipes: []
}
},
componentDidMount: function() {
$.ajax({
method: "GET",
url: "http:... |
src/Components/Sidebar/index.js | AdamSoucie/Ignis | import React from 'react';
import './style.css';
class Sidebar extends React.Component
{
render()
{
return(
<aside className="sidebar">
This is the sidebar
</aside>
);
}
}
export default Sidebar;
|
src/components/App.js | MrAbalogu/oversight | import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import injectTapEventPlugin from 'react-tap-event-plugin';
import LandingPage from './landingpage';
injectTapEventPlugin();
class App extends React.Component {
render() {
return (
<MuiThemeProvider>
<La... |
src/components/app/test/index.js | unindented/whitelist-chrome | import React from 'react'
import {createMemoryHistory} from 'react-router'
import App from 'components/app'
import {render} from 'utils/test'
describe('App', function () {
beforeEach(function () {
const history = createMemoryHistory('/blocked.html?details=eyJocmVmIjoiaHR0cHM6Ly91bmluZGVudGVkLm9yZy8iLCJob3N0bmFtZ... |
test/PageItemSpec.js | nickuraltsev/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import PageItem from '../src/PageItem';
describe('PageItem', () => {
it('Should output a "list item" as root element, and an "anchor" as a child item', () => {
let instance = ReactTestUtils.renderIntoDocument(
<PageItem href=... |
packages/material-ui-icons/src/ThreeDRotationSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M7.53 21.48C4.26 19.94 1.92 16.76 1.56 13H.06c.51 6.16 5.66 11 11.95 11l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-.13-.4-.24-.11-.1-.2-.22-.26-.37-.06-.14-.09-.3-.09-.47... |
src/components/Page.js | DanielDeychakiwsky/ReleaseDashboard | import React, { Component } from 'react';
import { componentLogger } from '../utils/logger';
const componentName = 'Page';
class Page extends Component {
componentWillMount() {
componentLogger(componentName, 'componentcomponentWillMount');
}
componentDidMount() {
componentLogger(component... |
ajax/libs/react-intl/1.2.2/react-intl-with-locales.js | keicheng/cdnjs | (function() {
"use strict";
var $$utils$$hop = Object.prototype.hasOwnProperty;
function $$utils$$extend(obj) {
var sources = Array.prototype.slice.call(arguments, 1),
i, len, source, key;
for (i = 0, len = sources.length; i < len; i += 1) {
source = sources[i];
... |
src/svg-icons/action/assignment-late.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentLate = (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-6 15h-2v-2h2v2zm0... |
ajax/libs/forerunnerdb/1.3.900/fdb-legacy.min.js | ahocevar/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/components/AnnotationEditor.js | cltk/annotations | // @flow
import React from 'react'
import autobind from 'react-autobind'
import {
Editor,
EditorState,
Modifier,
RichUtils,
convertToRaw,
} from 'draft-js'
import type {
EditorState as EditorStateType,
SyntheticMouseEvent
} from 'draft-js'
import {
ANNOTATION_ENTITY_TYPE,
PENDING_ANNOTATION_STYLE,
... |
src/library/TextInput/TextInput.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import { TextInputRoot as Root, Input } from './styled';
import { SIZE, TYPE } from './constants';
import { textInputPropTypes } from './propTypes';
import type { TextInputDefaultProps, TextInputProps } from './types';
const TextInput = (props: TextInputProps) => {
const {
... |
test/components/Counter.spec.js | jbandi/birdcage-electron-react | /* eslint no-unused-expressions: 0 */
import { expect } from 'chai';
import { spy } from 'sinon';
import React from 'react';
import {
renderIntoDocument,
scryRenderedDOMComponentsWithTag,
findRenderedDOMComponentWithClass,
Simulate
} from 'react-addons-test-utils';
import Counter from '../../app/components/Coun... |
src/components/AboutPage.js | kristyjy/battleplan | import React from 'react';
import {Link} from 'react-router';
// Since this component is simple and static, there's no parent container for it.
const AboutPage = () => {
return (
<div>
<h2 className="alt-header">About</h2>
<p>
This example app is part of the <a href="https://github.com/coryho... |
ajax/libs/ember-data.js/1.0.0-beta.6/ember-data.prod.js | contentfree/cdnjs | /*!
* @overview Ember Data
* @copyright Copyright 2011-2014 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 1.0.0-beta.6
*/
(function() {
var define, requireModule;
(function() {
var registry = {}, seen... |
src/containers/StepRouter.js | scott113341/post | import csjs from 'csjs-inject';
import React from 'react';
import { connect } from 'react-redux';
import '../static/reset.css';
import '../styles/global.js';
import * as postcard from '../store/postcard.js';
import * as steps from '../steps';
import StepLayout from '../layouts/StepLayout';
const STEPS = [
steps.We... |
src/entypo/Baidu.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--Baidu';
let EntypoBaidu = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M17.4116364,6.9370399c-0.3587151-0.2830696-0.923996-0.4004283-1.4627256-0.3652954c-0.4163361,0.0265503-... |
node_modules/@material-ui/core/esm/TableRow/TableRow.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import Tablelvl2Context from '../Table/Tabl... |
auth/src/components/common/Card.js | carlosnavarro25/calculadora | import React from 'react';
import { View } from 'react-native';
const Card = (props) => {
return (
<View style={styles.containerStyle}>
{props.children}
</View>
);
};
const styles = {
containerStyle: {
borderWidth: 1,
borderRadius: 2,
borderColor: '#ddd',
borderBottomWidth: 0,
shadowRadius: 2,
eleva... |
docs/app/Examples/modules/Accordion/Types/index.js | koenvg/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'semantic-ui-react'
const AccordionTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExam... |
app/components/grid/ColorCell.js | sheldhur/Vector | import React, { Component } from 'react';
import { Icon, Popconfirm, Popover, Button } from 'antd';
import { SketchPicker } from 'react-color';
class ColorCell extends Component {
state = {
value: this.props.value,
colorPickerVisible: false,
isSaved: false,
error: false
};
componentWillReceiveP... |
src/demo/react-router/animate.js | dadiaoguai/blog-react-demo-front | import React from 'react'
import {CSSTransitionGroup} from 'react-transition-group'
import {
BrowserRouter as Router,
Route,
Link,
Redirect
} from 'react-router-dom'
/* you'll need this CSS somewhere
.fade-enter {
opacity: 0;
z-index: 1;
}
.fade-enter.fade-enter-active {
opacity: 1;
transition: opacity... |
ajax/libs/jquery/1.9.0/jquery.min.js | icco/cdnjs | /*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc... |
ajax/libs/redux-form/0.0.5/react-redux.min.js | menuka94/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReduxForm=t(require("react")):e.ReduxForm=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return r[n].expor... |
generators/app/templates/app/assets/javascript/components/pageNotFound.js | ajaykumaryadav/react-bootstrap | import React, { Component } from 'react';
import { Link, browserHistory } from 'react-router';
class pageNotFound extends Component {
cancel() {
browserHistory.goBack()
}
render() {
return (
<div className="container text-center">
<div className="page-header">
<h1><i className="... |
stories/helpers/Controls.js | joshwcomeau/react-flip-move | import React from 'react';
import PropTypes from 'prop-types';
const styles = {
button: {
padding: '5px 20px',
marginRight: '10px',
fontSize: '14px',
},
};
const Controls = ({
onRemove,
onRemoveAll,
onRestore,
onRotate,
onShuffle,
onRestartSequence,
numOfCurrentItems,
numOfTotalItems,
... |
ajax/libs/forerunnerdb/1.3.490/fdb-all.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... |
client/admin/info/InformationPage.js | iiet/iiet-chat | import { Box, Button, ButtonGroup, Callout, Icon } from '@rocket.chat/fuselage';
import React from 'react';
import Page from '../../components/basic/Page';
import { useTranslation } from '../../contexts/TranslationContext';
import { RocketChatSection } from './RocketChatSection';
import { CommitSection } from './Commi... |
client/pc/src/views/LoginLayout.js | CongYunan/course_attendance | // 加载 React 相关组件
import React, { Component } from 'react';
// 加载 AntD 相关组件
import { Form, Icon, Input, Button, notification, Radio } from 'antd';
// 加载自定义组件
import Header from '../components/Header';
import Footer from '../components/Footer';
// 加载图片
import BackgroundJpg from '../images/background.jpg';
// 加载样式
import ... |
src/bootstrap/AdminPanelWrapper.js | EehMauro/dyscalculia-web | import React from 'react';
import { push } from 'react-router-redux';
import { connect } from 'react-redux';
import { withStyles } from 'material-ui/styles';
import { CircularProgress } from 'material-ui/Progress';
import { fetchSession, doLogout } from '../actions';
import { colors } from '../conventions';
import App... |
src/client/components/devtools-cursore/index.js | kevinhikaruevans/uojs2 | import React, { Component } from 'react';
import style from './style'
class DevtoolsCursore extends Component {
static displayName = '[component] devtools-cursore';
state = {
x : 150,
y : 150,
cursor : 'default',
list : [
'col-resize',
... |
src/components/login/LoginForm.js | ffossum/gamesite3-client | /* @flow */
import React from 'react';
type Props = {
logIn: Function,
loading: boolean,
};
type State = {
email: string,
password: string,
};
export default class LoginForm extends React.Component<Props, State> {
handleSubmit = (e: SyntheticInputEvent<>) => {
e.preventDefault();
if (!this.props.load... |
src/app/modals/selectOils.js | webcoding/soapee-ui | import _ from 'lodash';
import React from 'react';
import Reflux from 'reflux';
import Griddle from 'griddle-react';
import cx from 'classnames';
import ga from 'react-ga';
import oilsStore from 'stores/oils';
import GriddlePager from 'components/griddlePager';
import Spinner from 'components/spinner';
let recipeOil... |
app/react/index.js | sunstorymvp/RWR-boilerplate | import 'config/foundation_init.scss';
import 'config/fonts.css';
import 'index.scss';
import 'styles/index.scss';
import 'config/globals';
import 'whatwg-fetch';
import 'babel-polyfill';
import 'foundation-sites';
import RWR from 'react-webpack-rails';
import React from 'react';
import { render } from 'react-dom';
im... |
ajax/libs/forerunnerdb/1.3.718/fdb-all.min.js | kennynaoh/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... |
demo/app.js | jasonslyvia/react-anything-sortable | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, hashHistory, Link, Redirect } from 'react-router';
import Containment from './pages/containment';
import Dynamic from './pages/dynamic';
import HOC from './pages/hoc';
import Image from './pages/image';
import Handle from './pages/han... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.