path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
examples/ApiService/index.js | stackscz/re-app | import React from 'react';
import Markdown from 're-app-examples/Markdown';
import CodeArea from 're-app-examples/CodeArea';
export default class ApiServiceExamples extends React.Component {
render() {
return (
<div className="container-fluid">
<Markdown content={require('!!raw!./README.md')} />
<Code... |
web/src/Sign.js | Novemser/InMemoryTelecomService | /**
* Created by kevin on 12/10/2016.
*/
import React from 'react';
import SimpleDialog from './Dialog';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import {hashHistory } from 'react-router'
import $ from 'jquery';
import Auth from './Auth'
import API from './AP... |
docs/pages/components/portal.js | kybarg/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
const req = require.context('docs/src/pages/components/portal', false, /\.(md|js|tsx)$/);
const reqSource = require.context(
'!raw-loader!../../src/pages/components/portal',
false,
/\.(js|tsx)$/,
);
const reqPrefix = ... |
report/assets/scripts/bundles/core-bundle.js | CyberAgent/boombox.js | !function(a,b){function c(a){var b=ob[a]={};return $.each(a.split(bb),function(a,c){b[c]=!0}),b}function d(a,c,d){if(d===b&&1===a.nodeType){var e="data-"+c.replace(qb,"-$1").toLowerCase();if(d=a.getAttribute(e),"string"==typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:+d+""===d?+d:pb.test(d)?$.parseJSON(d)... |
ajax/libs/react-instantsearch/4.1.0/Connectors.js | BenjaminVanRyseghem/cdnjs | /*! ReactInstantSearch 4.1.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.... |
ajax/libs/forerunnerdb/1.3.585/fdb-core+views.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... |
views/invocation.js | jassyboy/black-screen | import React from 'react';
import Prompt from './prompt';
export default React.createClass({
componentWillMount() {
this.props.invocation
.on('data', _ => this.setState({canBeDecorated: this.props.invocation.canBeDecorated()}))
.on('status', status => this.setState({status: status})... |
src/components/Header/Header.js | alukach/react-map-app | import React from 'react'
import { IndexLink, Link } from 'react-router'
import { Toolbar, ToolbarGroup, ToolbarTitle } from 'material-ui/Toolbar';
import FlatButton from 'material-ui/FlatButton';
import './Header.scss'
export const Header = () => (
<Toolbar>
<ToolbarTitle text="El See Em" />
<ToolbarGroup>
... |
lib/components/Application.js | sljohnson32/shoot-the-breeze | import React, { Component } from 'react';
import firebase, { reference, signIn, signOut } from '../firebase';
import { pick, map, extend } from 'lodash';
import Utilities, { displayFirstName, filterMsgs } from './Utilities';
import Messages from './Messages';
import NavBar from './NavBar';
import UserList from './UserL... |
client/categories/components/empty-categories.js | jmeas/moolah | import React from 'react';
export default function EmptyCategories() {
return (
<div className="emptyResourceList">
<div className="emptyResourceList-message">
There are no categories.
</div>
<div className="emptyResourceList-explanation">
This page will list categories that you... |
app/javascript/mastodon/features/list_adder/components/list.js | yukimochi/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import IconButton from '../../../components/icon_button';
import { defineMessages, inject... |
sb-admin-seed-react/src/vendor/recharts/demo/component/Sector.js | Gigasz/tropical-bears | import React from 'react';
import { Surface, Sector } from 'recharts';
export default React.createClass({
render () {
return (
<Surface width={500} height={500}>
<Sector fill="#ff7902" cx={200} cy={300} innerRadius={150} outerRadius={200} endAngle={90} />
</Surface>
);
}
});
|
node_modules/react/lib/ReactReconcileTransaction.js | odedgol/trackingUi | /**
* 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/parser/shared/modules/features/ManaTab/TabComponent/ManaUsageGraph.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import {Line} from 'react-chartjs-2';
import {formatThousands } from 'common/format';
import {formatDuration} from 'common/format';
import ManaStyles from 'interface/others/ManaStyles.js';
const baseConfig = {
responsive: true,
scales: {
yAxes: [... |
example/routes/index.js | timthesinner/react-vdom | /**
* Copyright (c) 2016 TimTheSinner All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
src/routes.js | juan-tonina/internations-poc | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
tests/layouts/CoreLayout.spec.js | NGB666/cit | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import CoreLayout from 'layouts/CoreLayout/CoreLayout'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.render(component)
return renderer.getRenderOutput()
}
function shallowRenderWithProps (props... |
cheesecakes/plugins/content-manager/admin/src/components/WysiwygDropUpload/index.js | strapi/strapi-examples | /**
*
* WysiwygDropUpload
*
*/
import React from 'react';
import styles from './styles.scss';
/* eslint-disable jsx-a11y/label-has-for */
const WysiwygDropUpload = (props) => {
return (
<label
{...props}
className={styles.wysiwygDropUpload}
>
<input
onChange={() => {}}
... |
docs/src/pages/demos/drawers/PermanentDrawerLeft.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Drawer from '@material-ui/core/Drawer';
import CssBaseline from '@material-ui/core/CssBaseline';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
im... |
client/src/components/ViewCampaign/UpdateCampaign/UpdateCampaignModal.js | codefordenver/Circular | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Button,
ControlLabel,
// HelpBlock,
FormControl,
FormGroup,
Panel,
Modal,
Tab,
Tabs
} from 'react-bootstrap';
import UpdateWasteProvider from './UpdateWasteProvider';
class UpdateCampaignModal extends Component {
... |
assets/js/components/users_table.js | arineto/twitter_monitor | import _ from 'lodash';
import React from 'react';
// eslint-disable-next-line react/prefer-stateless-function
class UsersTable extends React.Component {
renderUsers() {
return _.map(this.props.users, (user) => {
return (
<tr key={user.id}>
<td>{user.username}</td>
<td>{user.c... |
public/js/cat_source/es6/components/header/manage/FilterProjects.js | Ostico/MateCat | import React from 'react'
import IconDown from '../../icons/IconDown'
import FilterProjectsStatus from './FilterProjectsStatus'
import SearchInput from './SearchInput'
class FilterProjects extends React.Component {
constructor(props) {
super(props)
this.ALL_MEMBERS = '-1'
this.NOT_ASSIGNED = '0'
th... |
ajax/libs/forerunnerdb/1.3.508/fdb-core+views.min.js | dlueth/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
ajax/libs/analytics.js/2.8.1/analytics.min.js | aashish24/cdnjs | (function umd(require){if("object"==typeof exports){module.exports=require("1")}else if("function"==typeof define&&define.amd){define(function(){return require("1")})}else{this["analytics"]=require("1")}})(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[... |
src/svg-icons/hardware/sim-card.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSimCard = (props) => (
<SvgIcon {...props}>
<path d="M19.99 4c0-1.1-.89-2-1.99-2h-8L4 8v12c0 1.1.9 2 2 2h12.01c1.1 0 1.99-.9 1.99-2l-.01-16zM9 19H7v-2h2v2zm8 0h-2v-2h2v2zm-8-4H7v-4h2v4zm4 4h-2v-4h2v4zm0... |
examples/simple/index.js | idream3/react-custom-scrollbars | import React from 'react';
import { render } from 'react-dom';
import App from './components/App';
render(<App />, document.getElementById('root'));
|
app/components/users/UserProfileForm.js | Block-and-Frame/block-and-frame | import React, { Component } from 'react';
import Geosuggest from 'react-geosuggest';
class UserProfileForm extends Component {
constructor(props) {
super(props);
this._onBlur = this._onBlur.bind(this);
this._onLocationSelect = this._onLocationSelect.bind(this);
}
_onBlur() {
this.refs.geosugges... |
auto-scroller/components/default/boolean.js | mathisonian/idyll | import React from 'react';
class Boolean extends React.PureComponent {
constructor(props) {
super(props);
}
toggleCheckbox() {
this.props.updateProps({
value: !this.props.value
});
}
render() {
const { value } = this.props;
return (
<input type="checkbox" onChange={this.togg... |
js/page/DatePickerScene.js | Naivee-Bref/React-Native-Bref | /**
* Created by weiyixia on 16/12/15.
*/
'use strict';
import React, {Component, PropTypes} from 'react';
import {
StyleSheet,
Text,
View,
TouchableHighlight,
Switch,
ListView,
AsyncStorage,
AlertIOS,
StatusBar
} from 'react-native';
import Calendar from 'react-native-calendar';
import dateFormat... |
ajax/libs/6to5/1.14.8/browser.js | calvinf/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/inferno/1.0.0-alpha7/inferno-compat.js | seogi1004/cdnjs | /*!
* inferno-compat v1.0.0-alpha7
* (c) 2016 Dominic Gannaway
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.Infer... |
node_modules/react-bootstrap/es/Modal.js | saltypaul/SnipTodo | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/svg-icons/action/settings.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettings = (props) => (
<SvgIcon {...props}>
<path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l... |
www/src/components/icons.js | tomekwi/elm-live | import React from 'react'
export const LogoIcon = () => (
<svg className="w-auto h-full" xmlns='http://www.w3.org/2000/svg' viewBox='0 0 313.81 460'>
<path fill='#f77f00' d='M290.55,192.55a5.29,5.29,0,0,1-.46,4L150.24,457.13a5.27,5.27,0,0,1-2.09,2.17l-.55-1.19V292a5.43,5.43,0,0,0-6.83-5.26L88.85,300.68l-29.8,8a4... |
src/frontend/src/components/GMActivities.js | blengerich/GenAMap | import React from 'react'
import Popover from 'material-ui/Popover'
import {Tabs,Tab} from 'material-ui/Tabs'
import GMActivityList from './GMActivityList'
const styles = {
popover: {
minWidth: '320px'
},
tabs: {
backgroundColor: 'transparent'
},
tab: {
color: '#00bcd4'
}
}
const GMActivities... |
client/app/scripts/components/show-more.js | dilgerma/scope | import React from 'react';
import { connect } from 'react-redux';
class ShowMore extends React.Component {
constructor(props, context) {
super(props, context);
this.handleClick = this.handleClick.bind(this);
}
handleClick(ev) {
ev.preventDefault();
this.props.handleClick();
}
render() {
... |
ajax/libs/forerunnerdb/1.3.395/fdb-core.min.js | sreym/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/core/helper-plugin/lib/src/components/NoMedia/index.js | wistityhq/strapi | import React from 'react';
import EmptyPictures from '@strapi/icons/EmptyPictures';
import { EmptyStateLayout } from '@strapi/design-system/EmptyStateLayout';
const NoMedia = props => {
return <EmptyStateLayout icon={<EmptyPictures width="10rem" />} {...props} />;
};
export default NoMedia;
|
docs-ui/components/flowLayout.stories.js | ifduyue/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
// import {action} from '@storybook/addon-actions';
import FlowLayout from 'app/components/flowLayout';
import SpreadLayout from 'app/components/spreadLayout';
storiesOf('ComponentLayouts/FlowLayout'... |
packages/material-ui-icons/src/CreateTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M5 18.08V19h.92l9.06-9.06-.92-.92z" opacity=".3" /><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM5.92 19H5v-.92l9.06-9.06.92.92L5.92 19zM20.71 5.63l-2.34-2.34c-.2-.2-.45-.29... |
imports/ui/pages/Signup.js | hirdbluebird/recipe-app-react | import React from 'react';
import { Link } from 'react-router';
import { Row, Col, FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap';
import handleSignup from '../../modules/signup';
export default class Signup extends React.Component {
componentDidMount() {
handleSignup({ component: this });... |
src/components/app/Services/index.js | RelativeMedia/rm-frontend | import React from 'react'
const ServicesComponent = (props) => (<div className='ServicesComponent'>
<div className='container'>
<div className='row'>
<h1>Services</h1>
</div>
<div className='row'>
<div className='services-body'>
<div className='row'>
<div className='col-lg-4... |
src/containers/Shop/BuyNecklace/index.js | rongkaixia/order-server | import React, {Component, PropTypes} from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import Helmet from 'react-helmet';
import { asyncConnect } from 'redux-async-connect';
import {UserCenterLeftPanel} from 'containers';
import Image from 'react-bootstrap/lib/Image';
import { ro... |
modules/RoutingContext.js | etiennetremel/react-router | import React from 'react'
import invariant from 'invariant'
import getRouteParams from './getRouteParams'
const { array, func, object } = React.PropTypes
/**
* A <RoutingContext> renders the component tree for a given router state
* and sets the history object and the current location in context.
*/
const RoutingC... |
scripts/build.js | wrpoulson/reusable-react-components | 'use strict';
// Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'production';
process.env.NODE_ENV = 'production';
// Makes the script crash on unhandled rejections instead of silently
// ignoring them. In the future, promise rejections that are not handled will
//... |
src/svg-icons/action/feedback.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFeedback = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/>
</SvgIcon>
);
ActionFeedback = pure(Acti... |
src/encoded/static/components/search.js | ENCODE-DCC/encoded | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import url from 'url';
import { Panel, PanelBody } from '../libs/ui/panel';
import QueryString from '../libs/query_string';
import { svgIcon } from '../libs/svg-icons';
import { auditDecor } from './audit';
import { CartToggle, C... |
src/library/Portal/__tests__/Portal.spec.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import { mount } from 'enzyme';
import Portal from '../Portal';
function mountPortal(props = {}) {
const portalProps = {
children: <div id="portalChild">child</div>,
...props
};
return mount(<Portal {...portalProps} />);
}
describe('Portal', () => {
let portal, p... |
ajax/libs/material-ui/4.9.2/es/internal/svg-icons/CheckCircle.js | cdnjs/cdnjs | import React from 'react';
import createSvgIcon from './createSvgIcon';
/**
* @ignore - internal component.
*/
export default createSvgIcon(React.createElement("path", {
d: "M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"
}), 'CheckCircle'); |
client/components/landingPage.js | VaRt-io/V-aRt | import React, { Component } from 'react';
import {OurCarousel} from './index';
export default class Main extends Component{
render(){
return (
<div>
<OurCarousel />
<div id="landingPageDescriptors">
<div className=" col-xs-12 col-md-6 col-lg-4">
<... |
src/docs/Props.js | wsherman67/UBA | import React from 'react';
import PropTypes from 'prop-types';
const Props = ({props}) => {
return (
<table className="props">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Type</th>
<th>Default</th>
<th>Required</th>
</tr>
</the... |
app/components/layout/Flashes/index.js | fotinakis/buildkite-frontend | import React from 'react';
import FlashesStore from '../../../stores/FlashesStore';
import PusherStore from '../../../stores/PusherStore';
import Flash from './flash';
const FLASH_CONN_ERROR_ID = 'FLASH_CONN_ERROR';
class Flashes extends React.PureComponent {
state = {
flashes: [],
lastConnected: true // ... |
apps/chat_app/web/static/js/containers/Login.js | nemanja-m/ex-chat | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { login } from '../actions/session';
import LoginForm from '../components/LoginForm';
const mapDispatchToProps = (dispatch) => {
return {
onSubmit: (data) => { dispatch(login(data)); }
};
};
const Login = connect(
null,
... |
front/app/app/rh-components/rh-ContentArea.js | nudoru/React-Starter-2-app | import React from 'react';
class ContentArea extends React.Component {
render() {
return (
<div className="content-region">
<div className="page-container">
{this.props.children}
</div>
</div>
);
}
}
export default ContentArea; |
ajax/libs/material-ui/5.0.0-alpha.26/ImageListItemBar/ImageListItemBar.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import { unstable_composeClasses as composeClasses } from '@material-ui/unstyled';
import { deepmerge } from '@material-ui/utils';
import clsx from 'clsx';
impo... |
packages/material-ui-icons/src/ImportantDevices.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1.89 2 2 2h7v2H7v2h8v-2h-2v-2h2v-2H2V4h18v5h2V4c0-1.11-.9-2-... |
ajax/libs/webshim/1.14.0/dev/shims/moxie/js/moxie.js | coupang/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
final/webapp/src/main.js | wasong/cmpt433 | import React from 'react'
import { render } from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import FastClick from 'fastclick'
import injectTapEventPlugin from 'react-tap-event-plugin'
import App from './App'
import { configureStore } from './store'
// Eliminates the 300ms delay between a physical tap... |
node_modules/react-icons/ti/media-pause.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const TiMediaPause = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m13.3 10c-1.8 0-3.3 1.5-3.3 3.3v13.4c0 1.8 1.5 3.3 3.3 3.3s3.4-1.5 3.4-3.3v-13.4c0-1.8-1.5-3.3-3.4-3.3z m11.7 0c-1.8 0-3.3 1.5-3.3 3.3v13.4c0 1.8 1.5 3.3 3.3 3.3s3... |
app/components/Content/Content.js | jinxiaolu/blog | import './Content.scss';
import React from 'react';
import { Router, Route, browserHistory } from 'react-router'
import Summary from '../Summary/Summary';
import HelloWorld from '../../articles/2016/09/13/HelloWorld/HelloWorld';
var content=(
<Router history={browserHistory}>
<Route path="/" component={Summary}/>
... |
blueocean-material-icons/src/js/components/svg-icons/action/settings-ethernet.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSettingsEthernet = (props) => (
<SvgIcon {...props}>
<path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5... |
floodwatch/src/js/pages/Login.js | O-C-R/floodwatch | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import { Row, Col } from 'react-bootstrap';
import FWApiClient, { AuthenticationError } from '../api/api';
import history from '../common/history';
type Props = {
loginChanged: () => void,
showMessage: (msg: string, timeout: ... |
test/browser/keys.js | zeromake/zreact | import { h, Component, render } from 'zreact';
/** @jsx h */
describe('keys', () => {
let scratch;
before( () => {
scratch = document.createElement('div');
(document.body || document.documentElement).appendChild(scratch);
});
beforeEach( () => {
scratch.innerHTML = '';
});
after( () => {
scratch.paren... |
ajax/libs/video.js/5.0.0-4/video.js | stefanneculai/cdnjs | /**
* @license
* Video.js 5.0.0-4 <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>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License Ver... |
packager/blacklist.js | BossKing/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... |
packages/netlify-cms-core/src/components/Editor/EditorControlPane/Widget.js | netlify/netlify-cms | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { Map, List } from 'immutable';
import { oneLine } from 'common-tags';
import { getRemarkPlugins } from '../../../lib/registry';
import ValidationErrorTypes from '../../../co... |
src/pages/Editor/pages/MapEditor/containers/MapContainer/components/DatamapBox/components/MapLegend/MapLegend.js | caspg/datamaps.co | import React from 'react'
import { Map } from 'immutable'
import PropTypes from 'prop-types'
import LinearLegend from './LinearLegend'
import EquidistantLegend from './EquidistantLegend'
const MapLegend = (props) => {
const dataClassification = props.mapUi.get('dataClassification')
const linearLegend = <LinearLeg... |
barebones_bbb/src/components/Webcam/Image.js | wasong/cmpt433 | import React from 'react'
import PropTypes from 'prop-types'
import Radium from 'radium'
const Image = ({
image,
}) => (
<div>
<img src={image} alt="webcam" />
</div>
)
Image.propTypes = {
image: PropTypes.string,
}
Image.defaultProps = {
image: '',
}
export default Radium(Image)
|
app/containers/AppHub/Panels/AppTiles.js | vollmerr/app-hub | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { routeProp } from 'utils/propTypes';
import theme from 'utils/theme';
import AppTile from '../../../components/AppTile';
export const Wrapper = styled.div`
padding: 15px;
background: ${theme.themeDarke... |
statics/js/dan.js | austin880625/ceremonyDanmaku | var user_id="";
var ws;
var waiting=0;
var is_lock=0;
var inter_ping,inter_clearq;
var input_msg="寫下你的祝福或讚賞(or吐槽";
var danmaku_queue=Array();
//var gettime=0;
function checkAvailability(){
if(waiting<=1){
waiting=0;
is_lock=0;
$("#danmaku_content").removeAttr("disabled");
$("#danmak... |
packages/components/demo/js/components/SideNav.js | carbon-design-system/carbon-components | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import {
SideNav as UIShellSideNav,
SideNavItems,
SideNavLink,
} from 'carbon-components-react/es/components/UIShell';
/**
* The side nav.
*/
class SideNav extends Component {
static propTypes = {
/**
* The ID of the selec... |
ajax/libs/graphiql/0.4.6/graphiql.js | seogi1004/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.GraphiQL = f()... |
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', ()... |
test/components/Table.spec.js | styled-components/styled-components-website | import React from 'react';
import renderer from 'react-test-renderer';
import Table, { Row, Column } from '../../components/Table';
test('Table renders correctly', () => {
const tree = renderer
.create(
<Table head={['head']}>
<Row>
<Column />
</Row>
</Table>
)
.toJS... |
Examples/UIExplorer/Navigator/NavigationBarSample.js | programming086/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
src/js/pages/PersonsAllPage.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import translate from '../i18n/Translate';
import connectToStores from '../utils/connectToStores';
import AuthenticatedComponent from '../components/AuthenticatedComponent';
import * as UserActionCreators from '../actions/UserActionCreators';... |
src/Main/ManaLevelGraph.js | hasseboulen/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import ChartistGraph from 'react-chartist';
import Chartist from 'chartist';
import 'chartist-plugin-legend';
import fetchWcl from 'common/fetchWcl';
import specialEventIndicators from './Chartist/specialEventIndicators';
import './Mana.css';
const form... |
example/public/jquery.js | markburns/slanger | /*!
* 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.
... |
src/components/icons/shortcuts.js | ipfs-shipyard/peerpad | import React from 'react'
export default ({ className, style }) => (
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 149 146.7' className={className} style={style}>
<path d='M96.86,78.32a17.22,17.22,0,0,0-7.45,1.74V66.64A17.35,17.35,0,1,0,79.47,51v7.45H69.53V51a17.55,17.55,0,1,0-9.94,15.65V80.05a17.35,17.35... |
src/redux/utils/createDevToolsWindow.js | hirako2000/react-hackathon-board | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import DevTools from '../../containers/DevToolsWindow';
export default function createDevToolsWindow (store) {
const win = window.open(
null,
'redux-devtools', // give it a name so it reuses the same window
... |
ajax/libs/analytics.js/1.5.1/analytics.js | stevermeister/cdnjs | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... |
httpdocs/theme/react/hooks-app/app-supporters/contexts/AppSupportersContext.js | KDE/ocs-webserver | import React, {createContext,useState} from 'react';
export const AppSupportersContext = createContext();
const AppSupportersContextProvider = (props) => {
const [state, setState] = useState({...window.data})
return (
<AppSupportersContext.Provider value={{state, setState}}>
{props.childr... |
node_modules/react-icons/ti/th-menu-outline.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const TiThMenuOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m31.7 30c0.9 0 1.6 0.8 1.6 1.7s-0.7 1.6-1.6 1.6h-23.4c-0.9 0-1.6-0.7-1.6-1.6s0.7-1.7 1.6-1.7h23.4z m0-3.3h-23.4c-2.7 0-5 2.2-5 5s2.3 5 5 5h23.4c2.7 0 5-2.3 5-5s... |
packages/material-ui-icons/src/ClearAll.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment>
, 'ClearAll');
|
docs/pages/blog/material-ui-is-now-mui.js | oliviertassinari/material-ui | import * as React from 'react';
import TopLayoutBlog from 'docs/src/modules/components/TopLayoutBlog';
import { docs } from './material-ui-is-now-mui.md?@mui/markdown';
export default function Page() {
return <TopLayoutBlog docs={docs} />;
}
|
gatsby-strapi-tutorial/cms/plugins/content-manager/admin/src/components/FilterOptions/InputWithAutoFocus.js | strapi/strapi-examples | /**
*
* InputWithAutoFocus that programatically manage the autofocus of another one
*/
import React from 'react';
import PropTypes from 'prop-types';
import { get } from 'lodash';
import InputDate from 'components/InputDate/Loadable';
import InputNumber from 'components/InputNumber/Loadable';
import InputSelect fr... |
src/js/test/components/pages/items/Item.spec.js | athill/wimf | import React from 'react';
import { shallow } from 'enzyme';
import faker from 'faker';
import sinon from 'sinon';
import Item, { ItemHeader } from '../../../../components/pages/items/Item';
describe('Item', () => {
const name = faker.lorem.words();
const quantity = faker.random.number();
const date = '2016-01-02'... |
packages/material-ui-icons/src/BusinessCenterTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M15 17H9v-1H5v3h14v-3h-4zM4 14h5v-3h6v3h5V9H4z" opacity=".3" /><path d="M20 7h-4V5l-2-2h-4L8 5v2H4c-1.1 0-2 .9-2 2v5c0 .75.4 1.38 1 1.73V19c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2v-3.28c.5... |
src/app/containers/PromptContainer.js | AscaL/react-stesss | import React from 'react';
import Prompt from '../components/Prompt';
class PromptContainer extends React.Component {
constructor(props) {
super(props);
this.handleUpdateUser = this.handleUpdateUser.bind(this);
this.handleSubmitUser = this.handleSubmitUser.bind(this);
this.state = {
username: ... |
test/local-forms-spec.js | peterox/react-redux-form | /* eslint no-return-assign:0 */
import React from 'react';
import { Control, LocalForm, actions } from '../src';
import TestUtils from 'react-dom/test-utils';
import { assert } from 'chai';
describe('local forms', () => {
it('should exist', () => {
assert.isFunction(LocalForm);
});
describe('standard usage ... |
src/containers/App.js | colevoss/redux-friendlist-demo | import React, { Component } from 'react';
import { combineReducers } from 'redux';
import { Provider } from 'react-redux';
import { createStore, renderDevTools } from '../store_enhancers/devTools';
import FriendListApp from './FriendListApp';
import * as reducers from '../reducers';
const reducer = combineReducers(r... |
packages/ui-toolkit/src/text/__tests__/text.spec.js | yldio/joyent-portal | import React from 'react';
import renderer from 'react-test-renderer';
import 'jest-styled-components';
import remcalc from 'remcalc';
import { P, H1, H2, H3, H4, H5, H6, Small, Sup } from '../';
import { Theme } from '../../mocks';
import theme from '../../theme';
describe('Button', () => {
test('Paragraph', () =>... |
src/isomorphic/modern/class/__tests__/ReactClassEquivalence-test.js | free-memory/react | /**
* Copyright 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-core
*... |
app/javascript/mastodon/components/load_more.js | pointlessone/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class LoadMore extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func,
disabled: PropTypes.bool,
visible: PropTypes.bool,
}
static defaultProps = {
vi... |
ajax/libs/react-native-web/0.12.0/exports/YellowBox/index.js | cdnjs/cdnjs | function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
/**
* Copyright (c) Nicolas Gallagher.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under th... |
app/components/PrimaryBlock/PrimaryBlock.js | klpdotorg/tada-frontend | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import isEmpty from 'lodash.isempty';
import { Spinner } from '../../containers/common';
import { EditBlock } from '../../containers/PrimaryBlock';
import { CreateCluster } from '../../containers/PrimaryCluster';
const... |
packages/material-ui-icons/src/ContactsRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19 0H5c-.55 0-1 .45-1 1s.45 1 1 1h14c.55 0 1-.45 1-1s-.45-1-1-1zM5 24h14c.55 0 1-.45 1-1s-.45-1-1-1H5c-.55 0-1 .45-1 1s.45 1 1 1zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-... |
src/icons/AssignmentLateIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class AssignmentLateIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 6h-8.37c-.82-2.32-3.02-4-5.63-4s-4.81 1.68-5.63 4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28... |
16-33a19a34dfc5b80c01d7.js | mgalicer/mgalicer.github.io | (window.webpackJsonp=window.webpackJsonp||[]).push([[16],{164:function(e,t,n){"undefined"!=typeof self&&self,e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n... |
src/svg-icons/maps/directions-walk.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsWalk = (props) => (
<SvgIcon {...props}>
<path d="M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.