path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
react-js/redux-blog/src/components/app.js | vanyaland/react-demos | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
packages/material-ui-icons/src/Battery50.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V13h10V5.33z" /><path d="M7 13v7.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V13H7z" /></React... |
packages/mui-icons-material/lib/esm/ArrowCircleUpTwoTone.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M12 20c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m-1-8v4h2v-4h3l-4-4-4 4h3z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M12 20c-4.... |
docs/src/app/components/pages/customization/InlineStyles.js | barakmitz/material-ui | import React from 'react';
import Title from 'react-title-component';
import Checkbox from 'material-ui/Checkbox';
import CodeExample from '../../CodeExample';
import typography from 'material-ui/styles/typography';
class InlineStyles extends React.Component {
getStyles() {
return {
headline: {
fon... |
client/src/app/mixins/RestWrapper.js | jhuntoo/starhackit | import _ from 'lodash';
import React from 'react';
import Spinner from 'components/spinner';
import Debug from 'debug';
let debug = new Debug("wrapper:rest");
export default function (Component) {
return React.createClass({
propTypes: {
getData: React.PropTypes.func.isRequired
},
... |
src/components/Player/components/CastingMenu.react.js | jaruba/PowderPlayer | import React from 'react';
import _ from 'lodash';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import ls from 'local-storage';
import PlayerActions from '../actions';
import VisibilityStore from './Visibility/store';
import VisibilityActions from './Visibility/actions';
import player from '../utils/... |
actor-apps/app-web/webpack.config.js | chengjunjian/actor-platform | import minimist from 'minimist';
import path from 'path';
import webpack from 'webpack';
const argv = minimist(process.argv.slice(2));
const DEBUG = !argv.release;
export default {
cache: DEBUG,
debug: DEBUG,
devtool: DEBUG ? 'inline-source-map' : 'source-map',
hotComponents: DEBUG,
entry: {
app: DEBUG... |
test/mediabox_title.js | n7best/react-weui | import React from 'react';
import { shallow } from 'enzyme';
import assert from 'assert';
import WeUI from '../src/index';
const {MediaBoxTitle} = WeUI;
describe('<MediaBoxTitle></MediaBoxTitle>', ()=> {
[undefined, null, '', 'custom_class'].map((clazz)=>{
['MediaBox Title wording', <img src="http://mmrb.... |
Libraries/Utilities/throwOnWrongReactAPI.js | christopherdro/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... |
client/templates/dashboard/settings/rentalProductsSettings.js | getoutfitted/reaction-rental-products | Template.rentalProductsSettings.helpers({
packageData: function () {
return ReactionCore.Collections.Packages.findOne({
name: 'reaction-rental-products',
shopId: ReactionCore.getShopId()
});
}
});
AutoForm.hooks({
'rental-products-update-form': {
onSuccess: function (operation, result, te... |
src/routes/Home/components/HomeView.js | nnti3n/YouTime | import React from 'react'
import SearchBar from './SearchBar'
import CommentList from './CommentList'
import VideoPlayer from './VideoPlayer'
import CommentBar from './CommentBar'
import SuggestVideo from './SuggestVideo'
const YOUTIME_API = `http://youtime.herokuapp.com`
class HomeView extends React.Component {
co... |
ajax/libs/forerunnerdb/1.3.585/fdb-core.js | extend1994/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... |
app/js/page/footer.js | pengux/electron-react-starter | import React from 'react';
export default React.createClass({
render() {
return (
<footer>
Footer
</footer>
);
}
});
|
src/components/views/directory/NetworkDropdown.js | martindale/vector | /*
Copyright 2016 OpenMarket Ltd
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 agreed to in writing, software
... |
bower_components/html5-boilerplate/js/vendor/jquery-1.10.2.min.js | satishn92/D3js-Sunburst-chart | /*! 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... |
ajax/libs/yui/3.4.0pr3/simpleyui/simpleyui.js | DaAwesomeP/cdnjs |
/**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
* The YUI global name... |
fields/types/text/TextFilter.js | pr1ntr/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormSelect, SegmentedControl } from 'elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contai... |
src/components/file-input.js | tylerlee/former | import BasicInput from 'components/basic-input';
import Cursors from 'cursors';
import React from 'react';
export default React.createClass({
mixins: [Cursors],
render: function () {
return <BasicInput {...this.props} type='file' />;
}
});
|
src/svg-icons/notification/personal-video.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPersonalVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12z"/>
</SvgIcon>
);
Notifi... |
src/containers/Faq/Faq.js | deluxe-pig/cloud-farmer | // Faq.js
import React, { Component } from 'react';
import { HeaderBar, LgTextBody } from '../../components';
import styles from './Faq.css';
export default class Faq extends Component {
render() {
return (
<div className={styles.faq}>
<HeaderBar />
<div>
<LgTextBody />
<... |
app/components/settings.component.js | azothForgotten/Newznab-Frontend | import React from 'react';
import Dialog from 'material-ui/Dialog';
import SettingsField from './settingsField.component'
class Settings extends React.Component{
render() {
var _this = this;
return (
<div>
<Dialog
title="Settings"
actions={this.props.actions}
open={this.props.open}
moda... |
rn-cli.config.js | catalinmiron/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 strict... |
docs/app/Examples/collections/Table/Variations/TableExampleStackable.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleStackable = () => {
return (
<Table stackable>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell textA... |
spec/javascripts/jsx/account_course_user_search/UsersPaneSpec.js | venturehive/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/ModalTitle.js | thealjey/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalTitle extends React.Component {
render() {
return (
<h4
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{ this.props.children }
</h4>
);
}
}
ModalTitle.pr... |
ajax/libs/6to5/3.6.1/browser.js | pombredanne/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... |
frontend/routes.js | rkovacevic/hapijs-starter | import React from 'react'
import {IndexRoute, Route} from 'react-router'
import App from './views/app'
import Home from './views/home'
import About from './views/about'
import Register from './views/register'
import Login from './views/login'
import NotFound from './views/notFound'
import ServerError from './views/ser... |
app/components/AppFooter/index.js | ahsan-virani/react-gcd-portal | import React from 'react';
import { FormattedMessage } from 'react-intl';
import Img from './Img';
import Footer from './Footer';
import { FooterBtn } from './FooterClass';
import { Link } from 'react-router';
import FootLogoImg from './foot-logo.png';
import NavBar from './NavBar';
import Ul from './Ul';
import './st... |
ajax/libs/angular.js/0.9.15/angular-scenario.min.js | bragma/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.
... |
ajax/libs/docsearch.js/2.5.1/docsearch.js | sashberd/cdnjs | /*! docsearch 2.5.1 | © Algolia | github.com/algolia/docsearch */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports =... |
swiil/src/index.js | saaqibz/inbev-hackathon | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/components/video_list_item.js | callistusystan/youtubeApp | import React from 'react';
const VideoListItem = ({ video, onVideoSelect }) => {
const imageUrl = video.snippet.thumbnails.default.url;
return (
<li onClick={ () => onVideoSelect(video) } className="list-group-item">
<div className="video-list media">
<div className="media-... |
actor-apps/app-web/src/app/components/SidebarSection.react.js | hzy87email/actor-platform | import React from 'react';
import HeaderSection from 'components/sidebar/HeaderSection.react';
import RecentSection from 'components/sidebar/RecentSection.react';
class SidebarSection extends React.Component {
static propTypes = {
selectedPeer: React.PropTypes.object
};
constructor(props) {
super(props... |
src/components/ui/ListItem.js | elarasu/roverz-chat | /**
* List Items
*
<ListItem title={'Hello World'} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { ListItem } from 'react-native-elements';
// Consts and Libs
import { AppColors, A... |
real_estate_agency/react_ui/src/resale/StickyBoxBottomLines/LengthLine.js | Dybov/real_estate_agency | import React from 'react';
import SimpleLine from './SimpleLine'
import { Length } from '../../localization/formats'
export default class LengthLine extends SimpleLine {
constructor(props){
super(props)
this.WrappedComponent = <Length value={props.r} decPlaces={1} />
}
}
|
docs/src/app/components/pages/components/Divider/ExampleForm.js | owencm/material-ui | import React from 'react';
import Divider from 'material-ui/Divider';
import Paper from 'material-ui/Paper';
import TextField from 'material-ui/TextField';
const style = {
marginLeft: 20,
};
const DividerExampleForm = () => (
<Paper zDepth={2}>
<TextField hintText="First name" style={style} underlineShow={fal... |
docs/icons-group02/3.0.0/tests/BSA/assets/js/gui.js | WestpacCXTeam/GUI-source | /*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
app/components/PrintOrdersInner/table.js | RichAbrahams/electron-project | import React from 'react';
import shortid from 'shortid';
import moment from 'moment';
import InvoiceTable from '../stc/InvoiceTable';
function formatDate(date) {
const dt = Date.parse(date);
const fd = moment(dt).format('DD/MM/YYYY');
console.log(fd);
return <td>{fd}</td>;
}
function Items(props) {
const ... |
src/svg-icons/action/schedule.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSchedule = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H... |
code/workspaces/web-app/src/containers/adminListUsers/Sites.spec.js | NERC-CEH/datalab | import React from 'react';
import { render } from '@testing-library/react';
import Sites from './Sites';
jest.mock('./ResourceStackCards', () => props => (<>ResourceStackCards Mock {JSON.stringify(props)}</>));
describe('Sites', () => {
const sites = [{
key: 'test-key',
name: 'Test Name',
}];
const prop... |
src/components/Table/index.js | mother/oio | import PropTypes from 'prop-types'
import React from 'react'
import style from './style.less'
const Table = ({ children }) => (
<table className={style.table}>{children}</table>
)
Table.propTypes = {
children: PropTypes.node
}
export default Table
|
actor-apps/app-web/src/app/utils/require-auth.js | KitoHo/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});
}... |
ajax/libs/angular.js/0.9.8/angular-scenario.min.js | gabel/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.
... |
packages/cf-component-loading/src/Loading.js | koddsson/cf-ui | import React from 'react';
import Icon from 'cf-component-icon';
export default class Loading extends React.Component {
render() {
return <Icon type="loading" label="Loading" role="status" />;
}
}
|
ajax/libs/intl-tel-input/8.4.1/js/intlTelInput.js | seogi1004/cdnjs | /*
* International Telephone Input v8.4.1
* https://github.com/jackocnr/intl-tel-input.git
* Licensed under the MIT license
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ],... |
wail-ui/wail.js | N0taN3rd/wail | import 'babel-polyfill'
import 'react-flex/index.css'
import './css/wail.css'
import React from 'react'
import ReactDOM from 'react-dom'
import { BehaviorSubject } from 'rxjs'
import createHashHist from 'history/createHashHistory'
import injectTapEventPlugin from 'react-tap-event-plugin'
import { remote } from 'electro... |
react/components-communicate-through-reflux/src/components/InventorySummary/InventorySummary.js | kunukn/sandbox-web | // libs
import React from 'react';
import Reflux from 'reflux';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
// flux
import ShopStore from '../../flux/stores/Shop/ShopStore';
// utils
import _ from 'lodash';
//import {log} from '../../utils';
// components
import LoadingTracker from '../Load... |
src/components/TableRow/TableRow.js | jzhang300/carbon-components-react | import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
const TableRow = props => {
const { even, header, className, children, ...other } = props;
const tableRowClasses = classNames(className, 'bx--table-row', {
'bx--parent-row': !header,
'bx--parent-row--even':... |
admin/client/App/components/Navigation/Mobile/SectionItem.js | Adam14Four/keystone | /**
* A mobile section
*/
import React from 'react';
import MobileListItem from './ListItem';
import { Link } from 'react-router';
const MobileSectionItem = React.createClass({
displayName: 'MobileSectionItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
curren... |
src/presentation/Post.js | shek8034/react-webpack-setup | import React from 'react';
export default function Post(props) {
return (
<div>{props.post.data.title} :- asked by {props.post.data.author}</div>
)
} |
src/components/waste-water/sidebar-layers/legend/index.js | impact-initiatives/reach-jor-zaatari-webmap | import React from 'react';
import messages from '../../../../translations/waste-water.js';
import styles from '../../../../styles/index.js';
import * as colors from '../../../../constants/colors.js';
import LegendItem from '../../../common/legend/legend-item.js';
import LegendItemLine from '../../../common/legend/legen... |
examples/httpbin-echo/src/EchoComponent.js | taion/cls-isoflux-marty | import {createContainer} from 'marty';
import React from 'react';
import isoMarty from './isoflux';
import EchoStore from './EchoStore';
class EchoComponent extends React.Component {
render() {
return (
<div>{this.props.echo}</div>
);
}
}
export default createContainer(EchoComponent, {
listenTo: ... |
ajax/libs/react/0.14.7/react-dom-server.js | him2him2/cdnjs | /**
* ReactDOMServer v0.14.7
*
* 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 dire... |
node_modules/react-native-code-push/RestartManager.js | crod93/googlePlacesEx-react-native | const log = require("./logging");
const NativeCodePush = require("react-native").NativeModules.CodePush;
const RestartManager = (() => {
let _allowed = true;
let _restartPending = false;
function allow() {
log("Re-allowing restarts");
_allowed = true;
if (_restartPending) ... |
client/components/welcome/index.js | wordupapp/wordup | import React from 'react';
import { withRouter, Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { Button, Container, Icon } from 'semantic-ui-react';
import styles from './styles';
import {
Login,
Signup,
} from '../auth';
const Visitor = () => (
<div style={styles.container}>
... |
src/svg-icons/action/polymer.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPolymer = (props) => (
<SvgIcon {...props}>
<path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"/>
</SvgIcon>
);
ActionPolymer = pure(ActionPolymer);
ActionPolymer.d... |
src/controls/FontSize/Component/index.js | jpuri/react-draft-wysiwyg | /* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { Dropdown, DropdownOption } from '../../../components/Dropdown';
import './styles.css';
export default class LayoutComponent extends Component {
static propTypes = {
expanded: ... |
src/containers/App.js | expositor/universal-react | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import classNames from 'classnames';
import * as LayoutActions from '../actions/layout';
import Home from '../components/Home'
import Header from '../compon... |
app/components/Form/FieldChecks.js | vollmerr/app-hub | import React from 'react';
import PropTypes from 'prop-types';
import { Checkbox } from 'office-ui-fabric-react/lib/Checkbox';
import styled from 'styled-components';
import { Label } from 'office-ui-fabric-react/lib/Label';
import { metaProp, inputProp, optionsProp } from 'utils/propTypes';
import { isEmptyChecks } f... |
pkg/arvo/app/soto/js/tile.js | jfranklin9000/urbit | !function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("tile",t):(n=n||self).tile=t()}(this,function(){"use strict";var n="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};n.setTimeout,n.clear... |
ajax/libs/react-dom/18.0.0-alpha-b9934d6db-20210805/umd/react-dom.development.min.js | cdnjs/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).ReactDOM={},e.React)}(this,function(e,n){"use strict";var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function l(e){for(var t=argum... |
client/src/components/about/AboutPage.js | BrianLusina/Arco | /**
* Created by lusinabrian on 05/05/17.
*/
import React from 'react';
import Timeline from './Timeline';
const AboutPage = () =>{
return(
<div className="page" id="page-about">
<header className="bp-header cf">
<h1 className="bp-header__title">About Us</h1>
<p className="bp-header__desc">What we ... |
bower_components/jquery.ui/tests/jquery-1.8.1.js | slickplaid/baby-pool | /*!
* jQuery JavaScript Library v1.8.1
* 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 Aug 30 2012 17:17:22 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
examples/basic/src/components/Wrapped.js | makeomatic/redux-connect | import React from 'react';
import Link from 'react-router-dom/Link';
import { renderRoutes } from 'react-router-config';
function Wrapped({ route, lunch }) {
return (
<div>
<h2>
{'Wrapped component'}
</h2>
<div>
{`lunch: ${lunch}`}
</div>
<Link to="/wrapped/child">
... |
ajax/libs/forerunnerdb/1.3.515/fdb-all.js | dlueth/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... |
src/container/dev-tools.js | KleeGroup/focus-notifications | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
//npm i redux-devtools-dock-monitor redux-devtools-log-monitor
export default createDevTools(
<DockMonitor
toggleVisibilit... |
src/svg-icons/action/room.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRoom = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z... |
src/components/layout/nav.js | DiroKate/SysuhikerCC | import React from 'react';
import { Row, Col, Menu, Icon, Dropdown } from 'antd';
import Avatar from 'react-avatar';
import { Link } from 'dva/router';
import LocalIcon from '../LocalIcon';
import styles from './nav.less';
const SubMenu = Menu.SubMenu;
const Item = Menu.Item;
function Nav({ data, phoneMode }) {
co... |
src/svg-icons/device/wifi-tethering.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceWifiTethering = (props) => (
<SvgIcon {...props}>
<path d="M12 11c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 2c0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19l1-1.74c-1.19-.7-2-1.97-2-3.45 0-2.21... |
ajax/libs/forerunnerdb/1.3.725/fdb-all.min.js | seogi1004/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... |
packages/material-ui-icons/src/ZoomInRounded.js | allanalexandre/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="M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.78 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 ... |
node_modules/react-router/lib/Redirect.js | geng890518/editor-ui | 'use strict';
exports.__esModule = true;
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _invariant = require('invariant');
var _invariant2 = _interopRequireDefault(_invariant);
var _RouteUtils = require('./RouteUtils');
var _PatternUtils = require('./PatternUtils');
var _Intern... |
components/button/index.js | blockstack/blockstack-site | // export default from './Button'
import React from 'react'
import { Box, Flex } from 'blockstack-ui'
import { transition } from '@common/theme'
import { useHover } from 'use-events'
import { useSectionVariant } from '@common/hooks'
import Link from 'next/link'
import ArrowRightIcon from 'mdi-react/ArrowRightIcon'
co... |
ajax/libs/react-highcharts/8.1.0/RedrawOnPrint.src.js | rlugojr/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["RedrawOnPrint"] = f... |
ajax/libs/vue/0.12.0-rc/vue.js | WilliamRen/cdnjs | /**
* Vue.js v0.12.0-rc
* (c) 2015 Evan You
* Released under the MIT License.
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define(factory);
else if(... |
src/client/components/mockup/Button/Button.component.js | andrerpena/monomock | import React from 'react';
import BootstrapButton from 'react-bootstrap/lib/Button';
var Button = React.createClass({
render: function() {
return <BootstrapButton>Button</BootstrapButton>;
}
});
export default Button; |
app/javascript/mastodon/features/status/components/detailed_status.js | h3zjp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import StatusContent from '../../../components/status_content';
import MediaGallery from... |
src/icons/SettingsInputHdmiIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class SettingsInputHdmiIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M36 14V8c0-2.21-1.79-4-4-4H16c-2.21 0-4 1.79-4 4v6h-2v12l6 12v6h16v-6l6-12V14h-2zM16 8h16v6h-4v-... |
ajax/libs/vis/3.4.0/vis.js | seogi1004/cdnjs | /**
* vis.js
* https://github.com/almende/vis
*
* A dynamic, browser-based visualization library.
*
* @version 3.4.0
* @date 2014-09-10
*
* @license
* Copyright (C) 2011-2014 Almende B.V, http://almende.com
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file e... |
src/components/NewsFeed.js | Joel-Raju/SpaceExplorer | import React, { Component } from 'react';
import {
FlatList,
Text,
View,
} from 'react-native';
import { connect } from 'react-redux';
import { fetchNewsFeed } from '../actions';
import NewsItem from './NewsItem';
class NewsFeed extends Component {
componentWillMount() {
this.props.fetchNewsFeed();
t... |
src/routes.js | cbellino/roster | /**
* 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 Router from 'react-routi... |
app/react-icons/fa/edit.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaEdit extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8... |
ajax/libs/video.js/5.0.0-rc.82/alt/video.novtt.js | hare1039/cdnjs | /**
* @license
* Video.js 5.0.0-rc.82 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports... |
src/lib/app.js | kaishui/pwfe-server | /**
* Created by chkui on 2017/6/2.
*/
import Koa from 'koa'
import json from 'koa-json'
import bodyParser from 'koa-bodyparser'
import logger from 'koa-logger'
import compress from 'koa-compress'
import React from 'react'
const app = new Koa()
app.keys = ['welcome to palmg'] //TODO 暂未提供配置
app.use(compress())
app.u... |
packages/material-ui-icons/src/FilterDramaTwoTone.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="M19 12h-1.5v-.5C17.5 8.47 15.03 6 12 6c-1.8 0-3.39.88-4.4 2.22 2.54.7 4.4 3.02 4.4 5.78h-2c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4h13c1.65 0... |
src/routes/explorerRoutes.js | mitmedialab/MediaCloud-Web-Tools | import React from 'react';
import Route from 'react-router/lib/Route';
import IndexRedirect from 'react-router/lib/IndexRedirect';
import Homepage from '../components/explorer/home/Homepage';
import About from '../components/explorer/About';
import LoggedInQueryContainer from '../components/explorer/builder/LoggedInQue... |
src/components/Label/index.js | alimek/scrum-poker-react | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './styles.css';
const Label = ({ name, text, small }) => {
const arrayStyles = [];
if (small) arrayStyles.push(styles.small);
return (
<label // eslint-disable-line jsx-a11y/label-has-fo... |
app/main.js | vikramjeetsingh41/react-redux-crud-demo | import React from 'react';
import {render} from 'react-dom';
var ReactDOM = require('react-dom');
import { Route, HashRouter, BrowserRouter } from "react-router-dom";
import configureStore from './redux/store/configureStore';
import { Provider } from 'react-redux';
import { createUser } from './redux/actions/userActio... |
user_guide/searchindex.js | RavindraGkm/haircut | Search.setIndex({envversion:42,terms:{file_upload:10,some_librari:123,yellow:[99,120],poorli:87,four:[147,83,49,133,50,123,63,125,122],ofb:75,prefix:[],oldest:125,hate:129,optimize_databas:71,forget:[46,101],whose:28,accur:[0,28,112,149,38,90],aug:87,my_control:[98,108],site_url:[77,93,20,6,28],filename_pi:98,swap:[38,... |
ajax/libs/yui/3.9.1/event-custom-base/event-custom-base.js | perdona/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... |
js/vendor/jquery-1.11.3.min.js | AndrewAlva/Love_Brands | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/components/ExampleTwoDeepComponent.js | BingbingYanYK/configuratorDemo | import React from 'react';
import PropTypes from 'prop-types';
import Interactive from 'react-interactive';
import { Link } from 'react-router-dom';
import { Li } from '../styles/style';
import s from '../styles/exampleTwoDeepComponent.style';
const propTypes = {
location: PropTypes.object.isRequired,
};
export def... |
src/svg-icons/av/art-track.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvArtTrack = (props) => (
<SvgIcon {...props}>
<path d="M22 13h-8v-2h8v2zm0-6h-8v2h8V7zm-8 10h8v-2h-8v2zm-2-8v6c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2zm-1.5 6l-2.25-3-1.75 2.26-1.25-1... |
webpack/move_to_pf/TooltipButton/TooltipButton.js | pmoravec/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Tooltip, OverlayTrigger } from 'patternfly-react';
import './TooltipButton.scss';
const TooltipButton = ({
disabled, title, tooltipText, tooltipId, tooltipPlacement, renderedButton, ...props
}) => {
if (!disabled) return renderedButton... |
local-cli/generator/templates/index.android.js | naoufal/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class <%= name %> extends Component {
render() {
return (
<View style={styles.contain... |
src/DatePicker/CalendarMonth.js | pradel/material-ui | import React from 'react';
import {isBetweenDates, isEqualDate, getWeekArray} from './dateUtils';
import DayButton from './DayButton';
import ClearFix from '../internal/ClearFix';
class CalendarMonth extends React.Component {
static propTypes = {
autoOk: React.PropTypes.bool,
displayDate: React.PropTypes.obj... |
app/components/Button.js | ixje/neon-wallet-react-native | import React from 'react'
import { TouchableOpacity, Text, StyleSheet } from 'react-native'
import PropTypes from 'prop-types'
class Button extends React.Component {
static defaultProps = {
disabled: false
}
render() {
return (
<TouchableOpacity onPress={this.props.onPress} sty... |
app/javascript/mastodon/components/__tests__/button-test.js | cobodo/mastodon | import { render, fireEvent, screen } from '@testing-library/react';
import React from 'react';
import renderer from 'react-test-renderer';
import Button from '../button';
describe('<Button />', () => {
it('renders a button element', () => {
const component = renderer.create(<Button />);
const tree = com... |
client/routes.js | lakshyaranganath/pwa | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import NotFoundPage from './components/NotFound/NotFound';
import Wrapper from './views/Wrapper/Wrapper';
import importCss from './utils/importCss';
export const loadRoute = {
LandingPage: () => Promise.all([
import('./views/LandingPage... |
node_modules/material-ui/BottomNavigation/BottomNavigationItem.js | Jbeagle/writeItEasy2.0 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _inte... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.