path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
packages/core/admin/admin/src/content-manager/components/SelectWrapper/utils/connect.js | wistityhq/strapi | import React from 'react';
function connect(WrappedComponent, select) {
return function(props) {
// eslint-disable-next-line react/prop-types
const selectors = select(props);
return <WrappedComponent {...props} {...selectors} />;
};
}
export default connect;
|
clients/packages/admin-client/src/ux/components/div-float/index.js | nossas/bonde-client | import PropTypes from 'prop-types'
/*
* Component: DivFloat
* Description: Become children floatable, by default float in top and right.
*/
import React from 'react'
import classnames from 'classnames'
if (require('exenv').canUseDOM) require('./styles.scss')
const DivFloat = ({ children, horizontal, vertical }) =>... |
ajax/libs/yui/3.3.0pr1/loader/loader-base-debug.js | gaearon/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSI... |
src/svg-icons/action/build.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBuild = (props) => (
<SvgIcon {...props}>
<path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-... |
app/components/H1/index.js | bsr203/react-boilerplate | import React from 'react';
import styles from './styles.css';
function H1(props) {
return (
<h1 className={styles.heading1} { ...props } />
);
}
export default H1;
|
app/javascript/spec/zone-form/zone-form.spec.js | ManageIQ/manageiq-ui-classic | import React from 'react';
import toJson from 'enzyme-to-json';
import fetchMock from 'fetch-mock';
import { shallow } from 'enzyme';
import { act } from 'react-dom/test-utils';
import { mount } from '../helpers/mountForm';
import ZoneForm from '../../components/zone-form/index';
const zoneForm = require('../../comp... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/TemplateInterpolation.js | ConnectedHomes/create-react-web-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, { Component } from 'react';
import PropTypes from 'prop-types';
function load(name) {
return [
{ id: 1, name: `${na... |
src/svg-icons/communication/mail-outline.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationMailOutline = (props) => (
<SvgIcon {...props}>
<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"/>
</SvgIcon>
)... |
src/svg-icons/device/battery-90.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery90 = (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.33V8h10V5.33z"/><path d="M7 8v12.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1... |
ajax/libs/yasgui/1.0.7/yasgui.min.js | iros/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
example/examples/PolylineCreator.js | carleryd/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LA... |
frontend/src/Movie/NoMovie.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Button from 'Components/Link/Button';
import { kinds } from 'Helpers/Props';
import translate from 'Utilities/String/translate';
import styles from './NoMovie.css';
function NoMovie(props) {
const { totalItems } = props;
if (totalItems > 0) {
... |
node_modules/react-native-mock/src/api/Animated/Interpolation.js | niukui/gitpro | /**
* https://github.com/facebook/react-native/blob/master/Libraries/Animated/src/Interpolation.js
*/
class Interpolation {
static create(config) {
// TODO(lmr):
}
}
module.exports = Interpolation;
|
client/node_modules/react-dev-utils/WatchMissingNodeModulesPlugin.js | bourdakos1/Visual-Recognition-Tool | /**
* 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.
*/
// This Webpack plugin ensures `npm install <library>` forces a project rebuild.
// We’re not sure why this isn't Webpack's default beha... |
app/containers/App/index.js | Omnicrola/panoptes-react | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/tk/tkparser.js | JohnCrash/react-tiku | import React from 'react';
var camelize = require('underscore.string.fp/camelize');
var toPairs = require('ramda/src/toPairs');
var reduce = require('ramda/src/reduce');
var camelCaseAttrMap = require('./camel-case-attribute-names');
/*
* tkparser将把html字符串转换为React原件
* 例如:
* var topic = '<div><h2>Hello</h2>... |
packages/material-ui/src/ExpansionPanel/ExpansionPanel.js | kybarg/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { chainPropTypes } from '@material-ui/utils';
import Collapse from '../Collapse';
import Paper from '../Paper';
import withStyles from '../styles/withStyles';
export const styles = theme => {
const transition = {
durat... |
addons/stock/static/src/js/widgets.js | odoo-turkiye/odoo | function openerp_picking_widgets(instance){
var module = instance.stock;
var _t = instance.web._t;
var QWeb = instance.web.qweb;
// This widget makes sure that the scaling is disabled on mobile devices.
// Widgets that want to display fullscreen on mobile phone need to extend this
// wid... |
gulpfile.js/lib/webpack-multi-config.js | alexanderalmstrom/alexanderalmstrom | 'use strict'
if (!TASK_CONFIG.javascripts) {
return
}
const path = require('path')
const pathToUrl = require('./pathToUrl')
const webpack = require('webpack')
const webpackManifest = require('./webpackManifest')
const querystring = require('querystring')
module.exports = function (env)... |
src/vizTile.js | sjcrank/viz-data-generator | import React from 'react';
import Tile from './component/tile';
import TileTitle from './component/tileTitle';
const VizTile = props => (
<Tile className={props.className}>
<TileTitle text='Data Visualized'/>
</Tile>
);
VizTile.propTypes = {
className: React.PropTypes.string,
};
export default Vi... |
node_modules/styled-components/src/models/ServerStyleSheet.js | ryotsuchiya/react_card_app | // @flow
/* eslint-disable no-underscore-dangle */
import React from 'react'
import type { Tag } from './StyleSheet'
import StyleSheet, { SC_ATTR, LOCAL_ATTR, clones } from './StyleSheet'
import StyleSheetManager from './StyleSheetManager'
import getNonce from '../utils/nonce'
class ServerTag implements Tag {
isLoca... |
src/templates/categories-list-template.js | dalareo/dalareo.github.io | // @flow strict
import React from 'react';
import { Link } from 'gatsby';
import kebabCase from 'lodash/kebabCase';
import Sidebar from '../components/Sidebar';
import Layout from '../components/Layout';
import Page from '../components/Page';
import { useSiteMetadata, useCategoriesList } from '../hooks';
const Categor... |
src/components/App.js | zhongshankaka/kaka-notes | import React, { Component } from 'react'
import { connect } from 'react-redux'
import Head from './Head'
import ContainerList from '../containers/ContainerList'
import ContainerPreview from '../containers/ContainerPreview'
import ContainerLayer from '../containers/ContainerLayer'
import ContainerEdit from '../container... |
example/src/readonly.js | Julusian/react-bootstrap-switch | import React from 'react';
import { Col, Button, FormGroup } from 'react-bootstrap';
import Switch from '../../src/js/index';
export class Readonly extends React.Component {
constructor(props){
super(props);
this.state = {
readonly: true
};
}
_clickToggle(){
this.setState({
readon... |
app/components/src/node-renderer-default.js | FermORG/FermionJS | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import baseStyles from './node-renderer-default.scss';
import { isDescendant } from './utils/tree-data-utils';
const styles = baseStyles;
// Add extra classes in browsers that don't support flex
class NodeRendererDefault extends Component ... |
ajax/libs/react/0.10.0/react.js | dc-js/cdnjs | /**
* React v0.10.0
*/
!function(e){if("object"==typeof exports)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.React=e()}}(function(){var define,module,exports;return (fu... |
ajax/libs/forerunnerdb/1.3.611/fdb-core.min.js | pombredanne/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/svg-icons/file/file-upload.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileFileUpload = (props) => (
<SvgIcon {...props}>
<path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"/>
</SvgIcon>
);
FileFileUpload = pure(FileFileUpload);
FileFileUpload.displayName = 'FileFileUpload';
FileFil... |
tests/home_test.js | sentenza/react-iperblog | import React from 'react';
import chai from 'chai';
import chaiEnzyme from 'chai-enzyme';
import { shallow } from 'enzyme';
import Home from '../src/home';
const expect = chai.expect;
chai.use(chaiEnzyme());
describe('<Home />', () => {
it(`renders an H1 with "Home" content`, () => {
const wrapper = shallow(<... |
packages/wix-style-react/src/BadgeSelectItem/docs/index.story.js | wix/wix-style-react | import React from 'react';
import BadgeSelectItem from '../BadgeSelectItem';
import Box from '../../Box';
import {
header,
tabs,
tab,
description,
importExample,
title,
columns,
divider,
example,
playground,
api,
testkit,
} from 'wix-storybook-utils/Sections';
import { storySettings } from '../... |
ajax/libs/material-ui/5.0.0-alpha.22/modern/Drawer/Drawer.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import Modal from"../Modal";import Backdrop from"../Backdrop";import withStyles... |
docs/pages/system/the-sx-prop.js | oliviertassinari/material-ui | import * as React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import {
demos,
docs,
demoComponents,
} from 'docs/data/system/the-sx-prop/the-sx-prop.md?@mui/markdown';
export default function Page() {
return <MarkdownDocs demos={demos} docs={docs} demoComponents={demoComp... |
ajax/libs/jquery/1.8.1/jquery.min.js | Showfom/cdnjs | /*! jQuery v@1.8.1 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d=... |
docs/src/app/AppRoutes.js | manchesergit/material-ui | import React from 'react';
import {
Route,
Redirect,
IndexRoute,
} from 'react-router';
// Here we define all our material-ui ReactComponents.
import Master from './components/Master';
import Home from './components/pages/Home';
import RequiredKnowledge from './components/pages/get-started/RequiredKnowledge';
i... |
ajax/libs/jquery.fancytree/2.10.2/jquery.fancytree.min.js | kiwi89/cdnjs | /*!
* jquery.fancytree.js
* Dynamic tree view control, with support for lazy loading of branches.
* https://github.com/mar10/fancytree/
*
* Copyright (c) 2008-2015, Martin Wendt (http://wwWendt.de)
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.2
* @da... |
packages/material-ui-icons/src/QuestionAnswerOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M15 4v7H5.17l-.59.59-.58.58V4h11m1-2H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm5 4h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1z" />
, 'QuestionAnswerOutlined');
|
src/js/pages/settings/Overview.js | barumel/ultritium-radio-player | import React from 'react';
import { Grid, Row, Col, Tabs, Tab } from 'react-bootstrap';
import { GlobalSettings } from '../../components/settings/Global';
import { ProfileSettings } from '../../components/settings/Profile';
import { SettingsAccordion } from '../../components/settings/Accordion';
export default class ... |
src/router.js | bingqichen/cnode-react | import React from 'react';
import { Router, Route, IndexRedirect } from 'dva/router';
import App from './routes/App';
import TopicsList from './routes/TopicsList';
import TopicDetail from './routes/TopicDetail';
export const routes = (
<div>
<Route path="/" component={App}>
<IndexRedirect to="/topicslist"... |
src/js/components/icons/base/Alarm.js | odedre/grommet-final | /**
* @description Alarm SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @prop... |
src/components/Spinner/index.js | GetExpert/redux-blog-example |
import s from './styles.css';
import React from 'react';
export default () => {
return (
<div className={s.spinner}>
<div className={s.bounce1}></div>
<div className={s.bounce2}></div>
<div className={s.bounce3}></div>
</div>
);
};
|
src/common/Components/PhotoPickerFooter/index.js | NERC-CEH/irecord-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Log from 'helpers/log';
import ImageHelp from 'helpers/image';
import { observer } from 'mobx-react';
import alert from 'helpers/alert';
import actionSheet from 'helpers/actionSheet';
import { error } from 'helpers/toast';
import { Pho... |
files/rxjs/2.3.6/rx.lite.js | rtenshi/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
ajax/libs/jquery-ui-multiselect-widget/1.11/jquery.multiselect.js | tonytomov/cdnjs | /*
* jQuery MultiSelect UI Widget 1.11
* Copyright (c) 2011 Eric Hynds
*
* http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/
*
* Depends:
* - jQuery 1.4.2+
* - jQuery UI 1.8 widget factory
*
* Optional:
* - jQuery UI effects
* - jQuery UI position utility
*
* Dual licensed under the MI... |
docs/app/Examples/modules/Dropdown/Types/DropdownExampleMultipleSearchSelectionTwo.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
import { countryOptions } from '../common'
// countryOptions = [ { key: 'af', value: 'af', flag: 'af', text: 'Afghanistan' }, ... ]
const DropdownExampleMultipleSearchSelectionTwo = () => (
<Dropdown placeholder='Select Country' fluid multiple ... |
app/containers/NotFoundPage/index.js | thecodingwhale/conduit-clone | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a 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... |
src/components/Logo/Logo.js | telemark/portalen-web | import React from 'react'
import style from './style'
import file from './logo.svg'
const Logo = (props) => {
let className = style.logo
if (props.className) className += ` ${props.className}`
return (
<img src={file} className={className} />
)
}
Logo.propTypes = {
className: React.PropTypes.string
}
... |
app/containers/HomePage.js | JCombee/wallet | import React, { Component } from 'react';
import Home from '../components/Home';
export default class HomePage extends Component {
render() {
return (
<Home />
);
}
}
|
website/index.js | bvaughn/react-highlight.js | import React from 'react'
import ReactDOM from 'react-dom'
import Application from './Application'
ReactDOM.render(
<Application />,
document.getElementById('root')
)
|
app/components/dashboardproject/deleteApp.js | ritishgumber/dashboard-ui | /**
* Created by Darkstar on 12/21/2016.
*/
/**
* Created by Darkstar on 12/2/2016.
*/
'use strict';
import React from 'react';
import {connect} from 'react-redux';
import {deleteApp} from '../../actions';
import {
FormGroup,
InputGroup,
FormControl,
Clearfix,
Button,
Modal
} from 'react-boo... |
ajax/libs/rxjs/4.0.0/rx.all.compat.js | viskin/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
var
freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && expo... |
ajax/libs/rxjs/2.2.7/rx.lite.js | simudream/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... |
ajax/libs/angular-data/1.0.0-beta.1/angular-data.js | MisatoTremor/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 1.0.0-beta.1 - Homepage <http://angular-data.pseudobry.com/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Data store for Angu... |
landingpage/nstla/assets/js/adapt.js | tsmulugeta/vi.com | /*
Adapt.js licensed under GPL and MIT.
Read more here: http://adapt.960.gs
*/
// Closure.
(function(w, d, config, undefined) {
// If no config, exit.
if (!config) {
return;
}
// Empty vars to use later.
var url, url_old, timer;
// Alias config values.
var callback = typeof co... |
docs/src/examples/views/Advertisement/Types/AdvertisementExampleSquare.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Advertisement } from 'semantic-ui-react'
const AdvertisementExampleSquare = () => (
<Advertisement unit='square' test='Square' />
)
export default AdvertisementExampleSquare
|
examples/custom-server/pages/index.js | kevmannn/next.js | import React from 'react'
import Link from 'next/link'
export default () => (
<ul>
<li><Link href='/b' as='/a'><a>a</a></Link></li>
<li><Link href='/a' as='/b'><a>b</a></Link></li>
</ul>
)
|
modules/Link.js | Sirlon/react-router | import React from 'react';
var { object, string, func } = React.PropTypes;
function isLeftClickEvent(event) {
return event.button === 0;
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}
/**
* <Link> components are used to create an <a> element t... |
src/components/Header/Header.js | ZoeyYoung/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header extends Compo... |
html-test/n-select/test.js | bradwoo8621/parrot2 | import $ from 'jquery'
import React from 'react'
import ReactDOM from 'react-dom'
import {CodeTable, Model} from '../../src/js/model/model'
import {Layout} from '../../src/js/layout/layout'
import {Envs} from '../../src/js/envs'
import {NSelect} from '../../src/js/components/n-select'
import {NTree}from '../../src/js/c... |
test/integration/image-component/default/pages/style-filter.js | azukaru/next.js | import React from 'react'
import Image from 'next/image'
import style from '../style.module.css'
import img from '../public/test.jpg'
const Page = () => {
return (
<div>
<h1>Image Style Filter</h1>
<Image
className={style.overrideImg}
id="img-plain"
src="/test.jpg"
wi... |
client/js/server-render.js | vladimirutenkov/universal-app | import React from 'react';
import ReactDom from 'react-dom/server';
import { createMemoryHistory, match } from 'react-router';
import configureStore from './store';
import { ServerRoot } from './containers/Root';
import routes from './routes';
const getFullPage = (html, initialState) => `
<!doctype html>
<html>
<hea... |
src/components/search/index.js | rldona/taskfire | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Alert,
TextInput,
Dimensions,
} from 'react-native';
import * as firebase from 'firebase';
import * as todoListService from '../../todolist.service';
const { width, height } = Dimensions.get('window');
export default class Search... |
redux-saga/src/index.js | mrk21/study_frontend | import React from 'react';
import { render } from 'react-dom';
import { Provider, connect } from 'react-redux';
import { createStore, applyMiddleware, compose } from 'redux';
import rootReducer from 'reducers';
import createSagaMiddleware from 'redux-saga'
import Fetch from 'components/fetch';
import rootSaga from './s... |
src/PeopleLabel/index.js | christianalfoni/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import Avatar from '../Avatar';
import classNames from 'classnames';
import styles from './styles.css';
function PeopleLabel(props) {
return (
<div
className={classNames(styles.wrapper, {
[props.className]: props.cla... |
test/CollapsibleNavSpec.js | JimiHFord/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Navbar from '../src/Navbar';
import CollapsibleNav from '../src/CollapsibleNav';
import Nav from '../src/Nav';
import NavItem from '../src/NavItem';
describe('CollapsibleNav', function () {
it('Should create div and add collapse... |
src/js/components/ActionBar.js | ScottMaclure/sotdl-chargen | import React from 'react'
import 'css/actionBar.css'
const getViewStyle = mode => ({
display: mode !== 'view' ? 'none' : ''
})
const getEditStyle = mode => ({
display: mode !== 'edit' ? 'none' : ''
})
const ActionBar = ({ mode, onEdit, onView, onCreate }) => (
<div className='actionBar'>
<button className... |
docs/app/Examples/collections/Table/States/TableExampleWarning.js | shengnian/shengnian-ui-react | import React from 'react'
import { Icon, Table } from 'shengnian-ui-react'
const TableExampleWarning = () => (
<Table celled>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes</Table.HeaderCell>
... |
tp-react/src/index.js | detienne11/imie | import React from 'react';
import ReactDOM from 'react-dom';
// import App from './App';
import AppMsg from './AppMsg';
import './index.css';
ReactDOM.render(
// <App color="red" />,
<AppMsg />,
document.getElementById('root')
);
|
ajax/libs/react-highcharts/11.0.0/ReactHighcharts.js | kiwi89/cdnjs | !function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("highcharts")):"function"==typeof define&&define.amd?define(["react","highcharts"],r):"object"==typeof exports?exports.ReactHighcharts=r(require("react"),require("highcharts")):t.ReactHighcharts=r(t.React,t.Highch... |
docs/app/Examples/elements/Icon/Groups/IconExampleIconGroup.js | shengnian/shengnian-ui-react | import React from 'react'
import { Icon } from 'shengnian-ui-react'
const IconExampleIconGroup = () => (
<Icon.Group size='huge'>
<Icon size='big' name='thin circle' />
<Icon name='user' />
</Icon.Group>
)
export default IconExampleIconGroup
|
internals/test/TodoComponent.spec.js | kfiil/betadilemma-react-starter | import React from 'react';
import { mount } from 'enzyme';
import renderer from 'react-test-renderer';
import { Map } from 'immutable';
import uuid from 'uuid';
import TodoComponent from '../../app/components/TodoComponent';
import Todo from '../../app/core/domainModels/Todo';
describe('TodoComponent Test Suite 1', ()... |
src/svg-icons/device/signal-wifi-3-bar.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi3Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.0... |
src/svg-icons/communication/phonelink-setup.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkSetup = (props) => (
<SvgIcon {...props}>
<path d="M11.8 12.5v-1l1.1-.8c.1-.1.1-.2.1-.3l-1-1.7c-.1-.1-.2-.2-.3-.1l-1.3.4c-.3-.2-.6-.4-.9-.5l-.2-1.3c0-.1-.1-.2-.3-.2H7c-.1 0-.2.1-.3.2l-.2 1... |
packages/material-ui-icons/src/PetsTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><circle cx="4.5" cy="9.5" r="2.5" /><circle cx="9" cy="5.5" r="2.5" /><circle cx="15" cy="5.5" r="2.5" /><circle cx="19.5" cy="9.5" r="2.5" /><path d="M17.34 14.86c-.87-1.02-1.6-1.89-2.48-2.91-... |
app/components/shared/CollapsableArea.js | buildkite/frontend | import classNames from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { v4 as uuid } from 'uuid';
import RevealableDownChevron from './Icon/RevealableDownChevron';
const TransitionMaxHeight = styled.div`
transition: max-height 400ms;
`;
/... |
src/app/components/Home.js | maria-robobug/react-js-basics | import React from 'react';
export class Home extends React.Component {
constructor (props) {
super();
this.state = {
age: props.initialAge,
status: 0,
homeLink: props.initialLinkName
};
setTimeout(() => {
this.setState({
status: 1
});
},3000);
console.log('Constructor');
}
component... |
src/mui/input/ReferenceInput.js | matteolc/admin-on-rest | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import debounce from 'lodash.debounce';
import Labeled from './Labeled';
import { crudGetOne as crudGetOneAction, crudGetMatching as crudGetMatchingAction } from '../../actions/dataActions';
import { get... |
web/src/js/__tests__/components/EventLogSpec.js | ddworken/mitmproxy | jest.mock('../../components/EventLog/EventList')
import React from 'react'
import renderer from 'react-test-renderer'
import TestUtils from 'react-dom/test-utils'
import EventLog, { PureEventLog } from '../../components/EventLog'
import { Provider } from 'react-redux'
import { TStore } from '../ducks/tutils'
window.a... |
src/icons/IosFiling.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosFiling extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M256,288c-29.8,0-54.9-20.4-62-48H80v144h176h176V240H318C310.9,267.6,285.8,288,256,288z"></path>
<path d="M144,224... |
ajax/libs/react-bootstrap-typeahead/2.6.0/react-bootstrap-typeahead.js | jonobr1/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
src/parser/warrior/fury/modules/talents/FrothingBerserker.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import Analyzer from 'parser... |
src/routes/RegisterStudent/components/TermOfUse.js | gabrielmf/SIR-EDU-2.0 | import React from 'react'
import { RaisedButton, Dialog, FlatButton } from 'material-ui'
export default class TermOfUse extends React.Component {
constructor(props) {
super(props);
this.state = {
openTermOfUse: false
}
this.open = this.open.bind(this);
this.close... |
src/DropDownMenu/DropDownMenu.js | skarnecki/material-ui | import React from 'react';
import transitions from '../styles/transitions';
import DropDownArrow from '../svg-icons/navigation/arrow-drop-down';
import Menu from '../Menu/Menu';
import ClearFix from '../internal/ClearFix';
import Popover from '../Popover/Popover';
import PopoverAnimationFromTop from '../Popover/Popover... |
src/routes/content/index.js | mlem8/dev-challenge | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Content from './Content'... |
src/components/AvatarLightbox.js | ryanbaer/busy | import React from 'react';
import PropTypes from 'prop-types';
import Lightbox from 'react-image-lightbox';
import getImage from '../helpers/getImage';
import Avatar from './Avatar';
export default class AvatarLightbox extends React.Component {
static propTypes = {
username: PropTypes.string,
size: PropTypes... |
skins/Funny/PIE/PIE_IE678_uncompressed.js | tbrown0139/webmail-lite | /*
PIE: CSS3 rendering for IE
Version 2.0beta1
http://css3pie.com
Dual-licensed for use under the Apache License Version 2.0 or the General Public License (GPL) Version 2.
*/
(function( win, doc ) {
var PIE = win[ 'PIE' ] || ( win[ 'PIE' ] = {} );
/**
* Simple utility for merging objects
* @param {Objec... |
src/routes/index.js | SawyerHood/pomodoro-redux | import React from 'react'
import { Route, IndexRoute } from 'react-router'
// NOTE: here we're making use of the `resolve.root` configuration
// option in webpack, which allows us to specify import paths as if
// they were from the root of the ~/src directory. This makes it
// very easy to navigate to files regardless... |
packages/material-ui-icons/src/NotificationsActive.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let NotificationsActive = props =>
<SvgIcon {...props}>
<path d="M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.4... |
node_modules/reactify/node_modules/react-tools/src/browser/ui/ReactDefaultInjection.js | lutherism/state | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... |
src/svg-icons/image/rotate-90-degrees-ccw.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageRotate90DegreesCcw = (props) => (
<SvgIcon {...props}>
<path d="M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26C17.61 4.88 15.3 4 13 4V.76L8.7... |
ide/static/js/modelZoo.js | Cloud-CV/IDE | import React from 'react';
import ModelElement from './modelElement';
class ModelZoo extends React.Component {
constructor(props) {
super(props);
this.mouseClick = this.mouseClick.bind(this);
}
mouseClick(event, id) {
this.refs.recognition.className = "hide";
this.refs.detection.classNa... |
src/renderers/dom/shared/__tests__/DOMPropertyOperations-test.js | misnet/react | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
lib/component.js | magalhas/backbone-react-component | // Backbone React Component
// ========================
//
// Backbone.React.Component v0.10.0
//
// (c) 2014, 2015 "Magalhas" José Magalhães <magalhas@gmail.com>
// Backbone.React.Component can be freely distributed under the MIT license.
//
//
// `Backbone.React.Component` is a mixin that glues [Backbone]... |
src/components/Dashboard.js | tibotiber/rd3 | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import {transparentize} from 'polished'
import _ from 'lodash'
import ReactGridLayout, {WidthProvider} from 'react-grid-layout'
import 'react-grid-layout/css/styles.css'
import 'react-resizable/css/styles.css'
import Dem... |
client/src/index.js | gtalent/soma | import axios from 'axios';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import { HOST_ADDR } from './consts';
import './index.css';
axios.defaults.xsrfCookieName = 'csrftoken';
axios.defaults.xsrfHeaderName = 'X-CSRFT... |
Samples/Core.JavaScriptInjection/JavaScriptInjectionWeb/Scripts/jquery-1.9.1.js | HenrikGustafsson/PnP | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
ajax/libs/formsy-react/0.1.0/formsy-react.min.js | honestree/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.Formsy=t()}}(function(){return function t(e,i,n){func... |
demos/app.js | kaushik94/reactabular | 'use strict';
var React = require('react');
var Fork = require('react-ghfork');
var FullTable = require('./full_table.jsx');
var EditorsTable = require('./editors_table.jsx');
var NestedTable = require('./nested_table.jsx');
var readme = require('../README.md');
module.exports = React.createClass({
displayName... |
src/server.js | janimattiellonen/fgr | import uuid from 'uuid';
import bodyParser from 'body-parser';
import { createServer } from './utils/express';
import config from '../config.server';
import webpackConfig from '../webpack.config.babel';
import { List, Range, Map } from 'immutable';
import * as reducers from './ducks';
import React from 'react';
import... |
src/components/BaseWindow.js | mrsudo/mrsudo | import React from 'react';
export default class BaseWindow extends React.Component {
render() {
return (
<div className={"window " + this.props.title}>
{this.props.children}
</div>
);
}
}
|
ajax/libs/mediaelement/2.2.4/jquery.js | zhengyongbo/cdnjs | /*!
* jQuery JavaScript Library v1.6.1
* 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.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.