path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
example/components/Container.js | hannigand/react-native-ui-stepper | import React from 'react';
import { ScrollView } from 'react-native';
export default ({ children }) => (
<ScrollView style={{ flex: 1, padding: 20, marginBottom: 50 }}>
{children}
</ScrollView>
);
|
src/routes/Counter/components/Counter.js | ds160607/pwa_boilerplate | import React from 'react'
export const Counter = (props) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {props.counter}</h2>
<button className='btn btn-default' onClick={props.increment}>
Increment
</button>
{' '}
<button className='btn btn-default' onClick={props.doubleAsync}>
... |
app/src/index.js | kheldysh/discursor | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux'
import { applyMiddleware, createStore } from 'redux'
import logger from 'redux-logger'
import Immutable from 'immutable'
import './styles/index.css';
import App from './components/App';
import rootReducer from './reducer... |
src/js/lib/table.js | kukua/farmer-weather-analytics | import React from 'react'
import _ from 'underscore'
import { Table as DataTable, resolve } from 'reactabular'
import date from './date'
export class Table extends React.Component {
getColumnSchema () {
return _.map(this.props.columns, (column) => {
var cell = {}
if (column.key) {
cell.property = column.... |
imports/ui/components/affiliations/components/sportSection.js | AdmitHub/ScholarFisher | import React, { Component } from 'react';
import Collapse from 'react-collapse';
export default class SportSection extends Component {
constructor(props) {
super(props);
this.state = { sportsOpened: false };
this.handleSportsOpened = this.handleSportsOpened.bind(this);
}
handleSportsOpened() {
t... |
src/routes/login/Login.js | cineindustria/site | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present 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 PropTypes from 'prop-... |
src/server/handlers/universal.js | canonical-ols/my.ubuntu.com | import React from 'react';
import { match, RouterContext } from 'react-router';
import { renderToString } from 'react-dom/server';
import Html from '../helpers/html';
import conf from '../configure.js';
import configureStore from '../../common/store/configureStore';
let routes = require('../../common/routes').default... |
files/rxjs/2.3.10/rx.lite.extras.js | dnbard/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'unde... |
ajax/libs/forerunnerdb/1.3.738/fdb-core.min.js | boneskull/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/components/topic/snapshots/foci/EditFocusContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { injectIntl } from 'react-intl';
import { push } from 'react-router-redux';
import { reset } from 'redux-form';
import FocusBuilderWizard from './builder/FocusBuilderWizard';
import withAsyncData from '../../..... |
packages/material-ui-icons/src/PregnantWoman.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z" /></g>
, 'PregnantWoman');
|
ajax/libs/forerunnerdb/1.3.616/fdb-core+persist.js | BitsyCode/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... |
vendor/fontawesome-free/js/brands.js | iregina/iregina.github.io | (function () {
'use strict';
var _WINDOW = {};
var _DOCUMENT = {};
try {
if (typeof window !== 'undefined') _WINDOW = window;
if (typeof document !== 'undefined') _DOCUMENT = document;
} catch (e) {}
var _ref = _WINDOW.navigator || {},
_ref$userAgent = _ref.userAgent,
userAgent = _ref... |
src/shipit/frontend/src/components/Error/index.js | lundjordan/services | import React from 'react';
import { Alert, Button, Collapse } from 'react-bootstrap';
export default class Error extends React.PureComponent {
constructor(props) {
super(props);
this.state = {};
}
getTitle() {
const { error } = this.props;
if (error.body && error.body.code) {
return `Erro... |
src/decorators/withStyles.js | deslee/static-isomorphic-starter | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { PropTypes, Component } from 'react'; // eslint-disable-line no-unused-vars
import invariant from 'fbjs/lib/invariant';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let count = 0;
function withStyles(styles) {
ret... |
src/Controller.js | yneves/rey | /*!
** rey -- React & Flux framework.
** Copyright (c) 2016 Yuri Neves Silveira <http://yneves.com>
** Licensed under The MIT License <http://opensource.org/licenses/MIT>
** Distributed on <http://github.com/yneves/rey>
*/
// - -------------------------------------------------------------------- - //
import React ... |
examples/pagination/src/components/Layout.js | lore/lore | /**
* This component is intended to reflect the high level structure of your application,
* and render any components that are common across all views, such as the header or
* top-level navigation. All other components should be rendered by route handlers.
**/
import React from 'react';
import PropTypes from 'prop... |
example/main.js | amsardesai/react-chartist | import React from 'react';
import ChartistGraph from '../index';
class Pie extends React.Component {
render() {
var data = {
labels: ['W1', 'W2', 'W3', 'W4', 'W5', 'W6', 'W7', 'W8', 'W9', 'W10'],
series: [
[1, 2, 4, 8, 6, -2, -1, -4, -6, -2]
]
};
var options = {
high: 10... |
ajax/libs/react-instantsearch/5.0.0-beta.0/Dom.js | holtkamp/cdnjs | /*! ReactInstantSearch 5.0.0-beta.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], facto... |
react-admin-dashboard/src/components/FormInputs/Radio.js | chaitanya1375/Myprojects | import React, { Component } from 'react';
import cx from 'classnames';
import uncheckImage from 'assets/images/radio-1.svg';
import checkImage from 'assets/images/radio-2.svg';
class Radio extends Component {
componentWillReceiveProps(props) {
console.log(props);
}
render() {
let {
input,
l... |
src/Assignments/AddAssignment/ExamForm.js | SwimmingFishSeniorDesign/SwimmingFishWeb | import React, { Component } from 'react';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import DatePicker from 'material-ui/DatePicker';
const styles = {
buttonStyle: {
marginBottom: 12,
marginTop: 12
}
};
class ExamForm extends Component {... |
Native/Learn_ListView/index.ios.js | renxlWin/React-Native_Demo | /**
* 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 Learn_ListView extends Component {
render() {
return (
<View style={styles.cont... |
zhihu/src/js/zhihuReact/Detail.js | fengnovo/webpack-react | import React from 'react'
import {imgUrl} from './util'
import Loading from './components/Loading'
class Detail extends React.Component {
constructor (props) {
super(props)
console.log(this.props.match.params.id);
if(this.props.match && this.props.match.params && this.props.match.params.id)... |
src/containers/FuelSavingsPage.js | Liz303/Flight | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as actions from '../actions/fuelSavingsActions';
import FuelSavingsForm from '../components/FuelSavingsForm';
export const FuelSavingsPage = (props) => {
return (
... |
docs-src/src/app/screens/Home/Home.js | bluewings/pug-as-jsx-loader | import React from 'react';
import { DropdownButton, MenuItem } from 'react-bootstrap';
import CodeMirror from 'react-codemirror';
import ApplyStyles from 'helpers/ApplyStyles';
import pugAsJsxLoader from '../../../loader/browser';
// jsx, styles
import template from './Home.pug';
import styles from './Home.scss';
// ... |
src/svg-icons/device/devices.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceDevices = (props) => (
<SvgIcon {...props}>
<path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/>
</Sv... |
src/BottomNavigation/BottomNavigationItem.spec.js | mit-cml/iot-website-source | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import BottomNavigationItem from './BottomNavigationItem';
import FontIcon from '../FontIcon/FontIcon';
import getMuiTheme from '../styles/getMuiTheme';
describe('<BottomNavigationItem />', () => {
const mu... |
node_modules/enzyme/src/ShallowTraversal.js | mjchamoures/personalPortfolio | 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/HomeAutomation/App.js | tomatrocho/auto-door | import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import SocketIOClient from 'socket.io-client';
import Loading from './components/Loading/Loading';
import MainComponent from './components/MainComponent'
const States = {
CONNECTING: 'connecting',
AUTHENTICATING: 'authenticating... |
src/components/Header.js | lukebelliveau/aclu-matchers | import React from 'react';
import { StyleSheet, css } from 'aphrodite';
import { whitespace } from '../styles/shared';
const style = StyleSheet.create({
mb0: whitespace.margins.mb0,
header: {
backgroundSize: '100%'
},
title: {
color: '#33373A',
margin: '0.8rem 0',
fontSize: '1.5rem',
textAl... |
src/svg-icons/navigation-arrow-drop-right.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../SvgIcon';
let NavigationArrowDropRight = (props) => (
<SvgIcon {...props}>
<path d="M9.5,7l5,5l-5,5V7z" />
</SvgIcon>
);
NavigationArrowDropRight = pure(NavigationArrowDropRight);
NavigationArrowDropRight.displayName = 'Navi... |
packages/material-ui-icons/src/AirlineSeatLegroomNormalTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M5 12V3H3v9c0 2.76 2.24 5 5 5h6v-2H8c-1.66 0-3-1.34-3-3zm15.5 6H19v-7c0-1.1-.9-2-2-2h-5V3H6v8c0 1.65 1.35 3 3 3h7v7h4.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5z" />
, 'AirlineSeatLegroomNormalTwoTone')... |
src/DropdownStateMixin.js | brentertz/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
/**
* Checks whether a node is within
* a root nodes tree
*
* @param {DOMElement} node
* @param {DOMElement} root
* @returns {boolean}
*/
function isNodeInRoot(node, root) {
while (node) {
... |
packages/material-ui/src/test-utils/createMount.js | allanalexandre/material-ui | import React from 'react';
import ReactDOM from 'react-dom';
import * as PropTypes from 'prop-types';
import { mount as enzymeMount } from 'enzyme';
/**
* Can't just mount <React.Fragment>{node}</React.Fragment>
* because that swallows wrapper.setProps
*
* why class component:
* https://github.com/airbnb/enzyme/i... |
src/js/SettingOption.js | majofeechiou/drawing-board | 'use strict';
/* *** 這部份用 ReactJs + redux + nativeJS 做 *** */
import React from 'react';
import ReactDOM from 'react-dom';
import GlobalConst from './GlobalConst';
import GloablTools from './GloablTools';
// import { createStore } from 'redux'
// import MethodReact from './MethodReact';
// import MethodRe... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-8/index.js | Brandon-J-Campbell/codemash | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
app/views/pages/search-test.js | datachand/sprintly-kanban | var _ = require('lodash');
var assert = require('chai').assert;
var React = require('react/addons');
var TestUtils = React.addons.TestUtils;
var stubRouterContext = require('../../lib/stub-router-context');
var sinon = require('sinon')
var assert = require('chai').assert;
var Search = require('./search');
var SearchRes... |
packages/material-ui-icons/src/WebAsset.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let WebAsset = props =>
<SvgIcon {...props}>
<path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H5V8h14v10z" />
</SvgIcon>;
WebAsset = pure(WebAsset);
WebAsset.mui... |
src/components/icons/Github.js | typical000/paveldavydov | import React from 'react'
import PropTypes from 'prop-types'
import cn from 'classnames'
import Icon from './Icon'
const Github = ({className}) => (
<Icon>
{({classes}) => (
<svg
className={cn(classes.icon, className)}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
>
... |
ajax/libs/clappr/0.0.63/clappr.js | iskitz/cdnjs | require=(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)... |
node_modules/material-ui/svg-icons/content/report.js | aalpgiray/react-hot-boilerplate-ts | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
web/jquery-install/jquery.min.js | nelzn/www | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
src/svg-icons/image/linked-camera.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLinkedCamera = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="14" r="3.2"/><path d="M16 3.33c2.58 0 4.67 2.09 4.67 4.67H22c0-3.31-2.69-6-6-6v1.33M16 6c1.11 0 2 .89 2 2h1.33c0-1.84-1.49-3.33-3.33-3.3... |
ajax/libs/react/0.3.2/react.min.js | legomushroom/cdnjs | /**
* React v0.3.2
*
* Copyright 2013 Facebook, Inc.
*
* 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 applicabl... |
ajax/libs/yui/3.2.0/event/event-focus.js | zhengyongbo/cdnjs | YUI.add('event-focus', function(Y) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
useActivate = YLang.isFunction(
Y.DOM.create('<p onbeforeactivate="... |
examples/js/jquery.js | anthonybrown/selectize.js | /*! jQuery v@1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d=... |
screens/highScores.js | yeso126/Mapapp | import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
} from 'react-native';
export default class MyComponent extends Component {
render() {
return (
<View style={styles.container}>
<Text>I'm the MyComponent component</Text>
</View>
);
}
}
const styles = Styl... |
src/svg-icons/editor/format-underlined.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatUnderlined = (props) => (
<SvgIcon {...props}>
<path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"/>
</SvgIcon>
);
EditorF... |
packages/material-ui-icons/src/VpnKeySharp.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="M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .... |
public/src/animation.js | codelegant/myReact | /**
* Author: 赖传峰
* Email: laichuanfeng@hotmail.com
* Homepage: http://laichuanfeng.com/
* Date: 2016/7/23
*/
import React from 'react';
import ReactDOM from 'react-dom';
import Animation from './demo/Animation';
import '../css/product.css';
ReactDOM.render(<Animation/>,document.getElementById('container')); |
packages/material-ui-icons/src/EditAttributesSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M17.63 7H6.37C3.96 7 2 9.24 2 12s1.96 5 4.37 5h11.26c2.41 0 4.37-2.24 4.37-5s-1.96-5-4.37-5zM7.24 14.46l-2.57-2.57.7-.7 1.87 1.87 3.52-3.52.7.7-... |
src/components/seo.js | netlify/staticgen | import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import { useStaticQuery, graphql } from 'gatsby'
function SEO({ description, lang, meta, pageTitle }) {
const {
site: { siteMetadata: site },
} = useStaticQuery(
graphql`
query {
site {
si... |
ajax/libs/react-bootstrap/0.6.2/react-bootstrap.js | ljharb/cdnjs | (function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['react'], factory);
} else {
// Browser globals
root.ReactBootstrap = factory(root.React);
}
}(this, function (React) {
/**
* almond 0.1.2 Copyright (c) 2011, The Dojo Foundation... |
src.test/component.js | epsitec-sa/electrum | /* global describe it document */
import {expect} from 'mai-chai';
import {Store} from 'electrum-store';
import React from 'react';
import ReactDOM from 'react-dom';
import ReactDOMServer from 'react-dom/server';
import Electrum from 'electrum';
import {Content} from '../src/all-components.js';
/*******************... |
src/templates/about-page.js | emjayoh/nsii | import React from 'react'
import PropTypes from 'prop-types'
import { graphql } from 'gatsby'
import Layout from '../components/Layout'
import Content, { HTMLContent } from '../components/Content'
export const AboutPageTemplate = ({ title, content, contentComponent }) => {
const PageContent = contentComponent || Con... |
src/components/WorkTeamInput/WorkTeamInput.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, FormattedMessage } from 'react-intl';
import withStyles from 'isomorphic-style-loader/withStyles';
import s from './WorkTeamInput.css';
import SearchField from '../SearchField';
import Box from '../Box';
import Button from '../Butto... |
app/containers/WhatsHappening/Bell.js | BeautifulTrouble/beautifulrising-client | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { injectIntl } from 'react-intl';
import Isvg from 'react-inlinesvg';
import { createStructuredSelector } from 'reselect';
import styled from 'styled-components';
import makeSelectWhatsHappening from './select... |
node_modules/react-bootstrap/es/Well.js | xuan6/admin_dashboard_local_dev | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
packages/material-ui-icons/src/SpeakerGroupRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M18.2 1H9.8C8.81 1 8 1.81 8 2.8v14.4c0 .99.81 1.79 1.8 1.79l8.4.01c.99 0 1.8-.81 1.8-1.8V2.8c0-.99-.81-1.8-1.8-1.8zM14 3c1.1 0 2 .89 2 2s-.9 2-2 2-2-.89-2-2 .9-2 2-2zm0 13.5c-2.21 0-4-... |
src/svg-icons/image/flash-auto.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlashAuto = (props) => (
<SvgIcon {...props}>
<path d="M3 2v12h3v9l7-12H9l4-9H3zm16 0h-2l-3.2 9h1.9l.7-2h3.2l.7 2h1.9L19 2zm-2.15 5.65L18 4l1.15 3.65h-2.3z"/>
</SvgIcon>
);
ImageFlashAuto = pure(ImageFla... |
test/setup.js | clothiersphere/sound-candy | import React from 'react';
import { expect } from 'chai';
import jsdom from 'jsdom';
const doc = jsdom.jsdom('<!doctype html><html><body></body></html>');
const win = doc.defaultView;
global.document = doc;
global.window = win;
Object.keys(window).forEach((key) => {
if (!(key in global)) {
global[key] = window... |
ajax/libs/rxjs/2.3.7/rx.lite.compat.js | stefanocudini/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... |
app/actions/ProgramDetails.js | klpdotorg/tada-frontend | import { SERVER_API_BASE } from 'config';
import { push } from 'react-router-redux';
import getObject from 'lodash.get';
import { get } from './requests';
import {
COLLAPSED_PROGRAM_ENTITY,
UNCOLLAPSED_PROGRAM_ENTITY,
SET_FITLER_PROGRAM_ENTITIES,
REMOVE_EXISTING_NODE,
RESET_PROGRAM_NAV_TREE,
SELECT_PROGRA... |
ajax/libs/react-is/18.1.0-next-bd4784c8f-20220425/umd/react-is.production.min.js | cdnjs/cdnjs | /**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
(function(){'use strict';(function(b,c){"object"===typeof exports&&"undefined"!=... |
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js | skevy/react-native | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class WelcomeText extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</... |
ajax/libs/fixed-data-table/0.3.0/fixed-data-table.min.js | lobbin/cdnjs | /**
* FixedDataTable v0.3.0
*
* Copyright (c) 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 direc... |
node_modules/react-split-pane/test/assertions/Asserter.js | dgferreira/demo | import { render, findDOMNode } from 'react-dom';
import chai from 'chai';
import spies from 'chai-spies';
import ReactTestUtils from 'react-addons-test-utils';
import SplitPane from '../../src/SplitPane';
import Resizer from '../../src/Resizer';
import Pane from '../../src/Pane';
const expect = chai.expect;
chai.use(... |
Examples/AnimatableExplorer/AnimationCell.js | oblador/react-native-animatable | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { StyleSheet, Text, TouchableWithoutFeedback } from 'react-native';
import { View } from 'react-native-animatable';
const styles = StyleSheet.create({
cell: {
padding: 16,
marginBottom: 10,
marginHorizontal: 10,
},... |
packages/material-ui-icons/src/ShoppingBasket.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ShoppingBasket = props =>
<SvgIcon {...props}>
<path d="M17.21 9l-4.38-6.56c-.19-.28-.51-.42-.83-.42-.32 0-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h13c.9... |
client/src/dataWrappers/CompanyDetailWrapper.js | verejnedigital/verejne.digital | // @flow
import React from 'react'
import {compose} from 'redux'
import {connect} from 'react-redux'
import {withDataProviders} from 'data-provider'
import type {ComponentType} from 'react'
import type {State, NewEntityDetail} from '../state'
import {entityDetailProvider} from '../dataProviders/sharedDataProviders'
imp... |
src/Grid/Grid.js | react-mdl/react-mdl | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import clamp from 'clamp';
import shadows from '../utils/shadows';
const propTypes = {
className: PropTypes.string,
component: PropTypes.oneOfType([
PropTypes.string,
PropTypes.element,
P... |
src/app/icons/partly-cloudy-night.js | Eric-Vandenberg/react-redux-weatherapp.io | import React from 'react';
const partlyCloudyNight = (props) => (
<svg id="partly-cloudy-night" viewBox="0 0 72 72" strokeWidth="0.5" {...props}>
<g>
<path d="M8.8,37.3C7.1,39.4,6,42.1,6,45c0,6.6,5.4,12,12,12l32.1,0C57.8,57,64,50.7,64,43c0-7.7-6.2-13.9-13.9-14
c-3-6.1-9.2-10-16.1-10c-0.8,0-1.7,0.1-... |
node_modules/material-ui/lib/svg-icons/device/gps-off.js | Sporks/Doc-tor | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi... |
examples/react-redux-example/app/colorful-world/containers/CurdPage.js | demones/react-guide | import {connect} from 'react-redux';
import {addPerson, editPerson, deletePerson, loadPerson} from '../actions/person';
import Person from '../components/Person';
function mapStateToProps(state) {
return {
persons: state.persons
};
}
const mapDispatchToProps = {
addPerson,
editPerson,
deletePerson,
... |
src/layouts/index.js | fathomlondon/fathomlondon.github.io | import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { graphql, StaticQuery } from 'gatsby';
import Headroom from '../utils/headroom.js';
import { Nav } from '../components/Nav';
import { Footer } from '../components/Footer';
import { CookieBanner } from '../component... |
packages/mineral-ui-icons/src/IconShoppingBasket.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconShoppingBasket(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...ico... |
public/creators-landing/src/components/icons/SwipeRight.js | brave/publishers | import React from 'react'
export const SwipeRightIcon = () => (
<svg width='26' height='26' xmlns='http://www.w3.org/2000/svg'>
<path
d='M0 13C0 5.832 5.831 0 13 0c7.168 0 13 5.832 13 13s-5.832 13-13 13C5.831 26 0 20.168 0 13zm10.26 5.673a1.001 1.001 0 0 0 1.413.067l5.5-5c.417-.38.417-1.101 0-1.48l-5.5-5a1... |
node_modules/react-error-overlay/lib/effects/proxyConsole.js | kishigo/recipes-react-redux |
var reactFrameStack = []; /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
... |
src/layouts/PageLayout/PageLayout.js | filucian/funfunapp | import React from 'react'
import { IndexLink, Link } from 'react-router'
import PropTypes from 'prop-types'
import './PageLayout.scss'
export const PageLayout = ({ children }) => (
<div className='container text-center'>
<h1>React Redux Starter Kit</h1>
<IndexLink to='/' activeClassName='page-layout__nav-ite... |
test/components/MainTest.js | coderChao/zc-gallery-by-react | /*eslint-env node, mocha */
/*global expect */
/*eslint no-console: 0*/
'use strict';
// Uncomment the following lines to use the react test utilities
// import React from 'react/addons';
// const TestUtils = React.addons.TestUtils;
import createComponent from 'helpers/shallowRenderHelper';
import Main from 'componen... |
ajax/libs/material-ui/5.0.0-beta.5/StepConnector/StepConnector.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
const _excluded = ["className"];
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { unstable_composeClasses a... |
src/client/common/components/GitHubBanner/GitHubBanner.js | noahamar/smlscrn | import React from 'react';
import classNames from 'classnames/bind';
import styles from './GitHubBanner.styl';
const cx = classNames.bind(styles);
export default class GitHubBanner extends React.Component {
constructor() {
super();
}
render() {
return (
<a className={cx('GitHubBanner')} href="h... |
docs/src/app/pages/components/Badge/ExampleBadges.js | GetAmbassador/react-ions | import React from 'react'
import Badge from 'react-ions/lib/components/Badge'
const ExampleBadges = () => (
<div>
<Badge text='1' theme='fog' />
<Badge text='2' theme='danger' />
<Badge text='3' theme='warning' />
<Badge text='4' theme='sky' />
<Badge text='5' theme='navy' />
<Badge text='6' ... |
docs/app/components/layout/main/index.js | showings/react-toolbox | import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { Button } from 'react-toolbox';
import Appbar from '../../../components/appbar';
import Markdown from '../../../components/markdown';
import Playground from './components/playground.js';
import MainNavigation from '... |
app/javascript/mastodon/features/status/index.js | 8796n/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchStatus } from '../../actions/statuses';
import Immutable from 'immutable';
import EmbeddedStatus from '../../components/status';
import MissingI... |
packages/wix-style-react/src/SidePanel/test/SidePanel.spec.js | wix/wix-style-react | import React from 'react';
import { createRendererWithUniDriver, cleanup } from '../../../test/utils/unit';
import SidePanel from '../SidePanel';
import { sidePanelPrivateDriverFactory } from './SidePanel.private.uni.driver';
describe('SidePanel', () => {
const render = createRendererWithUniDriver(sidePanelPrivateDr... |
src/Jumbotron.js | rapilabs/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Jumbotron = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: CustomPropTypes.elementType
},
getDefaultProps() {
... |
ajax/libs/jQuery-Validation-Engine/0.1.0/jquery-1.8.2.min.js | stuartpb/cdnjs | /*! jQuery v1.8.2 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-12/App.js | Brandon-J-Campbell/codemash | import React, { Component } from 'react';
import { BrowserRouter, Route } from 'react-router-dom';
import Friends from './friends/Friends.entry';
import styles from './App.css';
class App extends Component {
render() {
return (
<BrowserRouter>
<div className={styles.app}>
<header classN... |
frontend/src/MovieFile/Edit/FileEditModalContent.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Form from 'Components/Form/Form';
import FormGroup from 'Components/Form/FormGroup';
import FormInputGroup from 'Components/Form/FormInputGroup';
import FormLabel from 'Components/Form/FormLabel';
import Button from 'Components/Link/Bu... |
test/PanelGroupSpec.js | victorzhang17/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import PanelGroup from '../src/PanelGroup';
import Panel from '../src/Panel';
describe('PanelGroup', () => {
it('Should pass bsStyle to Panels', () => {
let instance = ReactTestUtils.renderIntoDocument(
<PanelGroup bsStyle="d... |
extra_sound_doorbell/libraries/p5.sound.js | lcc-prototyping-lab/intro-to-programming-with-p5js-2016 | /*! p5.sound.js v0.3.1 2016-09-29 */
(function (root, factory) {
if (typeof define === 'function' && define.amd)
define('p5.sound', ['p5'], function (p5) { (factory(p5));});
else if (typeof exports === 'object')
factory(require('../p5'));
else
factory(root['p5']);
}(this, function (p5) {
/**
* p5.... |
react-weather-app/src/components/About.js | mauriciojunior/react-playground | 'use strict'
import React from 'react'
const About = () => (
<div>
<h1 className='text-center page-title'>About</h1>
<p>
This is a weather application build on React. I have built this
for The Complete React Web App Developer Course.
</p>
<p>
Here are some of the tools I used:
... |
ajax/libs/react-intl/1.0.0-rc-3/react-intl.js | CyrusSUEN/cdnjs | (function() {
"use strict";
var $$utils$$hop = Object.prototype.hasOwnProperty;
function $$utils$$extend(obj) {
var sources = Array.prototype.slice.call(arguments, 1),
i, len, source, key;
for (i = 0, len = sources.length; i < len; i += 1) {
source = sources[i];
... |
src/organisms/cards/AddCard/index.js | policygenius/athenaeum | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Icon from 'atoms/Icon';
import Text from 'atoms/Text';
import styles from './add_card.module.scss';
function getCardText(cardText) {
if (typeof cardText === 'string') {
return (
<Text size={11} classN... |
app/utils/countOfResults.js | mikeluz/flock | import React from 'react'
const countOfResults = (results) => {
return (
<div>{results.length > 0 ? `${results.length} results` : 'No results'}</div>
)
}
export default countOfResults; |
node_modules/@exponent/ex-navigation/src/ExNavigationConnect.js | 15chrjef/mobileHackerNews | /**
* @flow
*/
import React from 'react';
import { connect } from 'react-redux';
import storeShape from 'react-redux/lib/utils/storeShape';
import hoistStatics from 'hoist-non-react-statics';
import invariant from 'invariant';
function getDisplayName(WrappedComponent: ReactClass<*>) {
return WrappedComponent.disp... |
server/sonar-web/src/main/js/apps/permissions/global/components/PageHeader.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
re-grid/src/App.js | NourEldin275/reGrid | import React, { Component } from 'react';
import './App.css';
import ReGrid from './re-grid';
import jQuery from '../node_modules/jquery';
class App extends Component {
constructor(props){
super(props);
this.columns = [
{
label: 'ID',
id: 'p_id',
... |
src/svg-icons/device/bluetooth-searching.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothSearching = (props) => (
<SvgIcon {...props}>
<path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.9... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.