target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
src/renderer/Image/__test__/imageRendererTest.js | michalko/draft-wyswig | /* @flow */
import React from 'react';
import { expect, assert } from 'chai';
import { shallow } from 'enzyme';
import { getAllBlocks } from 'draftjs-utils';
import { convertFromHTML, AtomicBlockUtils, ContentState, EditorState } from 'draft-js';
import getImageComponent from '../index';
describe('ImageRenderer test... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | template01/editthispost | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | kapari/ak-space | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
ajax/libs/jointjs/0.6.1/joint.js | bootcdn/cdnjs | /*! JointJS v0.6.0 - JavaScript diagramming library 2013-08-05
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*!
* jQuery JavaScript Library v1.9.1
* http://jquery... |
src/svg-icons/maps/directions-run.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsRun = (props) => (
<SvgIcon {...props}>
<path d="M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l... |
webpack/__mocks__/foremanReact/components/common/table.js | jlsherrill/katello | import React from 'react';
export const headerFormat = value => <th>{value}</th>;
export const cellFormat = value => <td>{value}</td>;
const Table = () => <table />;
export default Table;
|
media/akeeba_strapper/js/akeebajq.js | ForAEdesWeb/AEW2 | /*! 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 ... |
ajax/libs/material-ui/5.0.0-alpha.31/Drawer/Drawer.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { deepmerge, integerPropType } from '@material-ui/utils';
im... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | ExcelsiorCore/TheSocialNetwork | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
admin/client/Signin/index.js | snowkeeper/keystone | /**
* The signin page, it renders a page with a username and password input form.
*
* This is decoupled from the main app (in the "App/" folder) because we inject
* lots of data into the other screens (like the lists that exist) that we don't
* want to have injected here, so this is a completely separate route and... |
src/layout.js | avalla/webpack-react-kit | import React from 'react'
import { render } from 'react-dom'
import Menu from './components/_shared/menu.js'
import Footer from './components/_shared/footer.js'
export default class App extends React.Component {
static defaultProps = {
title: "webpack-react-kit",
}
static propTypes = {
title: React.PropT... |
app/routes.js | lumibloc/tabloc | /* eslint flowtype-errors/show-errors: 0 */
import React from 'react';
import { Switch, Route } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
import CounterPage from './containers/CounterPage';
export default () => (
<App>
<Switch>
<Route path="/coun... |
src/example/app/pages/Settings.js | lighter-cd/ezui_react_one | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {Link} from 'react-router-dom';
import {AppBar} from '../../../lib/components/appBar';
import {Container,FixedBox,EnlargeBox} from '../../../lib/flexBoxLayout';
import {Row,Col} from '../../../lib/flexBoxGrid';
import {Button,Switch, ... |
src/routes/contact/index.js | peeyush1234/react-nodejs-skeleton | /**
* 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 Layout from '../../co... |
views/src/components/CustomerSelect.js | apruve/apruve-ruby-demo | import React from 'react'
import Select from "react-dropdown-select";
class CustomerSelect extends React.Component {
constructor(props) {
super(props);
this.select_customer = this.select_customer.bind(this)
}
select_customer(index) {
this.props.select_customer(index);
}
render() {
const cust... |
src/components/exampleComponent.js | mazairaj/thejulianmaz |
import React from 'react';
import Interactive from 'react-interactive';
import { Switch, Route, Link } from 'react-router-dom';
import ExampleTwoDeepComponent from './exampletwodeepcomponent';
import PageNotFound from './pagenotfound';
import s from '../styles/exampleComponent.style';
const ExamplePageText = () => (
... |
examples/shopping-cart/test/components/ProductsList.spec.js | tatsuhino/reactPractice | import expect from 'expect'
import React from 'react'
import { shallow } from 'enzyme'
import ProductsList from '../../components/ProductsList'
function setup(props) {
const component = shallow(
<ProductsList title={props.title}>{props.children}</ProductsList>
)
return {
component: component,
childr... |
src/browser/auth/LoginError.react.js | vacuumlabs/este | import Component from 'react-pure-render/component';
import React, { PropTypes } from 'react';
import { FormattedMessage, defineMessages } from 'react-intl';
const messages = defineMessages({
required: {
defaultMessage: `Please fill out {prop, select,
email {email}
password {password}
}.`,
id... |
docs/src/examples/elements/Segment/Types/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
const SegmentTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExampl... |
ajax/libs/6to5/3.3.10/browser.js | victorjonsson/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
Tutorial/js/project/2.MeiTuan/Component/Mine/XMGMineMiddleView.js | onezens/react-native-repo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
TouchableOpacity
} from 'react-native';
/**-------导入外部的json数据-------***/
var MiddleData = require('./MiddleData... |
stories/demos/exampleCode/backgroundEvents.js | jquense/react-big-calendar | import React, { Fragment, useMemo } from 'react'
import PropTypes from 'prop-types'
import { Calendar, Views, DateLocalizer } from 'react-big-calendar'
import DemoLink from '../../DemoLink.component'
import events from '../../resources/events'
import backgroundEvents from '../../resources/backgroundEvents'
import * as ... |
src/components/Logo/Logo.js | neontribe/gbptm | import React from 'react';
import Box from '../Box';
import logo from './logo.svg';
const Logo = (props) => (
<Box
as="img"
src={logo}
alt="The Great British Toilet Map"
width={154}
{...props}
/>
);
export default Logo;
|
ajax/libs/react-router/0.5.3/react-router.js | ericelliott/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define,module,export... |
ajax/libs/react-data-grid/2.0.39/react-data-grid.js | maruilian11/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... |
applications/lemessage/static/js/analytics.min.js | gcw/pycon2014-web2py-tutorial | !function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module.export... |
public/app/components/ui-project-tab/index.js | vincent-tr/mylife-home-studio | 'use strict';
import React from 'react';
import * as mui from 'material-ui';
import * as bs from 'react-bootstrap';
import PropertiesContainer from '../../containers/ui-project-tab/properties-container';
import ExplorerContainer from '../../containers/ui-project-tab/explorer-container';
import DialogConfirmImportComp... |
.eslintrc.js | lycophron/lycophron | module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
... |
examples/pinterest/app.js | shunitoh/react-router | import React from 'react'
import { render } from 'react-dom'
import { browserHistory, Router, Route, IndexRoute, Link } from 'react-router'
import withExampleBasename from '../withExampleBasename'
const PICTURES = [
{ id: 0, src: 'http://placekitten.com/601/601' },
{ id: 1, src: 'http://placekitten.com/610/610' }... |
ui/node_modules/react-bootstrap/src/Input.js | bpatters/eservice | import React from 'react';
import classSet from 'classnames';
import Button from './Button';
const Input = React.createClass({
propTypes: {
type: React.PropTypes.string,
label: React.PropTypes.node,
help: React.PropTypes.node,
addonBefore: React.PropTypes.node,
addonAfter: React.PropTypes.node,
... |
ajax/libs/yui/3.4.0/event-focus/event-focus.js | dakshshah96/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="... |
web/src/components/Icons/CreditCard.js | dnote-io/cli | /* Copyright (C) 2019, 2020 Monomax Software Pty Ltd
*
* This file is part of Dnote.
*
* Dnote 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, or
* (at your optio... |
client/modules/core/components/ui/col.js | pstuart/Open-Dash | import React, { Component } from 'react';
class Col extends Component {
constructor(props) {
super(props);
this._classMap = {
xs: 'col-xs',
sm: 'col-sm',
md: 'col-md',
lg: 'col-lg',
xsOffset: 'col-xs-offset',
smOffset: 'col-sm-offset',
mdOffset: 'col-md-offset',
... |
templates/rubix/rubix-bootstrap/src/Col.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import classNames from 'classnames';
import React from 'react';
import BCol from 'react-bootstrap/lib/Col';
const breakpoints = ['xs', 'sm', 'md', 'lg'];
const directions = ['left', 'right', 'top', 'bottom'];
function ucfirst(str) {
return typeof str !="undefined" ? (str += '', str[0].toUpperCase() + str.substr(1))... |
src/applications/appeals/10182/tests/components/AddIssue.unit.spec.js | department-of-veterans-affairs/vets-website | import React from 'react';
import { expect } from 'chai';
import { render } from '@testing-library/react';
import sinon from 'sinon';
import { AddIssue } from '../../components/AddIssue';
import { issueErrorMessages } from '../../content/addIssue';
import { MAX_LENGTH, LAST_NOD_ITEM } from '../../constants';
import { ... |
ui/src/main/js/components/Tabs.js | rdelval/aurora | import React from 'react';
import Icon from 'components/Icon';
import { addClass } from 'utils/Common';
// Wrapping tabs in his component helps simplify testing of Tabs with enzyme's shallow renderer.
export function Tab({ children, icon, id, name }) {
return <div>{children}</div>;
}
export default class Tabs ext... |
ajax/libs/preact/5.0.0-beta8/preact.min.js | seogi1004/cdnjs | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.preact=e.preact||{})}(this,function(e){"use strict";function n(e,n,t){this.nodeName=e,this.attributes=n,this.children=t,this.key=n&&n.key}function t(e,n){if(n)for(var t in n)e[t... |
src/components/video_list.js | fahadqazi/react-redux | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return <VideoListItem
onVideoSelect={props.onVideoSelect}
video={video} key={video.etag} />
});
return(
... |
examples/counter/containers/CounterApp.js | Bjvanminnen/redux-devtools | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
class CounterApp extends Component {
render() {
const { counter, dispatch } = this... |
src/ScrollMemory.js | ipatate/react-router-scroll-memory | // @flow
import { Component } from "react";
import { withRouter } from "react-router-dom";
import {
isBrowser,
getScrollPage,
getScrollElement,
scrollTo,
scrollToElement
} from "./utils/utils";
type ScrollProps = {
location: Object,
elementID?: string
};
class ScrollMemory extends Component<ScrollProps>... |
node_modules/react/lib/Transaction.js | kristiankyvik/chatter-widget | /**
* 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... |
test/fixtures/mjs-support/src/App.js | Timer/create-react-app | import React, { Component } from 'react';
import {
graphql,
GraphQLSchema,
GraphQLObjectType,
GraphQLString,
} from 'graphql';
const schema = new GraphQLSchema({
query: new GraphQLObjectType({
name: 'RootQueryType',
fields: {
hello: {
type: GraphQLString,
resolve() {
r... |
packages/react-scripts/template/src/index.js | lopezator/create-react-app | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/routes.js | Bjorgvin/jumble | import React from 'react'
import { Router, Route, Redirect, Switch } from 'react-router'
import { Link } from 'react-router-dom'
import styled from 'styled-components'
import { darken } from 'polished'
import jumble, { root } from './view/jumbles/routes'
export default function routes(history) {
const Navigation = s... |
sources/csharp/csharp-web/sources/front/app/containers/HomePage/index.js | xunilrj/sandbox | /*
* 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 necessity for you then you can refactor it and remove
* the l... |
test/PagerSpec.js | rapilabs/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Pager from '../src/Pager';
import PageItem from '../src/PageItem';
describe('Pager', function () {
it('Should output a unordered list as root element with class "pager"', function () {
let instance = ReactTestUtils.renderInt... |
src/index.js | GeoTIFF/geotiff.io | import OfflinePluginRuntime from 'offline-plugin/runtime';
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import App from './components/app';
import buildStore from './build-store';
import { Provider } from 'react-redux';
import { loadTools } from './actio... |
docs/src/SupportPage.js | wjb12/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
export default class Page extends React.Component {
render() {
return (
<div>
<NavMain activePage="support" />
<PageHeader
title="Nee... |
ajax/libs/redux-form/8.3.1/redux-form.min.js | cdnjs/cdnjs | !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("react-redux"),require("redux")):"function"==typeof define&&define.amd?define(["react","react-redux","redux"],r):"object"==typeof exports?exports.ReduxForm=r(require("react"),require("react-redux"),require("redux"... |
node_modules/reactify/node_modules/react-tools/src/core/__tests__/ReactComponentLifeCycle-test.js | chi-sea-lions-2015/house-rules-frontend2 | /**
* Copyright 2013-2014, 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.
*
* @emails react-co... |
ajax/libs/js-data/1.5.0/js-data-debug.js | dmsanchez86/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file dist/js-data-debug.js
* @version 1.5.0 - Homepage <http://www.js-data.io/>
* @copyright (c) 2014 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Data store.
*/
!function(e){if("object"==typeof exports&&"undefine... |
ajax/libs/ag-grid/7.0.0/lib/utils.js | BenjaminVanRyseghem/cdnjs | /**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v7.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var FUNCTION_STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
var FUNCTION_ARGUMENT_NAMES = /([^\s,]+)/g;
// util class, o... |
ajax/libs/primereact/7.0.1/menu/menu.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { DomHandler, ZIndexUtils, ConnectedOverlayScrollHandler, classNames, ObjectUtils } from 'primereact/utils';
import { CSSTransition } from 'primereact/csstransition';
import { OverlayService } from 'primereact/overlayservice';
import { Portal } from 'primereact/portal';
... |
jchemhub/controller/plugin.js | chemhack/jchemhub | goog.provide('jchemhub.controller.Plugin');
goog.require('goog.events.EventTarget');
goog.require('goog.functions');
goog.require('goog.debug.Logger');
goog.require('goog.object');
goog.require('goog.reflect');
/**
* Abstract API for reaction editor plugins.
*
* @constructor
* @extends {goog.events.EventTarget}
... |
docs/app/Examples/elements/Segment/Variations/SegmentExampleSizes.js | ben174/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleSizes = () => {
const sizes = ['mini', 'tiny', 'small', 'large', 'big', 'huge', 'massive']
return (
<div>
{sizes.map(size => (
<Segment key={size} size={size}>
It's a {size} segment
</Segm... |
tests/routes/Counter/components/Counter.spec.js | VinodJayasinghe/CircleCI | import React from 'react'
import { bindActionCreators } from 'redux'
import { Counter } from 'routes/Counter/components/Counter'
import { shallow } from 'enzyme'
describe('(Component) Counter', () => {
let _props, _spies, _wrapper
beforeEach(() => {
_spies = {}
_props = {
counter : 5,
...bindA... |
ajax/libs/babel-core/4.5.1/browser.min.js | alexmojaki/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;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.babel=e()}}(function(){var e,n,l;return function t(e,... |
packages/material-ui-icons/src/MailOutline.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z" /></React.Fragment>
, ... |
src/components/Switch/Switch-test.js | wfp/ui | import React from 'react';
import Switch from '../Switch';
import { shallow } from 'enzyme';
describe('Switch', () => {
describe('component rendering', () => {
const buttonWrapper = shallow(
<Switch kind="button" icon={<svg />} text="test" />
);
const linkWrapper = shallow(
<Switch kind="anch... |
Routers/__tests__/index.ios.js | victorditadi/IQApp | 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 />
);
});
|
build/assets/js/index.js | mtsee/mtui2.0 | /*! mtui */
webpackJsonp([1],[function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}n(341);var l=n(1),r=a(l),u=n(16),i=n(120),s=n(76),o=n(473),d=a(o),c=n(21),f=n(179),m=n(196),p=a(m),h=n(278),_=a(h),E=(0,i.createStore)(_.default,(0,i.applyMiddleware)(d.default)),v=(0,f.syncHistoryWithStore)(c.... |
traveller/App/Components/FullButton.js | Alabaster-Aardvarks/traveller | // @flow
import React from 'react'
import { TouchableOpacity, Text } from 'react-native'
import styles from './Styles/FullButtonStyle'
import ExamplesRegistry from '../Services/ExamplesRegistry'
// Example
ExamplesRegistry.add('Full Button', () =>
<FullButton
text='Hey there, Harambe'
onPress={() => window.... |
packages/react-linked-input/__test__/LinkedInput-test.js | iamchenxin/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.
*
* @emails react... |
src/ButtonGroup/index.js | Paratron/modoJS | import React from 'react';
// import PropTypes from 'prop-types';
const propTypes = {};
const defaultProps = {};
export default class ButtonGroup extends React.Component {
render() {
const classNames = ['mdo-buttongroup'];
if (this.props.className) {
classNames.push(this.props.className);
}
return (
... |
ui/src/components/Navigation/Navigation.js | ebradshaw/insight | import React, { Component } from 'react';
import Navbar from 'react-bootstrap/lib/Navbar'
import NavItem from 'react-bootstrap/lib/NavItem'
import Nav from 'react-bootstrap/lib/Nav'
class Navigation extends Component {
render() {
return (
<Navbar>
<Navbar.Header>
<Navbar.Brand... |
packages/material-ui-icons/legacy/Battery30Sharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v11h10V4z" /><path d="M7 15v7h10v-7H7z" /></React.Fragment>
, 'Battery30Sharp');
|
ajax/libs/mobx-react/3.3.0/index.min.js | cdnjs/cdnjs | !function(){function e(e,t,n){function o(e){return n?n.findDOMNode(e):null}function r(e){var t=o(e);t&&u.set(t,e),d.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function i(e,t){var n=e[t],o=m[t];n?e[t]=function(){n.apply(this,argumen... |
src/app/components/Footer.js | Boluwatifes/andela24 | import React from 'react';
const Footer = () => (
<div className="col s12 home-inner footer" >
<div className="inner-content center m-auto">
<p> Copyright © 2017 Andela24 News - All rights reserved </p>
</div>
</div>
);
export default Footer;
|
3_compress_ensure_render/component/extPage/index.js | chkui/react-server-demo | import React from 'react'
const ExtPage = props =>{
return(
<div>这就是一个为了静态看的页面</div>
)
}
module.exports = ExtPage
module.exports.default = module.exports |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-17/friends/Friends.entry.js | Brandon-J-Campbell/codemash | import React from 'react';
import getFriendsFromApi from './get-friends-from-api';
import Friends from './Friends';
export default class FriendsEntry extends React.Component {
state = {
friends: []
}
async componentDidMount() {
const friends = await getFriendsFromApi();
this.setState({
frien... |
src/components/Header/Header.js | jlopezh/donation-project | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Header.scss';
import Link from '../Link';
import Navigation from '../Navigation';
function Header() {
return (
<div className={s.root}>
<div className={s.container}>
<Navigation className={s... |
src/views/components/icon/index.spec.js | zerubeus/sawt | import React from 'react';
import { render, shallow } from 'enzyme';
import Icon from './index';
describe('views', () => {
describe('Icon', () => {
it('should render an icon', () => {
let wrapper = shallow(<Icon name="play" />);
let svg = wrapper.find('svg');
expect(svg.length).toBe(1);
... |
node_modules/react-bootstrap/lib/Jumbotron.js | rblin081/drafting-client | 'use strict';
exports.__esModule = true;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProper... |
src/svg-icons/action/timeline.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTimeline = (props) => (
<SvgIcon {...props}>
<path d="M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07... |
src/components/tab2/Step1.js | dfw-chris-diaz/react-demo | import React from 'react';
import { Link } from 'react-router';
export default function Step1() {
return (
<div>
<h1 id="setp3_hdr"><span className="brightRedText">Step 1</span></h1>
<div>Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni d... |
mobile/__tests__/index.android.js | sradevski/homeAutomate | 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 />
);
});
|
node_modules/enzyme/src/ShallowTraversal.js | furgat/sabertoot | import React from 'react';
import isEmpty from 'lodash/isEmpty';
import isSubset from 'is-subset';
import functionName from 'function.prototype.name';
import {
propsOfNode,
splitSelector,
isCompoundSelector,
selectorType,
AND,
SELECTOR,
nodeHasType,
nodeHasProperty,
} from './Utils';
export function c... |
src/ItemView.js | jdaudier/Timo-Plato | import React, { Component } from 'react';
import { Button } from './Button';
import { styles } from './styles/styles';
export class ItemView extends Component {
constructor(props) {
super(props);
this.state = {
editMode: false,
origProjectName: this.props.projectName,
... |
packages/material-ui-icons/src/LastPageRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" opacity=".87" /><path d="M6.29 8.11L10.18 12l-3.89 3.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L7.7 6.7a.9959.9959 0 ... |
src/EventCell.js | manishksmd/react-scheduler-smartdata | import PropTypes from 'prop-types';
import React from 'react';
import cn from 'classnames';
import dates from './utils/dates';
import { accessor, elementType } from './utils/propTypes';
import { accessor as get } from './utils/accessors';
import Img from './img/doctor.png';
import AppointmentBox from './AppointmentBox'... |
src/tools/index.js | edabot/supa | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
tests/framework.spec.js | janceChun/redux-docker-swarm | import assert from 'assert'
import React from 'react'
import {mount, render, shallow} from 'enzyme'
class Fixture extends React.Component {
render () {
return (
<div>
<input id='checked' defaultChecked />
<input id='not' defaultChecked={false} />
</div>
)
}
}
describe('(Framewo... |
src/shared/Error.js | kashisau/enroute | /**
* Error.js
*
* (C) 2017 mobile.de GmbH
*
* @author <a href="mailto:pahund@team.mobile.de">Patrick Hund</a>
* @since 10 Feb 2017
*/
import React from 'react';
const style = {
padding: '16px'
};
export default () => (
<div style={style}>
<h1>Sorry!</h1>
<p>Something went horribly wron... |
docs/src/components/Docs/Props/index.js | michalko/draft-wyswig | /* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { EditorState, convertToRaw, ContentState, Modifier } from 'draft-js';
import draftToHtml from 'draftjs-to-html';
import htmlToDraft from 'html-to-draftjs';
import { Editor } from 'react-draft-wysiwyg';
import Codemirror f... |
ajax/libs/yui/3.4.1/yui/yui-debug.js | hristozov/cdnjs | /**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI global namespac... |
client-src/components/comparison/header/Header.js | minimus/final-task | import React from 'react'
import propTypes from 'prop-types'
import { NavLink } from 'react-router-dom'
export default function Header({ text, link }) {
return (
<h1 className="item-header">
<NavLink to={link}>{text}</NavLink>
</h1>
)
}
Header.propTypes = {
text: propTypes.string.isRequired,
lin... |
src/parser/warrior/arms/modules/features/Checklist/Module.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import BaseChecklist from 'parser/shared/modules/features/Checklist/Module';
import CastEfficiency from 'parser/shared/modules/CastEfficiency';
import Combatants from 'parser/shared/modules/Combatants';
import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist/PreparationR... |
ajax/libs/js-data/0.0.1/js-data.js | amoyeh/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file js-data.js
* @version 0.0.1 - Homepage <http://js-data.io/>
* @copyright (c) 2014 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Data store.
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof modu... |
src/App.js | lelandlee/FoodFates | import React, { Component } from 'react';
const MapboxMap = require('./MapboxMap');
const SideBar = require('./SideBar')
const rStore = require('./reduxStore')
//If setting up store + actions fail -> move all code to this file....
export default class App extends Component {
render() {
const store = rStore.getSt... |
js/jqwidgets/demos/react/app/scheduler/bindingtoicalendar/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js';
class App extends React.Component {
componentDidMount() {
setTimeout(() => {
this.refs.myScheduler.scrollTop(200);
})
}
render() {
let... |
src/components/common/svg-icons/social/location-city.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialLocationCity = (props) => (
<SvgIcon {...props}>
<path d="M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h... |
src/containers/docs-page/content/why-contribute.js | chuckharmston/testpilot-contribute | import React from 'react';
import DocsPage from '../index';
export default class WhyContribute extends DocsPage {
renderTitle() {
return 'Why would I contribute?';
}
renderContent() {
return (
<div>
<blockquote>
<p>
…helped me earn many of the skills I later used for... |
imports/client/ui/pages/Page/Edit/index.js | mordka/fl-events | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Button } from 'reactstrap'
import './styles.scss'
class EditPage extends Component {
render () {
return (
<div id='edit-page'>
<Button color='primary' onClick={this.openEditModal}>
Edit Page
<i ... |
ajax/libs/react-router/2.0.9-rc4/ReactRouter.js | holtkamp/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["ReactRouter"] = fac... |
scratch-blocks/node_modules/google-closure-library/closure/goog/events/actionhandler.js | isabela-angelo/scratch-tangible-blocks | // Copyright 2007 The Closure Library Authors. All Rights Reserved.
//
// 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 requ... |
MARVELous/client/src/js/components/characterScroller/index.js | nicksenger/StackAttack2017 | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class CharacterScroller extends Component {
constructor(props) {
super(props);
this.state = {
pointer: 0
};
this.backShift = this.backShift.bind(this);
this.frontShift = this.frontShift.bind(this);... |
files/babel/5.4.0/browser-polyfill.js | jtblin/jsdelivr | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/components/custom-components/System/Spinner/SpinnerGlobal.js | ArtyomVolkov/music-search | import React, { Component } from 'react';
import { connect } from 'react-redux';
// Components
import { CircularProgress } from 'material-ui';
// Styles
import './SpinnerGlobal.scss';
@connect(
state => ({
spinner: state.system.spinner
}),
dispatch => ({})
)
class SpinnerGlobal extends Component {
render ... |
static/assets/js/react.min.js | ghophp/buildbot-dashboard | /**
* React v0.14.2
*
* 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.
*... |
src/List/ListItem.js | pradel/material-ui | import React from 'react';
import ReactDOM from 'react-dom';
import shallowEqual from 'recompose/shallowEqual';
import {fade} from '../utils/colorManipulator';
import transitions from '../styles/transitions';
import EnhancedButton from '../internal/EnhancedButton';
import IconButton from '../IconButton';
import OpenIco... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.