path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
packages/cmf/src/components/ErrorFeedBack/ErrorFeedBack.component.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import ErrorPanel from '../ErrorPanel';
function ErrorFeedBack(props) {
const content = props.errors.map(error => <ErrorPanel key={error} error={error} />);
if (!props.fullPage) {
return <React.Fragment>{content}</React.Fragment>;
}
const style = {
... |
src/svg-icons/notification/wc.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationWc = (props) => (
<SvgIcon {...props}>
<path d="M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22h-4zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6... |
higher-demo/react-all/react-all-demo/src/router/router.js | CFshuming/react-demo-gather | import React from 'react';
import {BrowserRouter as Router, Route, Switch, Link} from 'react-router-dom';
import Home from 'pages/Home/Home';
import Page1 from 'pages/Page1/Page1';
import Counter from 'pages/Counter/Counter';
import UserInfo from 'pages/UserInfo/UserInfo';
const getRouter = () => (
<Router>
... |
ajax/libs/chimee/0.5.3/index.browser.js | joeyparrish/cdnjs |
/**
* chimee v0.5.3
* (c) 2017 toxic-johann
* Released under MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Chimee = factory());
}(this, (function () { 'use s... |
src/docs/layout.js | gabrielcsapo/psychic-ui | import React from 'react';
import './style.css';
import '../../dist/psychic.min.css';
import 'code-prettify/src/prettify.js';
class Layout extends React.Component {
render () {
const { children } = this.props;
return (
<div>
{ children }
</div>
);
}
}
export default Layout;
|
www/frontend/node_modules/eslint-config-airbnb/test/test-react-order.js | lokiiart/upali-mobile | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import reactRules from '../rules/react';
import reactA11yRules from '../rules/react-a11y';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
// This rule fails when executing on text.
rules: { indent: ... |
src/components/Link.react.js | nickooms/racing-webgl2 | // Link.react.js
import React from 'react';
const STATUS = {
HOVERED: 'hovered',
NORMAL: 'normal',
};
export default class Link extends React.Component {
constructor(props) {
super(props);
this._onMouseEnter = this._onMouseEnter.bind(this);
this._onMouseLeave = this._onMouseLeave.bind(this);
... |
frontend/containers/Login.js | anabiozz/blog | import React from 'react';
import connect from 'react-redux/lib/connect/connect';
import Link from 'react-router/lib/Link';
class Login extends React.Component {
render() {
// const { settings } = this.props;
return (<div className="container">
<h1>Select your ADFS to sign in:</h1>
... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/done-all.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionDoneAll = (props) => (
<SvgIcon {...props}>
<path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/>
</SvgIcon>
);
ActionDoneA... |
src/screen/identity/PersonalInformation.js | dengjialin/react-native-loanapp | import React from 'react';
import {observer} from 'mobx-react'
import { Keyboard, View ,StyleSheet,Text,ScrollView} from 'react-native';
import {NavBar,IFormItem,createForm,Item} from '../../component/index'
import {Button,Toast} from 'antd-mobile'
@observer
class PersonalInformation extends React.Component{
compon... |
ajax/libs/forerunnerdb/1.3.71/fdb-legacy.min.js | humbletim/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... |
ajax/libs/yui/3.10.2/event-custom-base/event-custom-base.js | xirzec/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
src/components/Link/index.js | scottdj92/t7-chicken-native | import React, { Component } from 'react';
import { View, Text, ScrollView, Linking, StyleSheet } from 'react-native';
import { yellow, redSecondary } from '../../style/vars/colors';
// Link component
const Link = ({url, name, textStyle, children}) => (
<Text
style={[Styles.link, textStyle]}
onPress={()=> Li... |
src/mui/layout/Layout.js | RestUI/rest-ui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import autoprefixer from 'material-ui/utils/autoprefixer';
import CircularPro... |
tests/routes/Counter/components/Counter.spec.js | availabs/auth_container | 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... |
app/app.js | theterra/newsb | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
ajax/libs/angular.js/1.0.0/angular-scenario.js | mxgit1090/cdnjs | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
components/StickyNode/StickyNode.story.js | rdjpalmer/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import Hero from '../Hero/Hero';
import m from '../../globals/modifiers.css';
import StickyNode from './StickyNode';
storiesOf('StickyNode', module)
.add('Individual sticky bar', () => (
<div>
<div
className={m.pa96}
... |
src/components/Radial.react.js | xiwc/kitematic | import React from 'react';
import classNames from 'classnames';
var Radial = React.createClass({
render: function () {
var percentage;
if ((this.props.progress !== null && this.props.progress !== undefined) && !this.props.spin && !this.props.error) {
percentage = (
<div className="percentage"><... |
src/StaticContainer.js | glinjy/react-native-apex-ui |
'use strict';
import React, {Component, PropTypes} from 'react';
import ReactNative, {View, Text} from 'react-native';
class StaticContainer extends React.Component {
shouldComponentUpdate(nextProps: Object): boolean {
const {shouldUpdate} = nextProps;
if(typeof shouldUpdate === 'function') {
return shou... |
image.js | jayesbe/react-native-cacheable-image | import PropTypes from 'prop-types';
import React from 'react';
import { Image, ActivityIndicator, Platform } from 'react-native';
import RNFS, { DocumentDirectoryPath } from 'react-native-fs';
import ResponsiveImage from 'react-native-responsive-image';
// support RN 0.60
import NetInfo from "@react-native-community/n... |
client/app/scripts/components/__tests__/node-details-test.js | dilgerma/scope | import React from 'react';
import Immutable from 'immutable';
import TestUtils from 'react/lib/ReactTestUtils';
jest.dontMock('../node-details.js');
jest.dontMock('../node-details/node-details-controls.js');
jest.dontMock('../node-details/node-details-relatives.js');
jest.dontMock('../node-details/node-details-table.j... |
packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js | CodingZeal/create-react-app | /**
* Copyright (c) 2015-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.
*/
import React from 'react';
export default () => (
<span id="feature-shell-env-variables">
{process.env.REACT_APP_SHELL_ENV_MESSAG... |
Modul-II/01.High-Quality-Code/04.Design-Patterns/DIi.NET_SourceCode/Lifetime/MvcApplication/Scripts/jquery-1.4.1.js | RuzmanovDev/Telerik-Academy-Season-2016-2017 | /*!
* jQuery JavaScript Library v1.4.1
* http://jquery.com/
*
* Copyright 2010, John Resig
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files... |
modules/gui/src/app/home/body/process/recipe/remapping/panels/remappingToolbar.js | openforis/sepal | import {Legend} from '../legend/legend'
import {Mapping} from './mapping/mapping'
import {Retrieve} from './retrieve/retrieve'
import {Toolbar} from 'widget/toolbar/toolbar'
import {compose} from 'compose'
import {msg} from 'translate'
import {selectFrom} from 'stateUtils'
import {setInitialized} from 'app/home/body/pr... |
node_modules/react-error-overlay/lib/containers/RuntimeError.js | rwarr/futaba-db | /**
* 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.
*/
import Rea... |
clients/components/DocSearch/DocSearch.js | CalderaWP/Caldera-Forms | import React from 'react';
import axios from 'axios';
import {debounce} from 'throttle-debounce';
import {Form, FormGroup, Row, Col, Tab, Tabs, Fade} from 'react-bootstrap';
import {Catdera} from "../Catdera/Catdera";
import {AddonCategory} from './Components/AddonCategory';
import {Keyword} from "./Components/Keyword"... |
packages/frontend/tests/components/common/TextField/index.spec.js | ks888/LambStatus | import React from 'react'
import ReactTooltip from 'react-tooltip'
import TextField, { enterKeyCode } from 'components/common/TextField'
import { mount } from 'enzyme'
describe('TextField', () => {
const generateProps = () => {
return {
onChange: sinon.spy(),
onEnterKey: sinon.spy(),
label: 'la... |
simul/app/components/story2.js | sf-red-pandas-2016/simul-react-native | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableHighlight,
} from 'react-native';
import Profile from './profile2.js';
import api from '../Utils/api.js';
import Home from './home.js'
import I18n from 'react-native-i18n'
class Story extends Component{
constructor(props) {... |
components/slider/Slider.js | rubenmoya/react-toolbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import styleShape from 'react-style-proptype';
import { themr } from 'react-css-themr';
import { round, range } from '../utils/utils';
import { SLIDER } from '../identifie... |
app/routes.js | paladinze/testSemantic | 'use strict';
import React from 'react'
import { Route, IndexRoute } from 'react-router'
import Layout from './components/Layout';
import IndexPage from './components/IndexPage';
import NotFoundPage from './components/NotFoundPage';
import Home from './components/Home';
import PromptContainer from './containers/Prompt... |
ajax/libs/yui/3.5.1/event-focus/event-focus.js | AbsoluteMSTR/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,
arrayIndex = Y.Array.indexOf,
useActivate = YLang.isFunction(
Y... |
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js | way1989/actor-platform | import React from 'react';
import Modal from 'react-modal';
//import pureRender from 'pure-render-decorator';
import { Styles, FlatButton } from 'material-ui';
import AppCacheStore from 'stores/AppCacheStore';
import AppCacheActionCreators from 'actions/AppCacheActionCreators';
import { KeyCodes } from 'constants/Act... |
src/AffixMixin.js | zanjs/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
const AffixMixin = {
propTypes: {
offset: React.PropTypes.number,
offsetTop: React.PropTypes.number,
offsetBottom: React.PropTypes.number
},
getInitialState() {
return {
a... |
src/svg/MenuArrow.js | nirhart/wix-style-react | import React from 'react';
export default function MenuArrow() {
return (
<svg width="8px" height="8px" viewBox="0 0 58 32">
<path d="M51.2 6.4c0 0 0 6.4 0 6.4s-6.4 0-6.4 0c0 0 0 6.4 0 6.4s-6.4 0-6.4 0c0 0 0 6.4 0 6.4s-6.4 0-6.4 0c0 0 0 6.4 0 6.4s-6.4 0-6.4 0c0 0 0-6.4 0-6.4s-6.4 0-6.4 0c0 0 0-6.4 0-6.4s-... |
stories/examples/ButtonToolbar.js | reactstrap/reactstrap | import React from 'react';
import { Button, ButtonGroup, ButtonToolbar } from 'reactstrap';
const Example = (props) => {
return (
<ButtonToolbar>
<ButtonGroup>
<Button>1</Button>
<Button>2</Button>
<Button>3</Button>
<Button>4</Button>
</ButtonGroup>
<ButtonGroup... |
test/TrackColor.spec.js | madison-kerndt/avant-garde-synesthesia | import React from 'react';
import { shallow, mount, render, spys } from 'enzyme';
import { assert, expect } from 'chai';
import TrackColor from '../lib/components/TrackColor';
describe('TrackColor', () => {
const wrapper = shallow(<TrackColor />);
context('render', () => {
it('should render within a section'... |
Libraries/Lists/__tests__/SectionList-test.js | orenklein/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.
*
*/
'use str... |
client/vehicle-finder-spa/src/containers/profile.js | Del7a/vehicle-finder | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Form from '../components/profile/info';
import { bindActionCreators } from 'redux';
import {getUserProfile, postUserProfile, formChanged} from '../actions/user';
import { Redirect } from 'react-router'
class ProfileForm extends C... |
src/routes/indexSelection.js | daxiangaikafei/QBGoods | import React from 'react'
import { Route, IndexRoute, Router } from 'dva/router'
import CoreLayout from '../containers/layout'
import Selection from 'views/Special/Selection/page'
import SelectionList from "views/Special/SelectionList/page"
export default function (ref) {
return (
<Router history={ref.history}>
... |
Components/Component.js | webismymind/Mycelium |
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
export default class extends React.Component {
render() {
{this.props.children}
}
} |
Playground/Layout/src/index.js | ScotlandsMountains/ScotlandsMountains | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import "normalize.css/normalize.css";
import "./reset.scss";
import "./index.scss";
import "./delete.scss";
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
node_modules/material-ui/lib/svg-icons/device/signal-cellular-connected-no-internet-3-bar.js | Sporks/Doc-tor | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi... |
js/rendererjs/disabledplugin.js | NebulousLabs/New-Sia-UI | import PropTypes from 'prop-types'
import React from 'react'
import { shell } from 'electron'
const containerStyle = {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
flexDirection: 'column',
backgroundColor: '#C6C6C6',
width: '100%',
height: '100%'
}
const errorLogStyle = {
height: '... |
node_modules/react-icons/fa/inbox.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaInbox = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m25.8 21.4h7.1q0 0-0.1-0.1t0-0.2l-4.8-11.1h-15.8l-4.7 11.1q0 0 0 0.2t-0.1 0.1h7.1l2.1 4.3h7.1z m11.5 0.7v10.8q0 0.5-0.4 1t-1 0.4h-31.5q-0.6 0-1-0.4t-0.4-1v-10.8q0-1.4 0... |
build/lib/PathUtils.js | Takeno/react-router | 'use strict';
var invariant = require('react/lib/invariant');
var assign = require('object-assign');
var qs = require('qs');
var paramCompileMatcher = /:([a-zA-Z_$][a-zA-Z0-9_$]*)|[*.()\[\]\\+|{}^$]/g;
var paramInjectMatcher = /:([a-zA-Z_$][a-zA-Z0-9_$?]*[?]?)|[*]/g;
var paramInjectTrailingSlashMatcher = /\/\/\?|\/\?... |
src/components/RowWithButton/RowWithButton.js | andresmechali/shareify | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
class RowWithButton extends React.Component {
render() {
return (
<div className="container">
<div className="row">
<div className="col-xl-12 col-lg-12 col... |
imports/ui/pages/Order.js | manhhailua/meteor-react-mui-starter-app | /**
* Created by manhhailua on 1/5/17.
*/
import { Paper } from 'material-ui';
import React, { Component } from 'react';
import BottomBar from '../components/BottomBar';
import Content from '../components/Content';
import TopBar from '../components/TopBar';
class Order extends Component {
render() {
return (
... |
src/components/Top/Wallet.js | chochinlu/ens-bid-dapp | import React from 'react';
import Button from 'material-ui/Button';
import './Wallet.css';
export const Wallet = (props) => {
const unlockWallet = (props.privateKey) ? 'WalletBtn unlock' : 'WalletBtn';
return (
<Button className={unlockWallet} color="contrast" onClick={props.onClick}>
<i className="mater... |
src/svg-icons/action/settings-input-svideo.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputSvideo = (props) => (
<SvgIcon {...props}>
<path d="M8 11.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h... |
ajax/libs/react-native-web/0.0.0-d6e83d84a/cjs/vendor/react-native/VirtualizedSectionList/index.js | cdnjs/cdnjs | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
'use strict';
exports.__esModule = true;
exports.default = void 0;
var React = _interopRequireWildcard(require(... |
src/components/icons/CloudsIcon.js | maximgatilin/weathernow | import React from 'react';
export default function CloudsIcon() {
return (
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 129.97 95.48"><title>clouds</title><path d="M456.46,167h0c0-.25,0-0.5,0-0.75a36.25,36.25,0,1,0-72.51,0s0,0,0,.07a29.59,29.59,0,0,0,1.39,59.16h71.12A29.24,... |
ajax/libs/rxjs/2.3.23/rx.compat.js | joeyparrish/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/components/Authorization/AuthorizationByPhone.js | dialogs/dialog-web-components | /*
* Copyright 2019 dialog LLC <info@dlg.im>
* @flow
*/
import type { AuthError } from '@dlghq/dialog-types';
import type { PhoneValue, InputState } from './types';
import type { Country } from '../CountryCodeSelector/types';
import React, { PureComponent } from 'react';
import { Text } from '@dlghq/react-l10n';
im... |
public/js/jquery.min.js | pasindud/ideamart-group-simulator | /*! 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===... |
jekyll-strapi-tutorial/api/plugins/content-manager/admin/src/components/EditRelations/index.js | strapi/strapi-examples | /**
*
* EditRelations
*
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import { get, map } from 'lodash';
// Components.
import SelectOne from 'components/SelectOne';
import SelectMany from 'components/SelectMany';
import styles from './styles.scs... |
react-native/Hello/index.ios.js | yuanzhaokang/myAwesomeSimpleDemo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Button,
WebView,
TextInput
} from 'react-native';
export default class Hello extends Component {
constructor(props) {
supe... |
packages/material-ui-icons/src/InvertColors.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M24 0H0v24h24z" /><path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 ... |
QA/node_modules/gulp-react/node_modules/react-tools/src/classic/element/__tests__/ReactElement-test.js | lishengzxc/reactjsNote | /**
* 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.
*
* @emails react-co... |
src/index.js | RobKohr/islandwarfare.com | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register()... |
app/js/components/header/SessionInfoManager.js | niksoc/srmconnect | import React from 'react';
import {Navbar, Nav, NavItem, MenuItem, NavDropdown} from 'react-bootstrap';
import {browserHistory} from 'react-router';
import GenericModal from '../common/GenericModal';
import {BASE_URL} from '../../constants';
import LoginForm from './LoginForm';
class SessionInfoManager extends React.C... |
ajax/libs/formsy-react/0.12.3/formsy-react.min.js | x112358/cdnjs | !function t(i,n,e){function r(o,u){if(!n[o]){if(!i[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(s)return s(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var d=n[o]={exports:{}};i[o][0].call(d.exports,function(t){var n=i[o][1][t];return r(n?n:t)},d,d.ex... |
src/components/DownloadForm/ProgressAnimation/test.js | ProteinsWebTeam/interpro7-client | // @flow
import React from 'react';
import ShallowRenderer from 'react-test-renderer/shallow';
import ProgressAnimation from '.';
const renderer = new ShallowRenderer();
describe('<ProgressAnimation />', () => {
test('should render', () => {
renderer.render(
<ProgressAnimation download={{ progress: 1, su... |
src/components/FloatingConfirmButtons.js | hihuz/meny | import React from "react";
const FloatingConfirmButtons = ({ cancelChanges, saveChanges, isValid }) => (
<div className="floating-buttons">
{isValid ? (
<button className="edit-button" onClick={saveChanges}>
<i className="icon-floppy-o" />
</button>
) : null}
<button className="edit-b... |
src/components/Splash.js | vitorgomateus/NotifyMe | /**
* Created by VitorMaGo on 19/12/2016.
*/
import React, { Component } from 'react';
import Spinner from 'react-spinkit';
import splashLogo from '../../public/img/logo.png'
import '../css/splash.css'
class Splash extends Component {
render(){
return (
<div className="fullscreen-wrapper f... |
ajax/libs/flat-ui/2.1.2/js/jquery-1.10.2.min.js | dada0423/cdnjs | /*! 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... |
openex-front/src/private/components/exercises/Exercises.js | Luatix/OpenEx | import React from 'react';
import { makeStyles } from '@mui/styles';
import { useDispatch } from 'react-redux';
import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
import ListItemIcon from '@mui/material/ListItemIcon';
import ListItemText from '@mui/material/ListItemText';
import { Lin... |
ajax/libs/Sly/1.2.6/sly.js | calvinf/cdnjs | /*!
* sly 1.2.6 - 11th Oct 2014
* https://github.com/darsain/sly
*
* Licensed under the MIT license.
* http://opensource.org/licenses/MIT
*/
;(function ($, w, undefined) {
'use strict';
var pluginName = 'sly';
var className = 'Sly';
var namespace = pluginName;
// Local WindowAnimationTiming interface
va... |
examples/with-create-react-app-custom/src/index.js | lwhitlock/grow-tracker | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.scss';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
ajax/libs/yasr/2.5.2/yasr.bundled.min.js | jonathantneal/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
modules/__tests__/isActive-test.js | arbas/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 =... |
ReactJS_Seed_Project/app/components/layouts/Blank.js | huang6349/inspinia | import React from 'react';
class Blank extends React.Component {
render() {
return (
<div>
{this.props.children}
</div>
)
}
componentDidMount(){
$('body').addClass('gray-bg');
}
componentWillUnmount(){
$('body').removeClass(... |
source/demo/index.js | edulan/react-virtualized | // IE 10+ compatibility for demo (must come before other imports)
import 'babel-polyfill'
// Import react-virtualized styles as part of bootstrap process
import '../../styles.css'
import React from 'react'
import { render } from 'react-dom'
import Application from './Application'
render(
<Application />,
docume... |
packages/mui-icons-material/lib/PestControlTwoTone.js | oliviertassinari/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
ajax/libs/yui/3.9.1/datatable-core/datatable-core.js | gabel/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
client/src/Pages/Landing.js | ciex/mietlimbo | // @flow
import React from 'react'
import { NavLink } from 'react-router-dom'
import { defineMessages, FormattedMessage } from 'react-intl'
import RaisedButton from 'material-ui/RaisedButton'
const style = {
wrapper: {
fontFamily: ['Open Sans', 'sans-serif']
},
title: {
margin: '3em auto'
},
okay: {... |
config/jestTestSetup.js | ory-am/editor | const enzyme = require('enzyme');
const EnzymeAdapter = require('enzyme-adapter-react-16');
const enableHooks = require('jest-react-hooks-shallow').default;
import React from 'react';
React.useLayoutEffect = React.useEffect;
enzyme.configure({ adapter: new EnzymeAdapter() });
enableHooks(jest);
|
ui/src/components/Position.js | Ion-Petcu/StockTrainer | import React from 'react'
export class Position extends React.Component {
constructor(props) {
super(props);
this.state = {
'units': 100
}
}
onUnitsChange(event) {
this.setState({units: parseInt(event.target.value)});
}
buyUnits() {
this.props.... |
src/svg-icons/device/battery-60.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery60 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h10V5.33z"/><path d="M7 11v9.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ... |
ajax/libs/react-virtualized/8.0.0-rc.2/react-virtualized.js | tholu/cdnjs | !function(root, factory) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(require("React"), require("React.addons.shallowCompare"), require("ReactDOM")) : "function" == typeof define && define.amd ? define([ "React", "React.addons.shallowCompare", "ReactDOM" ], factory) : "object... |
packages/components/src/Badge/BadgeComposition/BadgeSeparator/BadgeSeparator.component.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import badgeCssModule from '../../Badge.scss';
import { getTheme } from '../../../theme';
const theme = getTheme(badgeCssModule);
const BadgeSeparator = ({ iconSeparator }) => (
<span className={theme('tc-badge-separator', { 'tc-badge-separator-icon': ic... |
src/SvgIcon/SvgIcon.js | pradel/material-ui | import React from 'react';
import transitions from '../styles/transitions';
class SvgIcon extends React.Component {
static muiName = 'SvgIcon';
static propTypes = {
/**
* Elements passed into the SVG Icon.
*/
children: React.PropTypes.node,
/**
* This is the fill color of the svg icon.... |
src/components/Case.js | jonatanramhoj/single-page | import React from 'react';
import Accordion from '../../src/components/Accordion';
import GoToSection from '../../src/components/GoToSection';
class Case extends React.Component {
render() {
return(
<section className="case section" id="case">
<Accordion />
<GoToSection href="about" />
... |
Tutorial/__tests__/index.android.js | onezens/react-native-repo | 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/components/footer.js | khayyamj/thunderbirds_troop51 | import React, { Component } from 'react';
import { Header } from 'semantic-ui-react';
import { Link } from 'react-router';
class Footer extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
return(
<Header as='h4' textAlign='center' style={{color: 'white'}}>
... |
ajax/libs/zeroclipboard/2.1.0/ZeroClipboard.Core.js | Timbioz/cdnjs | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.1.0
*/
(function(window, undefined) {
"use strict";... |
src/svg-icons/image/center-focus-weak.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCenterFocusWeak = (props) => (
<SvgIcon {...props}>
<path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 8c-... |
lib/yard/doc/js/jquery.js | warkrug/documenting_your_projects | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
test/ButtonInputSpec.js | thealjey/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ButtonInput from '../src/ButtonInput';
import {shouldWarn} from './helpers';
describe('ButtonInput', () => {
it('renders an input button element with type=button', function () {
const instance = ReactTestUtils.renderIntoDocu... |
src/common/header/index.js | WhileTruu/peers-against-humanity-frontend | import React from 'react'
export default ({ children, navigation, stripes }) => ( // eslint-disable-line react/prop-types
<header>
{ stripes && <div className="stripes" /> }
<div className="container py-3">
<div className="d-flex justify-content-between align-items-center flex-wrap-reverse">
{ ... |
Blog/src/js/components/Menu/item.react.js | rcatlin/ryancatlin-info | import React from 'react';
import {Link} from 'react-router';
import MenuActions from '../../actions/MenuActions';
export default class Item extends React.Component {
static get displayName() {
return 'Item';
}
constructor(props) {
super(props);
Item.propTypes = {
ac... |
packages/material-ui-icons/src/UnsubscribeRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M18.5 11.5c.92 0 1.75.26 2.49.69V5c0-1.1-.89-2-1.99-2H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h8.55c-.02-.17-.05-.33-.05-.5 0-2.76 2.24-5 5-5zm-5.6... |
src/components/exercises/MissingText.stories.js | cognostics/serlo-abc | import React from 'react';
import { storiesOf } from '@storybook/react-native';
import MissingText from './MissingText';
storiesOf('exercises/MissingLetter', module)
.add('Apfel', () => (
<MissingText
image={require('../../assets/images/apfel.jpg')}
sounds={[
require('../../assets/sounds/apfe... |
src/components/ProgressBar.js | kpi-ua/ecampus.kpi.ua | import React from 'react';
const ProgressBar = (props) => (
<div className="spinner">
<div>{props.text}</div>
<div className="spinner-grow text-success" role="status">
<span className="sr-only">...</span>
</div>
<div className="spinner-grow text-success" role="status">
<span className="sr... |
app/javascript/flavours/glitch/components/missing_indicator.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import illustration from 'flavours/glitch/images/elephant_ui_disappointed.svg';
import classNames from 'classnames';
const MissingIndicator = ({ fullPage }) => (
<div className={classNames('regeneration-indi... |
ajax/libs/angular.js/0.9.13/angular-scenario.js | underyx/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
modules/__tests__/pushState-test.js | brownbathrobe/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import resetHash from './resetHash'
import execSteps from './execSteps'
import Router from '../Router'
import Route from '../Route'
describe('pushState', function () {
beforeEach(resetHash)
let node
beforeEach(function () {
node = d... |
node_modules/react-bootstrap/es/MenuItem.js | C0deSamurai/muzjiks | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
packages/icons/src/md/editor/FormatItalic.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdFormatItalic(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<polygon points="20 10 20 16 24.43 16 17.57 32 12 32 12 38 28 38 28 32 23.57 32 30.43 16 36 16 36 10" />
</IconBase>
);
}
export default MdFormatI... |
src/server.js | PitayaX/pitayax-web | import Express from 'express'
import React from 'react'
import ReactDOM from 'react-dom/server'
import config from './config'
import favicon from 'serve-favicon'
import compression from 'compression'
import httpProxy from 'http-proxy'
import path from 'path'
import createStore from './redux/create'
import ApiClient fro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.