path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/scenes/home/mentor/mentorRequestsTable/mentorRequestsTable.js | miaket/operationcode_frontend | import React, { Component } from 'react';
import { Redirect } from 'react-router-dom';
import PropTypes from 'prop-types';
import { MENTOR_REQUEST_COLUMNS } from 'shared/constants/table';
import * as ApiHelpers from 'shared/utils/apiHelper';
import IndexTable from 'shared/components/indexTable/indexTable';
import Reque... |
src/popup/containers/PackConfig.js | fluany/fluany | /**
* @fileOverview The PackConfig container
* @name PackConfig.js<popup>
* @license GNU General Public License v3.0
*/
import React from 'react'
import PackEdit from 'components/PackEdit'
const PackConfig = () => (
<div>
<PackEdit />
</div>
)
export default PackConfig
|
ajax/libs/analytics.js/2.1.0/analytics.js | iwdmb/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
javascripts/jquery.min.js | virgendeloreto/virgendeloreto.github.io | /*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,f... |
app/components/TodoTextInput.js | altany/react-new-tab-chrome-extension | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import style from './TodoTextInput.css';
export default class TodoTextInput extends Component {
static propTypes = {
onSave: PropTypes.func.isRequired,
text: PropTypes.string,
placeholder: ... |
force_dir/node_modules/react-bootstrap/lib/Badge.js | wolfiex/VisACC | '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... |
lib/components/input/Toggle.js | tuomashatakka/reduced-dark-ui | 'use babel'
import React from 'react'
import Input from './Input'
/**
* @class Toggle
* @extends Input
*/
export default class Toggle extends Input {
field () {
let { value } = this.state
let on = value.toString() == "true"
// let checked = value === true ? { checked: 'checked' } : {}
return (
... |
albums/src/components/CardSection.js | dunkvalio/ReactNative | import React from 'react';
import { View } from 'react-native';
const CardSection = (props) => {
return (
<View style={styles.containerStyle}>
{props.children}
</View>
);
};
const styles = {
containerStyle: {
borderBottomWidth: 0,
padding: 5,
backgroundColor: '#fff',
justifyContent... |
indico/web/client/js/jquery/widgets/jinja/principal_list_widget.js | ThiefMaster/indico | // This file is part of Indico.
// Copyright (C) 2002 - 2021 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import React from 'react';
import ReactDOM from 'react-dom';
import {WTFPrincipalListField} from 'in... |
src/web/forms/fields/__mocks__/Checkbox.js | asha-nepal/AshaFusionCross | /**
* Copyright 2017 Yuichiro Tsuchiya
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
src/client/story.js | damassi/hacker-menu | import React from 'react'
export default class Story extends React.Component {
markAsRead () {
this.props.onMarkAsRead(this.props.story.id)
}
openUrl (url) {
this.props.onUrlClick(url)
}
handleYurlOnClick (e) {
e.preventDefault()
this.openUrl(this.props.story.yurl)
}
handleByOnClick (e... |
ajax/libs/mobx-react/5.3.0/native.min.js | jonobr1/cdnjs | "use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var mobx=require("mobx"),React=require("react"),React__default=_interopDefault(React),reactNative=require("react-native");function _typeof(e){return(_typeof="function"=... |
test/development/basic/hmr/pages/hmr/counter.js | zeit/next.js | import React from 'react'
export default class Counter extends React.Component {
state = { count: 0 }
incr() {
const { count } = this.state
this.setState({ count: count + 1 })
}
render() {
return (
<div>
<p>COUNT: {this.state.count}</p>
<button onClick={() => this.incr()}>In... |
docs/pages/api-docs/checkbox.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/checkbox';
const requireRaw = require.context('!raw-loader!./', false, /\/checkbox\.md$/);
export default function Page({ do... |
src/server/frontend/Html.js | sikhote/davidsinclair | // @flow
/* eslint-disable react/no-danger */
import React from 'react';
const GoogleAnalytics = ({ id }) => (
<script
dangerouslySetInnerHTML={{ __html: `
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.creat... |
components/PageContent.js | turntwogg/esports-aggregator | import React from 'react';
import { Container } from '@turntwo/react-ui';
import Message from './Message';
const PageContent = ({ children, fullWidth }) => {
const render = fullWidth ? (
<div className="page-content">
<Container>
<Message />
</Container>
{children}
</div>
) : (
... |
app/javascript/mastodon/features/ui/components/follow_requests_nav_link.js | primenumber/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { fetchFollowRequests } from 'mastodon/actions/accounts';
import { connect } from 'react-redux';
import { NavLink, withRouter } from 'react-router-dom';
import IconWithBadge from 'mastodon/components/icon_with_badge';
import { List as ImmutableList }... |
Libraries/Components/Touchable/TouchableHighlight.js | ChiMarvine/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.
*
* @provides... |
Console/app/node_modules/antd/es/steps/index.js | RisenEsports/RisenEsports.github.io | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import PropTypes ... |
ajax/libs/ionic/0.9.18-alpha/js/ionic.js | TerryMooreII/cdnjs | /*!
* Copyright 2013 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.17
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @helloimben, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/;
// Create namespaces
window.ionic... |
trunk/src/MangaPortal/Scripts/jquery-1.8.2.js | koneta/MangaPortal | /*!
* jQuery JavaScript Library v1.8.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
tests/framework.spec.js | Croissong/sntModelViewer | 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... |
actor-apps/app-web/src/app/utils/require-auth.js | yaoliyc/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
node_modules/enzyme/src/ShallowTraversal.js | together-web-pj/together-web-pj | 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... |
app/utils/injectSaga.js | filso/react-components-graph | import React from 'react';
import PropTypes from 'prop-types';
import hoistNonReactStatics from 'hoist-non-react-statics';
import getInjectors from './sagaInjectors';
/**
* Dynamically injects a saga, passes component's props as saga arguments
*
* @param {string} key A key of the saga
* @param {function} saga A r... |
src/svg-icons/action/find-in-page.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFindInPage = (props) => (
<SvgIcon {...props}>
<path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5... |
test/Middleware.spec.js | danieldunderfelt/react-response | import test from 'tape'
import React from 'react'
import { Favicon, Static, Middleware } from '../src/middleware'
import sinon from 'sinon'
test('Middleware has a buildServer method', t => {
const el = <Middleware />
t.equal(typeof el.type.buildServer, 'function', 'Middleware.buildServer is a function.')
... |
src/client.js | gihrig/react-redux-universal-hot-example | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import io from 'socket.io-client';
import... |
examples/auth-with-shared-root/components/User.js | brenoc/react-router | import React from 'react'
const User = React.createClass({
render() {
return <h1>User: {this.props.params.id}</h1>
}
})
export default User
|
admin/src/components/PopoutPane.js | asifiqbal84/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
var PopoutPane = React.createClass({
displayName: 'PopoutPane',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
onLayout: React.PropTypes.func
},
componentDidMount () ... |
packages/@lyra/form-builder/src/FormBuilder.js | VegaPublish/vega-studio | import PropTypes from 'prop-types'
import React from 'react'
import {FormBuilderInput} from './FormBuilderInput'
import FormBuilderContext from './FormBuilderContext'
// Todo: consider deprecating this in favor of <FormBuilderContext ...><FormBuilderInput .../></FormBuilderContext>
export default class FormBuilder ext... |
react-flux-mui/js/material-ui/src/svg-icons/av/not-interested.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvNotInterested = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12... |
src/components/Chat/Input/SuggestionsList.js | u-wave/web | import React from 'react';
import PropTypes from 'prop-types';
import Paper from '@mui/material/Paper';
import List from '@mui/material/List';
const SuggestionsList = ({
children,
}) => (
<div className="ChatInput-suggestions">
<Paper>
<List>
{children}
</List>
</Paper>
</div>
);
Sug... |
packages/ddp-server/package.js | sitexa/meteor | Package.describe({
summary: "Meteor's latency-compensated distributed data server",
version: '1.2.0-plugins.1',
documentation: null
});
Npm.depends({
"permessage-deflate": "0.1.3",
sockjs: "0.3.14"
});
Package.onUse(function (api) {
api.use(['check', 'random', 'ejson', 'underscore',
'retry', 'm... |
src/js/components/notification/notification_number.js | working-minds/realizejs | import React, { Component } from 'react';
import PropTypes from '../../prop_types';
export default class NotificationNumber extends Component {
static propTypes = {
className: PropTypes.string,
count: PropTypes.number
};
static defaultProps = {
className: 'notification-number',
count: 0
};
... |
src/index.js | filipdanic/react-botkit | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/helpers/__tests__/getDataDependencies-test.js | quicksnap/react-redux-universal-hot-example | import { expect } from 'chai';
import React from 'react';
import { div } from 'react-dom';
import getDataDependencies from '../getDataDependencies';
describe('getDataDependencies', () => {
let getState;
let dispatch;
let location;
let params;
let CompWithFetchData;
let CompWithNoData;
let CompWithFetchDa... |
src/index.js | MaxBuodnik/gitApp | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
import { Provider } from 'react-redux';
import {store} from './configureStore';
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
);
|
hw7-frontend/src/app.js | lanyangyang025/COMP531 | import React from 'react'
import { connect } from 'react-redux'
import Landing from './components/auth/landing'
import Main from './components/main/main'
import Profile from './components/profile/profile'
//refer to specific page
const App = ({ location }) => {
if (location == 'MAIN_PAGE') {
return <Ma... |
js/jqwidgets/demos/react/app/tabs/events/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js';
import JqxPanel from '../../../jqwidgets-react/react_jqxpanel.js';
class App extends React.Component {
componentDidMount() {
//Create event
this.refs.myTabs.on('created', (... |
administrator/components/com_sigpro/js/elfinder/js/i18n/elfinder.nl.js | tessak22/arm-of-mn | /**
* Dutch translation
* @author Barry vd. Heuvel <barry@fruitcakestudio.nl>
* @version 2012-04-02
*/
if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
elFinder.prototype.i18.nl = {
translator : 'Barry vd. Heuvel <barry@fruitcakestudio.nl>',
language : 'Nederlands',
... |
step7-unittest/node_modules/react-router/modules/Link.js | jintoppy/react-training | import React from 'react'
import warning from './routerWarning'
const { bool, object, string, func, oneOfType } = React.PropTypes
function isLeftClickEvent(event) {
return event.button === 0
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey)
}
functio... |
ajax/libs/material-ui/4.9.3/es/useMediaQuery/useMediaQuery.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import React from 'react';
import { getThemeProps, useTheme } from '@material-ui/styles';
export default function useMediaQuery(queryInput, options = {}) {
const theme = useTheme();
const props = getThemeProps({
theme,
name: 'MuiUseMediaQuery',
... |
app/components/layout/InstagramSocialButton.js | communicode-source/communicode | import React from 'react';
import { OutboundLink } from 'react-ga';
const FacebookSocialButton = () =>
<OutboundLink eventLabel="Instagram" className="btn btn-social-icon btn-instagram" to="https://instagram.com/communicode.co" target="_blank">
<span className="fa fa-instagram"/>
</OutboundLink>;
expo... |
classic/src/scenes/mailboxes/src/Scenes/SitePermissionsScene/SitePermissionsSceneContent.js | wavebox/waveboxapp | import React from 'react'
import { DialogTitle, DialogContent, DialogActions, Button, List, ListItem, ListItemSecondaryAction, ListItemText } from '@material-ui/core'
import shallowCompare from 'react-addons-shallow-compare'
import { withStyles } from '@material-ui/core/styles'
import { guestStore, guestActions } from ... |
website/modules/examples/Ambiguous.js | DelvarWorld/react-router | import React from 'react'
import {
BrowserRouter as Router,
Route,
Link,
Switch
} from 'react-router-dom'
const AmbiguousExample = () => (
<Router>
<div>
<ul>
<li><Link to="/about">About Us (static)</Link></li>
<li><Link to="/company">Company (static)</Link></li>
<li><Link t... |
extensions/workspace-indicator/extension.js | erick2red/shell-extensions | const Clutter = imports.gi.Clutter;
const St = imports.gi.St;
const Lang = imports.lang;
const Gio = imports.gi.Gio;
const Mainloop = imports.mainloop;
const PanelMenu = imports.ui.panelMenu;
const PopupMenu = imports.ui.popupMenu;
const Panel = imports.ui.panel;
const Main = imports.ui.main;
const Gettext = imports.... |
src/containers/ranking.js | rosiene/growup-game | import React from 'react';
class Ranking extends React.Component{
render() {
return (
<li>
{this.props.name} [{this.props.score}]
</li>
);
}
}
export default Ranking;
|
src/components/PageContent.js | washingtonbr/private-content-react | import React from 'react'
import {
Container,
Section,
} from 'smalldots/lib/experimental/bulma'
const PageHeader = (props) => (
<Section>
<Container>
{ props.children }
</Container>
</Section>
)
export default PageHeader
|
ajax/libs/6to5/1.15.0/browser.js | kiwi89/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... |
example/v9.x.x/razzle-ssr/src/client.js | i18next/react-i18next | import App from './App';
import BrowserRouter from 'react-router-dom/BrowserRouter';
import React from 'react';
import { render } from 'react-dom';
import { I18nextProvider } from 'react-i18next';
import i18n from './i18n';
render(
<I18nextProvider
i18n={i18n}
initialI18nStore={window.initialI18nStore}
... |
modules/__tests__/RouteComponent-test.js | okcoker/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import Router from '../Router'
describe('a Route Component', function () {
let node
beforeEach(function () {
node = document.createElement('div')
})
afterEach(function (... |
src/components/form/Checkbox.js | pekkis/react-training-broilerplate | import React from 'react';
const Checkbox = props => {
const { styles, label, validationState, ...rest } = props;
return (
<div className={styles.root}>
<input validationState={validationState} type="checkbox" {...rest} /> {label}
</div>
);
};
Checkbox.propTypes = {
label: React.PropTypes.node.i... |
src/svg-icons/editor/format-align-right.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignRight = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignRight = pure(EditorFormatAlign... |
src/js/components/PostPage.js | slavapavlutin/pavlutin-node | import React from 'react';
import { connect } from 'react-redux';
import DisqusThread from 'react-disqus-thread';
import Post from './Post';
import PageNotFound from './PageNotFound';
import Spinner from './Spinner';
import { postBySlug } from '../store/posts/selectors';
import { withPageTitle } from './HOC';
function... |
app/components/helper/LanguageSwitcher.js | DeividasK/tgoals | import React from 'react'
import { connect } from 'react-redux'
import { injectIntl } from 'react-intl'
import TH from 'utils/TranslationHelper'
@connect((store) => ({ storage: store.storage }))
class LanguageSwitcher extends React.Component {
state = {
languages: [
{ name: 'Lietuvių', flag: 'lithuania', ... |
app/react-icons/fa/stethoscope.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaStethoscope extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m33.1 15.7q0-0.6-0.5-1t-1-0.4-1 0.4-0.4 1 0.4 1 1 0.4 1-0.4 0.5-1z m2.8 ... |
src/explorer/Search/Results/index.js | neontribe/gbptm | import React from 'react';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableHead from '@material-ui/core/TableHead';
import TableRow from '@material-ui/core/TableRow';
import TableCell from '@material-ui/core/TableCell';
import TableFooter from '@material-ui/... |
docs/app/Examples/collections/Breadcrumb/Variations/BreadcrumbExampleMassiveSize.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'
const BreadcrumbExampleMassiveSize = () => (
<Breadcrumb size='massive'>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right chevron' />
<Breadcrumb.Section link>Registration</Breadcrumb.Section>
<... |
vertex_ui/src/components/ColorPicker/Alpha/Alpha.js | zapcoop/vertex | import React from 'react';
import reactCSS from 'reactcss';
import { ColorWrap, Alpha } from 'react-color/lib/components/common';
import AlphaPointer from './AlphaPointer';
export const AlphaPicker = ({
rgb,
hsl,
width,
height,
onChange,
direction,
style,
renderers,
pointer,
}) => {
const styles =... |
src/svg-icons/image/collections.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCollections = (props) => (
<SvgIcon {...props}>
<path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/>
... |
src/components/Navigation/Navigation.js | CavHack/orbifold | import React from 'react';
import { Menu } from 'material-ui';
class Navigation extends React.Component {
static propTypes = {
menuItems: React.PropTypes.array
};
static contextTypes = {
router: React.PropTypes.func,
orbiTheme: React.PropTypes.object
};
constructor(){
super();
this.getSelectedIndex =... |
src/pages/media/radio.js | gelo592/IntegrativeMed-Site | import React from 'react'
import Layout from '../../components/layout'
import SEO from '../../components/seo'
import { Fab, Grid, Typography, Paper } from '@material-ui/core';
import SubLayout from '../../components/sublayout';
import { radio } from '../../constants/constants';
import { withStyles } from '@material-ui/... |
ajax/libs/mobx/3.4.1/mobx.js | holtkamp/cdnjs | /** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Ve... |
node_modules/react-router/es6/Route.js | gurusewak/redux101 | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { component, components } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var func = _React$PropTypes.func;
/**
* A <Route> is use... |
ajax/libs/redux-form/5.1.0/redux-form.js | froala/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["ReduxForm"] = facto... |
files/algoliasearch.zendesk-hc/1.7.1/algoliasearch.zendesk-hc.min.js | Asaf-S/jsdelivr | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.algoliasearchZendeskHC=e()}}(function(){var e;return fu... |
src/svg-icons/content/markunread.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentMarkunread = (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 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
ContentMarkunread ... |
ajax/libs/js-data/1.5.0/js-data-debug.js | victorjonsson/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... |
node_modules/react-icons/md/filter-8.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdFilter8 = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m21.6 18.4v3.2h3.4v-3.2h-3.4z m0-6.8v3.4h3.4v-3.4h-3.4z m0 13.4c-1.8 0-3.2-1.5-3.2-3.4v-2.5c0-1.4 1.1-2.5 2.5-2.5-1.4 0-2.5-1.1-2.5-2.5v-2.5c0-1.8 1.4-3.2 3.2-3.2h3.4... |
ajax/libs/material-ui/5.0.0-alpha.15/Collapse/Collapse.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 clsx from 'clsx';
import PropTypes from 'prop-types';
import { Transition } from 'react-transition-group';
import { eleme... |
app/containers/HomePage/index.js | PokerGuy/react-boilerplate | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import ReposList from '../../components/ReposList';
import { loadRepos } from... |
test/IconSpec.js | jhernandezme/react-materialize | /* global describe, it */
import React from 'react';
import { shallow } from 'enzyme';
import { assert } from 'chai';
import Icon from '../src/Icon';
let wrapper = shallow(
<Icon>cloud</Icon>
);
describe('<Icon />', () => {
it('renders an icon', () => {
assert(wrapper.find('i.material-icons').length, 'render... |
docs/src/app/components/pages/components/GridList/ExampleComplex.js | IsenrichO/mui-with-arrows | import React from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
const styles = {
root: {
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-around',
},
gridLi... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch02/02_06/start/src/lib.js | yevheniyc/C | import React from 'react'
import text from './titles.json'
export const hello = (
<h1 id='title'
className='header'
style={{backgroundColor: 'purple', color: 'yellow'}}>
{text.hello}
</h1>
)
export const goodbye = (
<h1 id='title'
className='header'
style={{backgrou... |
web/src/js/__tests__/components/ValueEditor/ValidateEditorSpec.js | MatthewShao/mitmproxy | import React from 'react'
import renderer from 'react-test-renderer'
import TestUtils from 'react-dom/test-utils'
import ValidateEditor from '../../../components/ValueEditor/ValidateEditor'
describe('ValidateEditor Component', () => {
let validateFn = jest.fn( content => content.length == 3),
doneFn = jest... |
src/client/app/app.react.js | cazacugmihai/este | import './app.styl';
import Component from '../components/component.react';
import Footer from './footer.react';
import Header from './header.react';
import React from 'react';
import createActions from './createactions';
import flux from '../lib/flux';
import store from './store';
import {RouteHandler} from 'react-rou... |
src/index.js | Speudyland/NewsFeedApp | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import reduxThunk from 'redux-thunk';
import NewsList from './components/news_list';
import NewsSe... |
src/views/GestionsComponents/Contrats/GestionDesContrats.js | Cruis-R/GestionOutil | import React, { Component } from 'react';
import { TabContent, TabPane, Nav, NavItem, NavLink, Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import classnames from 'classnames';
import mysql from 'mysql2/promise';
impor... |
src/index.js | boldyrev-d/stylelint-config-generator | /* eslint-disable react/jsx-filename-extension */
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import './index.css';
import App from './components/App';
import registerServiceWorker from './registerServiceWorker';
import store from './store';
ReactDOM.render(
... |
ajax/libs/6to5/2.4.1/browser.js | bspaulding/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... |
ajax/libs/jointjs/0.9.7/joint.js | iwdmb/cdnjs | /*! JointJS v0.9.6 - JavaScript diagramming library 2015-12-19
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/.
*/
(function(root, factory) {
if (typeof define === 'f... |
ajax/libs/rxjs/2.2.22/rx.js | mohitbhatia1994/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... |
node_modules/eslint/lib/eslint.js | Technaesthetic/ua-tools | /**
* @fileoverview Main ESLint object.
* @author Nicholas C. Zakas
* @copyright 2013 Nicholas C. Zakas. All rights reserved.
* See LICENSE file in root directory for full license.
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//-----------------... |
dev/web/www/js/components/navbar/navbar.js | zajacmarekcom/letswrite | import React from 'react'
import { connect } from 'react-redux'
import store from '../../store'
import { Link } from 'react-router'
import {Navbar, Nav, NavItem} from 'react-bootstrap'
import LoginContainer from './login-container'
import LogoutContainer from './logout-container'
const mapStateToProps = function(sto... |
node_modules/material-ui/lib/svg-icons/navigation/arrow-drop-up.js | fernando-jascovich/vagrant-manager | 'use strict';
var React = require('react');
var PureRenderMixin = require('react-addons-pure-render-mixin');
var SvgIcon = require('../../svg-icon');
var NavigationArrowDropUp = React.createClass({
displayName: 'NavigationArrowDropUp',
mixins: [PureRenderMixin],
render: function render() {
return React.cr... |
tests/routes/Counter/components/Counter.spec.js | raviprajna/AttributesValues | 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/orb/1.0.1/orb.min.js | gogoleva/cdnjs | /**
* orb v1.0.1, Pivot grid javascript library.
*
* Copyright (c) 2014 Najmeddine Nouri.
*
* @version v1.0.1
* @link http://nnajm.github.io/orb/
* @license MIT
*/
"use strict";!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)... |
app/m_components/MyInfo.js | kongchun/BigData-Web | import React from 'react';
import {
Link
} from 'react-router';
import UserActions from '../actions/UserStoreActions';
import UserStore from '../stores/UserStore.js';
import Weixin from './Weixin';
class MyInfo extends React.Component {
constructor(props) {
super(props);
this.state = UserSto... |
src/services/componentFactory/buildContent.js | eleven-labs/codelabs | import React from 'react';
import Highlight from '../../components/Highlight';
import { hasOnlyType } from '../../helpers/ast';
import {
VALUE_ELEMENTS,
VOID_ELEMENTS,
} from '../../constants';
/**
* Resolves a renderer based on its type
*/
const resolveRenderer = (renderer, key) => (
typeof renderer === 'fun... |
src/components/NotFoundPage.js | Selvio/jose-name-react | import React from 'react';
import { Link } from 'react-router';
const NotFoundPage = () => {
return (
<div>
<h4>
404 Page Not Found
</h4>
<Link to="/"> Go back to homepage </Link>
</div>
);
};
export default NotFoundPage;
|
ajax/libs/6to5/2.7.1/browser-polyfill.js | iamso/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
thomaswooster/src/index.js | neffbirkley/o | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { AppContainer as HotReload } from 'react-hot-loader';
import getRootNode from '~/utils/getRootNode';
import App from './containers/App';
import store from './configs/store';
const renderApp = () => {
render... |
files/rxjs/2.4.4/rx.compat.js | alexmojaki/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/angular.js/2.0.0-alpha.44/web_worker/ui.dev.js | menuka94/cdnjs | /**
@license
Copyright 2014-2015 Google, Inc. http://angularjs.org
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... |
test/fixtures/basic/pages/css.js | dstreet/next.js | import React from 'react'
import style from 'next/css'
export default () => <div className={styles}>This is red</div>
const styles = style({ color: 'red' })
|
ajax/libs/reactable/0.12.5/reactable.js | tonytomov/cdnjs | window.React["default"] = window.React;
window.ReactDOM["default"] = window.ReactDOM;
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["exports"], factory);
} else if (typeof exports !== "undefined") {
factory(exports);
} else {
var mod = {
... |
src/lib/async-component.js | nicolas-briemant/react-inception | import React, { Component } from 'react';
export const asyncComponent = (getComponent) => {
return class AsyncComponent extends Component {
static Component = null;
state = { Component: AsyncComponent.Component };
componentWillMount = () => {
if (!this.state.Component) {
getComponent().the... |
client/modules/core/components/modals/modals.js | bompi88/grand-view | import React from 'react';
import NewDocumentModal from '/client/modules/modals/containers/new_document_modal';
import NewTemplateModal from '/client/modules/modals/containers/new_template_modal';
import LanguageModal from '/client/modules/modals/containers/language_modal';
import ExportOfficeModal from '/client/module... |
src/svg-icons/action/swap-horiz.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSwapHoriz = (props) => (
<SvgIcon {...props}>
<path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"/>
</SvgIcon>
);
ActionSwapHoriz = pure(ActionSwapHoriz);
ActionSwapHoriz.d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.