path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/encoded/static/components/item-pages/ExperimentSetView.js | hms-dbmi/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import memoize from 'memoize-one';
import Collapse from 'react-bootstrap/esm/Collapse';
import { FlexibleDescriptionBox } from '@hms-dbmi-bgm/shared-portal-components/es/components/ui/FlexibleDescriptionBox';
impo... |
app/components/hourlyAnimation.component.js | bryantwang1/react-weather | import React from 'react';
import Moment from 'moment-timezone';
import $ from 'jquery';
class HourlyAnimation extends React.Component {
randomRange(min, max) {
return (Math.floor(Math.random() * (max - min + 1)) + min);
}
makeItRain(dropNumber) {
for(let i = 1; i < dropNumber ; i++) {
let dropLeft... |
packages/react-instantsearch-dom/src/components/HitsPerPage.js | algolia/react-instantsearch | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { createClassNames } from '../core/utils';
import Select from './Select';
const cx = createClassNames('HitsPerPage');
class HitsPerPage extends Component {
static propTypes = {
id: PropTypes... |
docs/pages/premium-themes/onepirate/sign-in.js | lgollut/material-ui | import React from 'react';
import AppTheme from 'docs/src/modules/components/AppTheme';
import SignIn from 'docs/src/pages/premium-themes/onepirate/SignIn';
export default function Page() {
return (
<AppTheme title="Onepirate theme - Material-UI" description="A onepirate theme">
<SignIn />
</AppTheme>
... |
node_modules/istanbul-lib-source-maps/node_modules/debug/dist/debug.js | codingpains/code_challenges | "use strict";
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object... |
js/components/AdminMenu.js | nathanjameshill/ReefWatchPrototype | import React from 'react'
import $ from 'jquery'
import { Button, Navbar, NavItem, Nav, Glyphicon } from 'react-bootstrap'
var AdminMenu = React.createClass({
closePanel: function () {
$("div.contentPage").animate({
left: '100%'
});
},
render() {
return (
... |
node_modules/react-native/local-cli/core/findPlugins.js | aksharora/ReactNativeDemoBasic | /**
* 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... |
app/main.js | longgame/koa-react-demo | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, Link } from 'react-router';
import './styles/main.scss';
import Counter from './components/Counter';
import TodoList from './components/TodoList';
import About from './components/About';
import Navbar from './components/Navbar';
im... |
AttackMaster/1.039/attackMaster.js | Roll20/roll20-api-scripts | /**
* attackMaster.js
*
* * Copyright 2020: Richard @ Damery.
* Licensed under the GPL Version 3 license.
* http://www.gnu.org/licenses/gpl.html
*
* This script is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free So... |
src/svg-icons/maps/local-hotel.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsLocalHotel = pu... |
src/svg-icons/action/view-agenda.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewAgenda = (props) => (
<SvgIcon {...props}>
<path d="M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.5... |
app/main.js | hsin421/tacec-2017 | import React from 'react';
import { render } from 'react-dom';
import Frame from './components/Frame';
import Landing from './components/Landing';
import About from './components/About';
import Schedule from './components/Schedule';
import Speaker from './components/Speaker';
import Contact from './components/Contact';... |
react-dev/pages/social_media_static.js | 575617819/yanghang | import React from 'react';
import IconButton from 'material-ui/IconButton';
import { green900 } from 'material-ui/styles/colors';
const iconStyles = {
icon: {
marginRight: 8,
iconHoverColor: green900,
},
hoveredStyle: {
color: green900,
},
linkStyle: {
padding: 0,
width: 28,
}
};
//it... |
ajax/libs/highstock/2.0.4/highstock.src.js | shelsonjava/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highstock JS v2.0.4 (2014-09-02)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearT... |
src/svg-icons/hardware/mouse.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareMouse = (props) => (
<SvgIcon {...props}>
<path d="M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93zM4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4v4zm7-13.93C7.05 1.56 4 4.92 4 9h7V1.07z"/>
</SvgIcon>
);
HardwareMouse =... |
webpack/demo2/src/components/A.js | leomYili/my-learning-notes | import React, { Component } from 'react';
export default class A extends Component{
render(){
const {text} = this.props;
return (
<div>
这是a模块,其中使用到的公共模块文字{text}
</div>
)
}
} |
src/components/molecules/Pagination/index.js | SIB-Colombia/biodiversity_catalogue_v2_frontend | import React from 'react';
import styled from 'styled-components';
import {Link, HomeButton} from 'components';
import ReactPaginate from 'react-paginate';
const Wrapper = styled.div `
.pagination{
text-align: center;
padding: 0 10px;
padding-top: 20px;
li{
display: inline-block;
margin-b... |
src/containers/AddNewCampaignGetDiscountPercent/AddNewCampaignGetDiscountPercent.js | kingpowerclick/kpc-web-backend | import React, { Component } from 'react';
import classNames from 'classnames';
import { Breadcrumb, NewCampaginMenu} from 'components';
import { SplitButton, MenuItem } from 'react-bootstrap';
export default class AddNewCampaignGetDiscountPercent extends Component {
render() {
const styles = require('./addNe... |
src/containers/PetitionProgress.js | iris-dni/iris-frontend | import React from 'react';
import { connect } from 'react-redux';
import PetitionProgress from 'components/PetitionProgress';
import getPetitionProgress from 'selectors/petitionProgress';
const PetitionProgressContainer = (props) => (
<PetitionProgress {...props} />
);
const mapStateToProps = ({ petition }) => getP... |
frontend/src/components/chart.js | GreatDevelopers/LibreHatti | import React from 'react';
import { useTheme } from '@material-ui/core/styles';
import { LineChart, Line, XAxis, YAxis, Label, ResponsiveContainer } from 'recharts';
import Title from './title';
// Generate Sales Data
function createData(time, amount) {
return { time, amount };
}
const data = [
createData('00:00'... |
src/svg-icons/maps/person-pin.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPersonPin = (props) => (
<SvgIcon {...props}>
<path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 3.3c1.49 0 2.7 1.21 2.7 2.7 0 1.49-1.21 2.7-2.7 2.7-1.49 0-2... |
app/javascript/mastodon/features/account_timeline/components/moved_note.js | tootsuite/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import AvatarOverlay from '../../../components/avatar_overlay';
import DisplayNam... |
curator-web/src/js/components/show/rack.js | rajeshnaroth/curator | import React from 'react'
import FilmCover from './filmCover'
const COVERWIDTH = 320;
const Rack = React.createClass({
totalFilms:0,
currentFirst:0,
windowWidth:1024,
noOfFilmsInView:3,
tryRight(current) {
console.log("rack.js: r current", current);
if (this.totalFilms <= t... |
src/pages/family-planning/FamilyPlanning.js | beccahbartlett/madapt-frontend | import React, { Component } from 'react';
import GridPageContainer from '../../components/grid-page-container/GridPageContainer'
import BirthSpacingIcon from '../../images/icons/familyplanning/birthspacing.png'
import ContraceptionIcon from '../../images/icons/familyplanning/contraception-types.png'
import FertilityIco... |
src/svg-icons/editor/wrap-text.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorWrapText = (props) => (
<SvgIcon {...props}>
<path d="M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3 3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"/>
</SvgIcon>
);
EditorWra... |
src/components/table-row.js | raulmatei/frux-table-test | import React, { Component } from 'react';
class TableRow extends Component {
static displayName = 'TableRow';
shouldComponentUpdate(nextProps) {
const isTermDefined = nextProps.term !== undefined
const isNewTermDiff = nextProps.term !== this.props.term;
const isSelectedDiff = nextProps.isSelec... |
docs/app/Examples/views/Statistic/Variations/StatisticExampleColored.js | clemensw/stardust | import React from 'react'
import { Statistic } from 'semantic-ui-react'
const StatisticExampleColored = () => (
<Statistic.Group>
<Statistic color='red' value='27' label='red' />
<Statistic color='orange' value='8' label='orange' />
<Statistic color='yellow' value='28' label='yellow' />
<Statistic co... |
ajax/libs/rxjs/2.3.10/rx.all.compat.js | Sneezry/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... |
public/jspm_packages/npm/material-ui@0.14.4/lib/utils/styles.js | nayashooter/ES6_React-Bootstrap | /* */
(function(process) {
'use strict';
Object.defineProperty(exports, "__esModule", {value: true});
exports.mergeStyles = mergeStyles;
exports.mergeAndPrefix = mergeAndPrefix;
exports.prepareStyles = prepareStyles;
var _autoPrefix = require('../styles/auto-prefix');
var _autoPrefix2 = _interopRequireDe... |
test/specs/flash/flash.spec.js | rafaelfbs/realizejs | import React from 'react'
import { Flash } from 'components/flash'
import { assert } from 'chai';
import { shallow } from 'enzyme';
describe('<Flash/>', () => {
it('exists', () => {
assert(Flash);
});
it('renders a flash', () => {
const content = shallow(
<Flash
message='Mensagem do Tipo i... |
__tests__/components/Section-test.js | codeswan/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react/lib/ReactTestRenderer';
import Section from '../../src/js/components/Section';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('Section... |
src/utils/prop-types.js | jarno-steeman/material-ui | let React = require('react');
module.exports = {
corners: React.PropTypes.oneOf([
'bottom-left',
'bottom-right',
'top-left',
'top-right',
]),
cornersAndCenter: React.PropTypes.oneOf([
'bottom-center',
'bottom-left',
'bottom-right',
'top-center',
'top-left',
'top-right',
... |
app/bower_components/html5-boilerplate/js/vendor/jquery-1.10.2.min.js | jackkarb/couch-angular | /*! 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... |
public/assets/active_admin.js | bmclean/prelaunch | /*!
* jQuery JavaScript Library v1.9.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-1-14
*/
(function(e,t){"use strict";function _(e){var ... |
example/clientApp.js | kovndr/braintree-dropin-react | import React from 'react'
import ReactDOM from 'react-dom'
import braintree from 'braintree-web-drop-in'
import PropTypes from 'prop-types'
import BraintreeDropin from '../index'
const renderSubmitButton = ({onClick, isDisabled, text}) => {
return (
<button
onClick={onClick}
disabled={isDisabled}
... |
app/javascript/mastodon/components/column_header.js | rutan/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
const messages = defineMessages({
show: { id: 'column_header.show_settings', defaultMessage: 'Show settings' },
hide: { id: 'column_header.h... |
src/js/components/ui/reduxForm/NodePickerInput.js | knowncitizen/tripleo-ui | /**
* Copyright 2017 Red Hat 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 applicable law or agreed to... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Collapse.js | JamieMason/npm-cache-benchmark | 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 ... |
src/mixins/helpers.js | teaualune/react-slick | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import {getTrackCSS, getTrackLeft, getTrackAnimateCSS} from './trackHelper';
import assign from 'object-assign';
var helpers = {
initialize: function (props) {
const slickList = ReactDOM.findDOMNode(this.list);
var slideCount = Reac... |
shared/container/DevTools/DevTools.js | cookiecooker/beaconSeed | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w"
>
<LogMonitor />
<... |
ajax/libs/material-ui/5.0.0-alpha.35/node/internal/svg-icons/CheckBoxOutlineBlank.min.js | cdnjs/cdnjs | "use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault"),_interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var React=_interopRequireWildcard(require("react")),_createSvgIco... |
src/client/client.js | AlekseyWW/shop-react-ssr | /* eslint-disable global-require */
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import createHistory from 'history/createBrowserHistory';
import ConnectedRouter from 'react-router-redux/ConnectedRouter';
// internal
import configureStore from '../shared/state/st... |
ajax/libs/react-instantsearch/4.4.1/Core.min.js | joeyparrish/cdnjs | /*! ReactInstantSearch UNRELEASED | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e((t.ReactInstantSearch=t.ReactInstantSearch||{},... |
src/components/video_list_item.js | Paolinni/Redux-React-SimpleApp | import React from 'react';
const VideoListItem = ({video, onVideoSelect}) => {
// const video = props.video is same as ({video})
const imageUrl = video.snippet.thumbnails.default.url;
return (
<li onClick={() => onVideoSelect(video)} className="list-group-item">
<div className="video-list media">
... |
src/js/pages/InputPage.js | daigof/react-redux | import React from 'react';
import InputBinder from '../components/InputBinder';
class InputPage extends React.Component {
constructor() {
super();
this.state = {
boundTitle: 'Edit Me'
};
}
changeTitle(val) {
this.setState({boundTitle: val});
}
render() {
const {boundTitle} = this.st... |
jenkins-design-language/src/js/components/material-ui/svg-icons/hardware/headset.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const HardwareHeadset = (props) => (
<SvgIcon {...props}>
<path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9z"/>
</SvgIcon>
);
HardwareHeadset.displayName = ... |
src/routes.js | materliu/web-cache-speech-auxiliary-program | /*! 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... |
ajax/libs/webshim/1.14.5-RC1/dev/shims/moxie/js/moxie.js | simudream/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 ... |
app/views/Blocks/CSF/CSF.js | RcKeller/STF-Refresh | import React from 'react'
import Helmet from 'react-helmet'
/*
CSF PAGE: .../blocks/csf
Special project during the 2017-2018 academic year
Per OPMA, we cannot change the verbage, only incorporate it.
Thus, this is a custom route added to /blocks/
*/
import styles from './CSF.css'
class CSF extends React.Comp... |
exercise-0/client-conference-schedule/src/App.js | nanovazquez/nodeconf-isomorphic-workshop | import React from 'react';
import { Router, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import routes from './routes';
import configureStore from './store';
const App = ({
initialState,
}) => {
const store = configureStore({ initialState });
return (
<Provider store={store}... |
Paths/React/05.Building Scalable React Apps/3-react-boilerplate-building-scalable-apps-m3-exercise-files/After/app/containers/NavigationContainer/index.js | phiratio/Pluralsight-materials | /*
*
* NavigationContainer
*
*/
import React from 'react';
import { connect } from 'react-redux';
import selectNavigationContainer from './selectors';
import Navigation from '../../components/Navigation';
import { requestTopics } from './actions';
export class NavigationContainer extends React.Component { // esli... |
pages/2016/npm-build-tool.js | leo/leo.github.io | // Syntax
import json from 'highlight.js/lib/languages/json'
// Packages
import Tweet from 'react-tweet-embed'
// Layouts
import Post from '../../layouts/essay'
// Components
import P from '../../components/paragraph'
import Link from '../../components/link'
import Meta from '../../components/meta'
import { Embed } ... |
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js | martincochran/score-minion-react-native | import React, { Component } from 'react';
class Foo extends Component {
render() {}
}
|
node_modules/react-icons/fa/birthday-cake.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaBirthdayCake = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m40 31.4v8.6h-40v-8.6q1 0 1.9-0.3t1.3-0.6 1.1-0.8q0.6-0.6 1.1-0.9t1.3-0.2 1.2 0.2 1.2 0.9q0.6 0.5 1 0.8t1.3 0.6 1.9 0.3q1.1 0 1.9-0.3t1.3-0.6 1.1-0.8q0.5-0.5 0.7... |
website/src/components/examples/Nesting.js | atomiks/tippyjs | import React from 'react';
import {css} from '@emotion/core';
import Tippy from '../Tippy';
import {Button} from '../Framework';
const padding = css`
padding: 10px;
`;
const commonProps = {
onCreate({popper}) {
popper.style.width = 'max-content';
},
interactive: true,
theme: 'light-border',
css: paddi... |
app/components/shared/FormCheckbox.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import FormInputErrors from './FormInputErrors';
import FormInputHelp from './FormInputHelp';
export default class FormCheckbox extends React.PureComponent {
static propTypes = {
label: PropTypes.node.isRequired,... |
src/components/TextFields.js | IShin00biI/Ktulu | import React from 'react'
import {
Text,
View,
TouchableOpacity,
Image
} from 'react-native'
import * as cards from '../cards'
import { styles } from '../styles/styles'
export const ReadLoud = ({text}) => {
return (
<View style={styles.readLoud}>
<Text style={styles.readLoudText}>
{text}
... |
packages/react-scripts/template/src/index.js | g3r4n/create-esri-react-app | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
packages/material-ui-icons/src/CellWifiRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M8.41 22H20c1.1 0 2-.9 2-2V8.39c0-.89-1.08-1.34-1.71-.71L7.7 20.29c-.63.63-.18 1.71.71 1.71z" /><path d="M7.71 20.29c-.63.63-.19 1.71.7 1.71H18V9.98L7.71 20.29zm1.36-9... |
src/utils/CustomPropTypes.js | xiaoking/react-bootstrap | import React from 'react';
import warning from 'react/lib/warning';
import childrenToArray from './childrenToArray';
const ANONYMOUS = '<<anonymous>>';
/**
* Create chain-able isRequired validator
*
* Largely copied directly from:
* https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9... |
packages/material-ui-icons/src/CameraRearTwoTone.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="M7 16h10V2H7v14zm4.99-13c1.1 0 2 .9 2 2C14 6.1 13.1 7 12 7c-1.11 0-2-.9-2-2s.89-2 1.99-2z" opacity=".3" /><path d="M5 20v2h5v2l3-3-3-3v2zM14 ... |
packages/site/pages/pure/api/timeline.js | InventingWithMonster/popmotion |
import { createElement } from 'react';
import marksy from 'marksy/components';
import { A, H1, H2, H3, H4, H5, P, Li, Ol, Ul, Hr, Code, Blockquote, ArticleHeader, Video } from '~/templates/global/styled';
import { Img } from '~/templates/content/styled';
import ContentTemplate from '~/templates/content/Template';
impo... |
client/src/components/ListOfProjects/ListOfProjects.js | karthijey/calltocode.org | import React from 'react'
import PropTypes from 'prop-types'
import styles from './ListOfProjects.css'
import projects from '../../data/projects.json'
import emailApiClient from '../../api/email'
import { connect } from 'react-redux'
function ListOfProjects (props) {
const liClassName = props.loggedIn ? styles.lis... |
server/routes/index.js | Mr-Antivirus/Riur | /**
* Copyright 2016-present, Dennis Norton.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule serverRoutes
*/
'use strict';
// Packages
import React from 'react';
import { dispatch } from 'r... |
example1/toilet/ios_views/read/recommend.js | anchoretics/ztf-work-app | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TextInput,
ScrollView,
Image,
TouchableOpacity
} from 'react-native';
import Util from './../util';
import List from './list';
import TWebView from './../webview';
class Recommend extends Component{
constructor(props){
s... |
tests/routes/Home/components/HomeView.spec.js | YoEight/corecursion-react-redux | import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'
describe('(View) Home', () => {
let _component
beforeEach(() => {
_component = render(<HomeView />)
})
it('Renders a welcome message', () => {
const welcome = _component.find('h4')
... |
ajax/libs/react-router/0.9.0/react-router.js | Nadeermalangadan/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.ReactRouter=e()}}(function(){var define,module,export... |
still/src/components/Pages/About.js | marktheshark13/Stillwaters-farm | import React, { Component } from 'react';
class About extends Component {
render() {
return (
<div>
<h1>About Under Construction :(</h1>
<img src='http://i.imgur.com/1jgeOUe.gif' alt="Yolo" />
</div>
);
}
}
export default About; |
app/javascript/mastodon/features/ui/components/drawer_loading.js | imas/mastodon | import React from 'react';
const DrawerLoading = () => (
<div className='drawer'>
<div className='drawer__pager'>
<div className='drawer__inner' />
</div>
</div>
);
export default DrawerLoading;
|
src/Components/modules/BackChanges.js | nockgish/gish | // modules/Backchanges.js
import React from 'react'
import render from 'react-dom'
class BackChanges extends React.Component {
constructor(props) {
super(props);
this.state = {
shouldChangeBackground: true
};
}
componentDidMount() {
if(this.state.shouldChangeBackground){
this.setSta... |
techCurriculum/ui/solutions/1.1/src/App.js | tadas412/EngineeringEssentials | /**
* Copyright 2017 Goldman Sachs.
* 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 writ... |
tests/ssr/server.js | headzoo/react-moment | import path from 'path';
import fs from 'fs';
import express from 'express';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import App from './app';
const PORT = 8081;
const app = express();
const router = express.Router();
const serverRenderer = (req, res) => {
fs.readFile(path.reso... |
src/js/components/icons/base/StandardsDevice.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/components/renderTextArea.js | Johj/cqdb | import React from 'react';
import {
Col,
FormControl,
FormGroup,
Glyphicon,
InputGroup,
} from 'react-bootstrap';
export function renderTextArea(handleTextChange, textFilter, size = [8, 6, 12, 12,]) {
return (
<Col lg={size[0]} md={size[1]} sm={size[2]} xs={size[3]}>
<FormGroup style={{marginBott... |
ajax/libs/ember-data.js/1.0.0-beta.11/ember-data.js | iamso/cdnjs | (function(global){
var define, requireModule, require, requirejs;
(function() {
var _isArray;
if (!Array.isArray) {
_isArray = function (x) {
return Object.prototype.toString.call(x) === "[object Array]";
};
} else {
_isArray = Array.isArray;
}
var registry = {}, seen = {}, state = {};
... |
tests/react_instance/class.js | gabelevi/flow | // @flow
import React from 'react';
declare var any: any;
class Foo extends React.Component<{}, void> {yep1: boolean}
class Bar extends React.Component<{}, void> {yep2: boolean}
(any: React$ElementRef<Class<Foo>>).yep1; // OK
(any: React$ElementRef<Class<Foo>>).yep2; // Error
(any: React$ElementRef<Class<Foo>>).nop... |
packages/es-components/src/components/navigation/useNavigationItem.js | TWExchangeSolutions/es-components | import React from 'react';
import PropTypes from 'prop-types';
import styled, { css } from 'styled-components';
import Icon from '../base/icons/Icon';
const NavItemWrapper = styled.li`
background-color: ${props => props.theme.colors.white};
color: ${props => props.theme.colors.black};
cursor: pointer;
line-he... |
ajax/libs/6to5/1.14.2/browser-polyfill.js | zhangbg/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/App.js | cowlik/cowlik | import React, { Component } from 'react';
import ReactGA from 'react-ga';
import WebFont from 'webfontloader';
import { library } from '@fortawesome/fontawesome-svg-core';
import { faGithubSquare, faLinkedin } from '@fortawesome/free-brands-svg-icons';
import { faEnvelope } from '@fortawesome/free-regular-svg-icons';
i... |
src/parser/shared/modules/features/STAT.js | yajinni/WoWAnalyzer | import React from 'react';
import { Trans } from '@lingui/macro';
import HealthIcon from 'interface/icons/Health';
import StaminaIcon from 'interface/icons/Stamina';
import ManaIcon from 'interface/icons/Mana';
import StrengthIcon from 'interface/icons/Strength';
import AgilityIcon from 'interface/icons/Agility';
impo... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/redux-form/6.6.3/es/__tests__/FieldArray.spec.js | JamieMason/npm-cache-benchmark | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _createClass = function () { function defineProperties(ta... |
ajax/libs/flux/3.1.0/FluxUtils.js | joeyparrish/cdnjs | /**
* Flux v3.1.0
*/
(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 === 'object')
exports["FluxUtils"] = facto... |
packages/material-ui-icons/src/WcRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M.01 0h24v24h-24V0z" /><g><path d="M5.5 21v-6.5H5c-.55 0-1-.45-1-1V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v4.5c0 .55-.45 1-1 1h-.5V21c0 .55-.45 1-1 1h-2c-.55 0-1-.45-1-1zM18 21v-5... |
src/ui/quark/ContextMenu/index.js | jkubos/tickator-ide | import React from 'react'
import classNames from 'classnames'
import styles from './style.less'
import {UiState} from '~/src/business/UiState'
import {ImageButton} from '../ImageButton'
export class ContextMenu extends React.Component {
static contextTypes = {
uiState: React.PropTypes.instanceOf(UiState).isR... |
react/dashboard_example/src/vendor/recharts/demo/component/LineChart.js | webmaster444/webmaster444.github.io | import React from 'react';
import CustomLineDot from './CustomLineDot';
import { changeNumberOfData } from './utils';
import { ResponsiveContainer, LineChart, Line, XAxis, YAxis, ReferenceLine,
ReferenceDot, Tooltip, CartesianGrid, Legend, Brush } from 'recharts';
const data = [
{ name: 'Page A', uv: 400, pv: 2400... |
js/components/signup/data.js | ChiragHindocha/stay_fit | import React from 'react';
import {Image} from 'react-native';
var btnsDefault = [ { text: 'Button' } ];
var btnsTypes = [
{ text: 'Primary', type: 'primary', },
{ text: 'Secondary', type: 'secondary', },
{ text: 'Delete', type: 'delete', }
];
var rows = [
{
text: "Basic Example",
right:... |
src/index.js | eutobias/MySimpleBoilerPlate | /*
./client/index.js
*/
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/index.js | manapaho/react-reporting | /**
* Manapaho (https://github.com/manapaho/)
*
* Copyright © 2015 Manapaho. 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 ReactDOM from 'react-dom';
import Relay from 'r... |
app/widget/NavigationItem.js | Mrsunsunshine/wetland |
import React, { Component } from 'react';
import { Text, StyleSheet, TouchableOpacity, Image } from 'react-native';
export default class NavigationItem extends Component {
render() {
let icon = this.props.icon &&
<Image style={[styles.icon, this.props.iconStyle]} source={this.props.icon} />
... |
tests/lib/rules/indent.js | tornqvist/eslint | /**
* @fileoverview This option sets a specific tab width for your code
* @author Dmitriy Shekhovtsov
* @author Gyandeep Singh
* @copyright 2014 Dmitriy Shekhovtsov. All rights reserved.
* @copyright 2015 Gyandeep Singh. All rights reserved.
*/
"use strict";
//----------------------------------------------------... |
app/containers/NotFoundPage/index.js | haxorbit/chiron | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
export default function NotFound() {
return (
<article>
... |
frontend/src/Activity/History/HistoryRowConnector.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { fetchHistory, markAsFailed } from 'Store/Actions/historyActions';
import createMovieSelector from 'Store/Selectors/createMovieSelector';
import createU... |
src/docs/examples/TextInputBEM/ExampleError.js | ibenavides/ps-react-ibenavides | import React from 'react';
import TextInputBEM from 'ps-react/TextInputBEM';
/** Required TextBox with error */
export default class ExampleError extends React.Component {
render() {
return (
<TextInputBEM
htmlId="example-optional"
label="First Name"
name="firstname"
onChang... |
mla_game/front-end/javascript/components/partials/audio.js | WGBH/FixIt | import React from 'react'
class Audio extends React.Component{
constructor(){
super();
this.playingAudio = this.playingAudio.bind(this);
this.playPause = this.playPause.bind(this);
this.togglePlay = this.togglePlay.bind(this);
}
playPause(){
const { audioPlayer } = this
if(audioPlay... |
app/javascript/mastodon/features/report/components/status_check_box.js | alarky/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import emojify from '../../../emoji';
import Toggle from 'react-toggle';
export default class StatusCheckBox extends React.PureComponent {
static propTypes = {
status: ImmutablePropTypes.ma... |
app/containers/DevTools.js | Yukaii/ImgurDownloader | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-q"
>
<LogMonitor />
... |
ajax/libs/rxjs/2.3.3/rx.lite.js | voronianski/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... |
example/examples/PolylineCreator.js | adamivancza/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LA... |
ajax/libs/material-ui/4.9.4/esm/utils/isMuiElement.js | cdnjs/cdnjs | import React from 'react';
export default function isMuiElement(element, muiNames) {
return React.isValidElement(element) && muiNames.indexOf(element.type.muiName) !== -1;
} |
src/components/CardImage/index.js | matapang/virtualraceph2 | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Panel } from 'react-bootstrap';
const Image = styled.div`
img {
display: block;
height:200px;
}
`;
class CardImage extends React.Component {
render() {
return (
<div onCli... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.