path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
modules/gui/src/app/home/body/process/recipe/classification/panels/classifier/classifier.js | openforis/sepal | import {Button} from 'widget/button'
import {FileSelect} from 'widget/fileSelect'
import {Form} from 'widget/form/form'
import {Layout} from 'widget/layout'
import {LegendItem} from 'widget/legend/legendItem'
import {MosaicPreview} from '../../../mosaic/mosaicPreview'
import {Panel} from 'widget/panel/panel'
import {Re... |
examples/js/jquery.min.js | AlbertoLeon/TranslateInPlace | /*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.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.1",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim... |
src/components/Header/Header.js | bigwaterconsulting/to_dash_live | /**
* 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 withStyles from 'isom... |
blueocean-material-icons/src/js/components/svg-icons/av/videocam.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvVideocam = (props) => (
<SvgIcon {...props}>
<path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"/>
</SvgIcon>
);
AvVideocam.displayName = 'AvVideocam';
AvVideocam.muiName = 'SvgIc... |
fields/types/relationship/RelationshipColumn.js | Yaska/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#bbb',
fontSize: '.8rem',
fontWeight: 500,
marginLeft: 8,
};
var RelationshipColumn = React.createClass({
displayName: 'Rel... |
scratch-blocks/node_modules/rx/dist/rx.lite.compat.js | isabela-angelo/scratch-tangible-blocks | // Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExpor... |
src/js/components/List.js | jaedb/Iris | import React from 'react';
import { SmartList } from './SmartList';
import { ListItem } from './ListItem';
const List = ({
items,
className = '',
...rest
}) => {
if (!items || !items.length) return null;
return (
<SmartList
className={`list ${className}`}
items={items}
i... |
frontend/test/app/components/ExperimentCardList-test.js | mathjazz/testpilot | import React from 'react';
import { assert, expect } from 'chai';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import ExperimentCardList from '../../../src/app/components/ExperimentCardList';
describe('app/components/ExperimentCardList', () => {
let props, subject;
beforeEach(() => {
props = ... |
src/modules/search/Search.js | paramsinghvc/harp | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import RaisedButton from 'material-ui/RaisedButton';
import bindThis from '../../shared/bindThis';
import SearchArtistItem from './components/SearchArtistItem';
import SearchPlaylistItem from '.... |
src/components/DescriptionList/DescriptionList.js | muidea/magicSite | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { Row } from 'antd'
import styles from './index.less'
const DescriptionList = ({
className,
title,
col = 3,
layout = 'horizontal',
gutter = 32,
children,
size,
...restProps
}) => {
const clsString ... |
src/components/video_list.js | khanhhq2k/react-youtube-search-api | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return(
<VideoListItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video} />
);
});
return(
<ul clas... |
packages/website/builder/pages/index/index.js | garth/cerebral | import React from 'react'
function Index(props) {
return (
<div className="index-container">
<div
style={{
background: 'url(/images/cerebral.png)',
backgroundRepeat: 'no-repeat',
backgroundSize: 'contain',
backgroundPosition: 'center',
width: '100%'... |
examples/with-custom-webpack-config/src/App.js | jaredpalmer/react-production-starter | import React from 'react';
const App = () => <div>Welcome to Razzle.</div>;
export default App;
|
ajax/libs/vue/2.5.17/vue.common.js | extend1994/cdnjs | /*!
* Vue.js v2.5.17
* (c) 2014-2018 Evan You
* Released under the MIT License.
*/
'use strict';
/* */
var emptyObject = Object.freeze({});
// these helpers produces better vm code in JS engines due to their
// explicitness and function inlining
function isUndef (v) {
return v === undefined || v === null
}
f... |
node_modules/grunt-bowercopy/node_modules/bower/node_modules/inquirer/node_modules/rx/src/core/linq/observable/ambproto.js | tkolleh/tkolleh.github.io | /**
* Propagates the observable sequence or Promise that reacts first.
* @param {Observable} rightSource Second observable sequence or Promise.
* @returns {Observable} {Observable} An observable sequence that surfaces either of the given sequences, whichever reacted first.
*/
observableProto.amb = funct... |
ajax/libs/mediaelement/2.21.2/jquery.js | holtkamp/cdnjs | /*!
* jQuery JavaScript Library v1.9.1
* 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-2-4
*/
(function( window, undefined ) {
// Can't do t... |
src/routes/terms/Terms.js | zuban/edhunter | /**
* Created by sergeyzubov on 11/08/2017.
*/
import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Styles.css';
import Page from '../../components/Page';
import terms from './terms.md';
import { Container, Row, Col } from 'r... |
src/routes/contact/Contact.js | louisukiri/react-starter-kit | /**
* 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/containers/DevTools/DevTools.js | xkawi/react-universal-saga | 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 />
</DockMonit... |
others/ant/antd-router/index.js | fengnovo/diary | import ReactDOM from 'react-dom';
import React from 'react';
import MenuList from './Menu.js';
import { Router, Route, Link, hashHistory, IndexRoute } from 'react-router';
import A from './A.js'
import B from './B.js'
ReactDOM.render((
<Router history={hashHistory}>
<Route path="/" component={MenuList}>
... |
ajax/libs/abcjs/1.3/abcjs_plugin-min.js | froala/cdnjs | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
node_modules/react-bootstrap/es/NavbarBrand.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 ... |
blueocean-material-icons/src/js/components/svg-icons/av/volume-down.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvVolumeDown = (props) => (
<SvgIcon {...props}>
<path d="M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z"/>
</SvgIcon>
);
AvVolumeDown.displayName = 'AvVolumeDown';
AvVolumeDown.muiName = 'SvgIcon';
... |
server/node_modules/react-router-dom/es/Link.js | Atanasov86/Car-System | 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; };
function _objectWithoutProperties(obj, keys) { var target = {... |
webapp-src/src/Admin/LDAPParams.js | babelouest/glewlwyd | import React, { Component } from 'react';
import i18next from 'i18next';
import messageDispatcher from '../lib/MessageDispatcher';
class LDAPParams extends Component {
constructor(props) {
super(props);
if (!props.mod.parameters["scope-match"]) {
props.mod.parameters["scope-match"] = [];
}
... |
src/components/__tests__/Tab-test.js | reactjs/react-tabs | import React from 'react';
import renderer from 'react-test-renderer';
import Tab from '../Tab';
import { TabWrapper } from './helpers/higherOrder';
function expectToMatchSnapshot(component) {
expect(renderer.create(component).toJSON()).toMatchSnapshot();
}
describe('<Tab />', () => {
beforeAll(() => {
// esl... |
src/components/Containers.react.js | ridethepony/kitematic | import $ from 'jquery';
import _ from 'underscore';
import React from 'react';
import Router from 'react-router';
import containerStore from '../stores/ContainerStore';
import ContainerList from './ContainerList.react';
import Header from './Header.react';
import metrics from '../utils/MetricsUtil';
import shell from '... |
src/svg-icons/image/brightness-3.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness3 = (props) => (
<SvgIcon {...props}>
<path d="M9 2c-1.05 0-2.05.16-3 .46 4.06 1.27 7 5.06 7 9.54 0 4.48-2.94 8.27-7 9.54.95.3 1.95.46 3 .46 5.52 0 10-4.48 10-10S14.52 2 9 2z"/>
</SvgIcon>
);
I... |
node_modules/@expo/vector-icons/createIconSet.js | jasonlarue/react-native-flashcards | import React from 'react';
import { Text } from 'react-native';
import { Font } from 'expo';
import createIconSet from './vendor/react-native-vector-icons/lib/create-icon-set';
import createIconButtonComponent from './vendor/react-native-vector-icons/lib/icon-button';
export default function(glyphMap, fontName, expoAs... |
packages/icons/src/md/action/FlipToFront.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdFlipToFront(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm4 8v-4H6c0 2.21 1.79 4 4 4zM6 18h4v-4H6v4zm24 24h4v-4h-4v4zm8-36c2.21 0 4 1.79 4 4v20c0 2.21-1.79 4-4 4H18c-2.21 0-... |
app/routes/notFound/index.js | dleszcz/ladder | import React from 'react';
import { IndexRoute } from 'react-router';
import { NotFound } from './notFound.component';
export default (
<IndexRoute component={NotFound} />
);
|
ajax/libs/zxcvbn/1.0.3/zxcvbn.min.js | MisatoTremor/cdnjs | (function(){var aC,aM,aK,aB,ah,ag,af,ae,ad,ac,ab,t,ap,aL,ao,r,o,m,l,k,i;ab=function(n){var p,q;q=[];for(p in n){q.push(p)}return 0===q.length};ap=function(n,p){return n.push.apply(n,p)};k=function(n,p){var w,u,s,v,q;v=n.split("");q=[];u=0;for(s=v.length;u<s;u++){w=v[u],q.push(p[w]||w)}return q.join("")};r=function(n,p)... |
src/views/components/logos/loading.js | thomkrupa/towatch | /* eslint-disable */
import React from 'react';
export default function LoadingAnimation() {
return (
<svg width='30px' height='30px' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="uil-default"><rect x="0" y="0" width="100" height="100" fill="none" class="bk"></rec... |
ajax/libs/react-cookie/0.1.3/react-cookie.min.js | codfish/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/helpers/__tests__/makeRouteHooksSafe-test.js | jairoandre/lance-web-hot | import { expect } from 'chai';
import React from 'react';
import { IndexRoute, Route } from 'react-router';
import makeRouteHooksSafe from '../makeRouteHooksSafe';
describe('makeRouteHooksSafe', () => {
it('should work with JSX routes', () => {
const onEnter = () => {
throw new Error('Shouldn\'t call onEn... |
cfg/test.js | igor-popov/react-demo | 'use strict';
let path = require('path');
let srcPath = path.join(__dirname, '/../src/');
let baseConfig = require('./base');
module.exports = {
devtool: 'eval',
module: {
preLoaders: [
{
test: /\.(js|jsx)$/,
loader: 'isparta-instrumenter-loader',
include: [
path.join(... |
src/views/SecretView.js | dont-fear-the-repo/fear-the-repo | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import counterActions from 'actions/counter';
// import { RaisedButton } from 'material-ui/lib';
const mapStateToProps = (state) => ({
counter: state.counter,
routerState: state.router
});
const mapDispat... |
example/App.js | zoomyu/react-native-signature-view | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
TouchableOpacity,
Text,
View
} from 'react-native';
import SignatureView from 'react-native-signature-view';
export default class Root extends Compon... |
src/components/Navbar.js | wind-swell/windswellpottery | import React from 'react'
import Link from 'gatsby-link'
import logo from '../img/logo.png'
const Navbar = () => (
<nav className="navbar">
<div className="container">
<div className="navbar-brand">
<Link to="/" className="navbar-item">
<img src={logo} alt="Wind Swell" />
</Link>... |
docs/src/SupportPage.js | laran/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
export default class Page extends React.Component {
render() {
return (
<div>
<NavMain activePage="support" />
<PageHeader
title="Nee... |
src/pages/404.js | JohannBillar/Quality-Link | import React from 'react';
import { rhythm } from '../utils/typography';
const container = {
margin: `0 auto`,
maxWidth: 960,
padding: `${rhythm(1)} ${rhythm(3 / 4)}`,
paddingTop: 0
};
export default () => (
<div style={container}>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the... |
src/Deck.js | lyallsv/react-solitaire | import React, { Component } from 'react';
class Deck extends Component {
deal() {
this.props.onClick();
}
render() {
let {remainingCards} = this.props;
return (
<div className="col7" onClick={this.deal.bind(this)}>
<div className="exchange pointer" style={{borderTop: (remainingCards ... |
src/__tests__/ReduxSweetAlert.spec.js | chentsulin/react-redux-sweetalert | import React from 'react';
import { createStore, combineReducers } from 'redux';
import { combineReducers as combineReducersImmutable } from 'redux-immutable';
import SweetAlert from 'sweetalert-react';
import { mount } from 'enzyme';
import ReduxSweetAlert from '../ReduxSweetAlert';
import reducer from '../reducer';
... |
src/FormGroup.js | chilts/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class FormGroup extends React.Component {
render() {
let classes = {
'form-group': !this.props.standalone,
'form-group-lg': !this.props.standalone && this.props.bsSize === 'large',
'form-group-sm': !this.props.standalone && this.pr... |
ajax/libs/intl-tel-input/3.8.0/js/intlTelInput.js | samthor/cdnjs | /*
International Telephone Input v3.8.0
https://github.com/Bluefieldscom/intl-tel-input.git
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPlugin.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ], function($) {
factory($, window... |
ajax/libs/flocks.js/1.0.1/flocks.js | stuartpb/cdnjs |
/** @jsx React.DOM */
/* jshint node: true, browser: true, newcap: false */
/* eslint max-statements: 0, no-else-return: 0, brace-style: 0 */
/* eslint-env node,browser */
/**
* The Flocks library module. Load this module and use either the
* flocks <tt>flocks.createClass</tt> wrapper or the <tt>flocks... |
src/components/__tests__/helpers/higherOrder/TabListWrapper.js | mzabriskie/react-tabs | import React from 'react';
import hoist from 'hoist-non-react-statics';
import TabList from '../../../TabList';
function TabListWrapper(props) {
return <TabList {...props} />;
}
export default hoist(TabListWrapper, TabList);
|
ProgramadoresIV/ReactJS... otro framework de JS.js/node_modules/grunt/node_modules/grunt-legacy-log/node_modules/underscore.string/test/test_underscore/vendor/jquery.js | fforres/presentaciones-y-charlas | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/components/seed-legend.js | Shramp/genetic_distance | import React from 'react';
import categories from '../util/categories';
const styles = color => ({
legendItem: {
width: '36px',
height: '16px',
backgroundColor: color,
marginRight: '8px',
},
legendItemContainer: {
display: 'flex',
marginRight: '24px',
alignItems: 'center',
width:... |
ajax/libs/webshim/1.14.6-RC2/dev/shims/es6.js | seogi1004/cdnjs | // ES6-shim 0.8.0 (c) 2013 Paul Miller (paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.
// For more details and documentation:
// https://github.com/paulmillr/es6-shim/
webshim.register('es6', function($, webshim, window, document, undefined){
'use strict';
var isCallableWithoutNew = fun... |
src/react.js | aaronjensen/redux | import React from 'react';
import createAll from './components/createAll';
export const { Provider, Connector, provide, connect } = createAll(React);
|
ajax/libs/choices.js/2.7.4/choices.js | ahocevar/cdnjs | /*! choices.js v2.7.4 | (c) 2017 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], fact... |
18-react-router-redux/src/components/repos.js | iproduct/course-node-express-react | import React from 'react';
import { PropTypes } from 'prop-types';
import Repo from './repo';
import { Route } from 'react-router-dom';
import { connect } from 'react-redux';
const Repos = (props) => {
return (
<div>
<h2>Repos</h2>
<Route path="/repos/:userName/:repoName" component={Repo} />
... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/invert-colors.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionInvertColors = (props) => (
<SvgIcon {...props}>
<path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 19.59c-1.6 0-3.11-.62-4.24-1.76C6.... |
node_modules/react-select/examples/src/components/Contributors.js | Sweetgrassbuffalo/ReactionSweeGrass-v2 | import React from 'react';
import Select from 'react-select';
const CONTRIBUTORS = require('../data/contributors');
const MAX_CONTRIBUTORS = 6;
const ASYNC_DELAY = 500;
const Contributors = React.createClass({
displayName: 'Contributors',
propTypes: {
label: React.PropTypes.string,
},
getInitialState () {
ret... |
node_modules/react-haste/shared/utils/__tests__/traverseAllChildren-test.js | reallin/MyReact-Native | /**
* 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.
*
* @emails react-co... |
src/components/WeatherForecastIcon.react.js | danesparza/Dashboard | import React, { Component } from 'react';
// Stylesheets & images
import 'weathericons/css/weather-icons.css';
class WeatherForecastIcon extends Component {
render() {
// Yahoo numeric codes are here: https://developer.yahoo.com/weather/documentation.html
// Forecast.io icon codes are here: h... |
src/client/admin/hometiles/homeTiles.js | r3dDoX/geekplanet | import PropTypes from 'prop-types';
import React from 'react';
import Dragula from 'react-dragula';
import 'react-dragula/dist/dragula.css';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { createLoadHomeTiles } from '../../actions';
import HomeTile from '../../home/homeTile';
im... |
packages/reactor-tests/src/tests/rel/RelMenu.js | sencha/extjs-reactor | import React from 'react';
import { Container, Button, Menu, MenuItem } from '@extjs/ext-react';
export default function RelMenu() {
return (
<Container>
<div>This tests that the menu config is automatically set when a Menu appears inside a Button. The test should verify that the button has a m... |
pages/utils/click-away-listener.js | Kagami/material-ui | import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
const req = require.context('docs/src/pages/utils/click-away-listener', false, /\.md|\.js$/);
const reqSource = require.context(
'!raw-loader!../... |
ajax/libs/react-data-grid/1.0.60/react-data-grid.min.js | brix/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(th... |
src/client/components/centered/Centered.js | flute-io/flagshipped-io-app | import React from 'react'
import Component from '../component/Component'
import './Centered.scss'
export default class Centered extends React.Component {
render () {
return (
<Component class="Centered" {...this}>
{this.props.children}
</Component>
)
}
}
|
pkg/interface/publish/src/js/components/lib/notebook.js | jfranklin9000/urbit | import React, { Component } from 'react';
import { Link, Switch, Route } from 'react-router-dom';
import { SidebarSwitcher } from './icons/icon-sidebar-switch';
import { NotebookPosts } from './notebook-posts';
import { Subscribers } from './subscribers';
import { Settings } from './settings';
import Sidebar from './si... |
js/screens/preview.js | fxdemolisher/newscats | import React from 'react'
import {StyleSheet, View} from 'react-native'
import {connect} from 'react-redux'
import {Actions} from '/actions'
import {Constants} from '/constants'
import {Styles} from '/styles'
import {BaseComponent, Feed} from '/widgets'
const styles = {
container: {
backgroundColor: Style... |
test/integration/production/components/welcome.js | arunoda/next.js | import React from 'react'
export default class Welcome extends React.Component {
state = { name: null }
componentDidMount () {
const { name } = this.props
this.setState({ name })
}
render () {
const { name } = this.state
if (!name) return null
return (
<p>Welcome, {name}</p>
)
... |
ajax/libs/muicss/0.5.2/react/mui-react.min.js | sufuf3/cdnjs | !function(e){var t=e.babelHelpers={};t["typeof"]="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},t.jsx=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.eleme... |
src/pages/betelgeuse.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Betelgeuse' />
)
|
spec/javascripts/jsx/grading/SpecificSectionsSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2019 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
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... |
AspectRatioDemo/node_modules/react-native/node_modules/react-tools/src/browser/ui/dom/DOMProperty.js | paramaggarwal/aspect-ratio-demo | /**
* 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 ... |
app/components/Header/Header.js | lksilva/elecash-flow | import React, { Component } from 'react';
import styles from './Header.css';
import ItemMenu from './ItemMenu';
class Header extends Component<any, any> {
props: {
handleClick: () => void,
items: array
};
handleOnChange = (menu: string) => {
this.props.handleClick(menu);
}
render() {
const ... |
ajax/libs/analytics.js/2.8.10/analytics.min.js | tambien/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/layouts/CoreLayout/CoreLayout.js | Ryana513/ccproject | import React from 'react';
import PropTypes from 'prop-types';
import Navbar from '../../containers/Navbar';
import classes from './CoreLayout.scss';
import 'styles/core.scss';
export const CoreLayout = ({ children }) => (
<div className={classes.container}>
<Navbar />
<div className={classes.child... |
doc/src/pages/examples/viewer-coordinates.js | mapillary/mapillary-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.
*
* @format
*/
import React from 'react';
import Layout from '@theme/Layout';
import {Code} from '../../js/components/Code';
import... |
src/layouts/Navigation.js | baopham/react-laravel-generator | import React from 'react'
import { Nav, Navbar } from 'react-bootstrap/lib'
import { IndexLink, Link } from 'react-router'
export default class Navigation extends React.Component {
render () {
return (
<Navbar>
<Navbar.Header>
<Navbar.Brand>
<IndexLink to='/'>Laravel Generator... |
test/integration/Table/MultiSelectTable.js | verdan/material-ui | import React from 'react';
import {
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn,
} from 'src/Table';
const tableData = [
{
name: 'John Smith',
selected: true,
},
{
name: 'Randal White',
selected: true,
},
{
name: 'Olivier',
},
];
function Tabl... |
examples/with-styled-components/src/client.js | jaredpalmer/react-production-starter | import React from 'react';
import { hydrate } from 'react-dom';
import App from './App';
hydrate(<App />, document.getElementById('root'));
if (module.hot) {
module.hot.accept();
}
|
src/components/common/svg-icons/action/alarm-add.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarmAdd = (props) => (
<SvgIcon {...props}>
<path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.... |
app/client/src/components/Wrap/index.js | barahuang/rss-news-reader | import React from 'react';
import './index.css';
export default props => <div className="wrap">{props.children}</div>;
|
node_modules/react-icons/io/ipod.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoIpod = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m19.8 24.3c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5-2.5-1.1-2.5-2.5 1-2.5 2.5-2.5z m6.5-19.3c1.2 0 2.2 0.9 2.2 2.2v25.6c0 1.3-1 2.2-2.2 2.2h-13.1c-1.2 0-2.2-0.9-2.2-2.2v-2... |
react/index.native.js | KalinduDN/kalindudn.github.io | import 'es6-symbol/implement';
import React, { Component } from 'react';
import { AppRegistry, Linking } from 'react-native';
import { App } from './features/app';
/**
* React Native doesn't support specifying props to the main/root component (in
* the JS/JSX source code). So create a wrapper React Component (class... |
examples/src/components/CustomRenderField.js | miraks/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var CustomRenderField = React.createClass({
displayName: 'CustomRenderField',
propTypes: {
delimiter: React.PropTypes.st... |
node_modules/react-navigation/src/navigators/TabNavigator.js | jiangqizheng/ReactNative-BookProject | /* @flow */
import React from 'react';
import { Platform } from 'react-native';
import createNavigator from './createNavigator';
import createNavigationContainer from '../createNavigationContainer';
import TabRouter from '../routers/TabRouter';
import TabView from '../views/TabView/TabView';
import TabBarTop from '..... |
Examples/UIExplorer/Navigator/NavigationBarSample.js | pjcabrera/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,
... |
wrappers/md.js | roslaneshellanoo/gatsby-starter-clean | import React from 'react'
import 'css/markdown-styles.css'
import Helmet from "react-helmet"
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
render () {
const post = this.props.route.page.data
return (
<... |
src/sidebar/builder.js | HsuTing/cat-components | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
export default Component => class extends React.Component { // eslint-disable-line react/display-name
static contextTypes = {
sidebar: PropTypes.func.isRequired,
hideSidebar: PropTypes.func.isRequired
}
render() {
return (... |
05-redux-input-field/src/App.js | dtanzer/react-basic-examples | import React, { Component } from 'react';
import Greeter from './Greeter'
class App extends Component {
render() {
return (
<Greeter name="World" />
);
}
}
export default App;
|
modules/dqt/jsx/components/stepper.js | driusan/Loris | import React from 'react';
import PropTypes from 'prop-types';
/**
* Step component used in Stepper.
*
* @description the text & circular key for a step.
* @param {object} props - React Component properties
* @return {JSX} - React markup for the component
*/
const Step = (props) => {
const styles = {
step:... |
course/format/amd/src/local/courseindex/drawer.js | xow/moodle | // This file is part of Moodle - http://moodle.org/
//
// Moodle 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 Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is dis... |
src/templates/post-template.js | hb-gatsby/gatsby-starter-lumen | // @flow strict
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import Post from '../components/Post';
import { useSiteMetadata } from '../hooks';
import type { MarkdownRemark } from '../types';
type Props = {
data: {
markdownRemark: MarkdownRemark
}
};
... |
src/encoded/static/components/static-pages/components/CSVMatrixView.js | 4dn-dcic/fourfront | 'use strict';
import React from 'react';
import _ from 'underscore';
import MatrixView from './../../viz/MatrixView';
import * as d3 from 'd3';
import { console } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
export const CSVParsingUtilities = {
/**
* @static
* @function
* @p... |
src/components/KPIIDLogin.js | kpi-ua/ecampus.kpi.ua | import React from 'react';
import { Link } from 'react-router-dom';
import SupportInformationDialog from './SupportInformationDialog';
import * as campus from '../CampusClient';
class KPIIDLogin extends React.Component {
state = {
phone: '',
secret: '',
authFail: false,
codeWasRequested: false,
};
... |
ajax/libs/react-autosuggest/9.3.1/autosuggest.min.js | jonobr1/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React")):"function"==typeof define&&define.amd?define(["React"],t):"object"==typeof exports?exports.Autosuggest=t(require("React")):e.Autosuggest=t(e.React)}(this,function(e){return function(e){function t(o){if(n[o])return n[o].e... |
ajax/libs/react/0.11.0-rc1/react.js | rndme/cdnjs | /**
* React v0.11.0-rc1
*/
!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.React=e()}}(function(){v... |
app/javascript/mastodon/features/notifications/components/clear_column_button.js | yukimochi/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
export default class ClearColumnButton extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func.isRequired,
};
render () {
return ... |
src/withPagination/withPagination.js | EvanJ0hnson/tv-shows | import React, { Component } from 'react';
import Button from '../components/ui/Button';
/**
* @desc HOC withPagination
*/
const withPagination = WrappedComponent => class Pagination extends Component {
state = {
itemTotal: this.props.items.length,
pageSize: 10,
pageNumber: 0,
pageTotal: 0,
fir... |
src/components/products/product-details.js | FranckCo/Operation-Explorer | import React from 'react';
import { sparqlConnect } from 'sparql-connect';
import SeriesByProduct from '../operations/series-by-product';
import LinkedResources from '../shared/link-explorer'
import NotFound from '../not-found'
import Spinner from 'components/shared/spinner'
import { tidyString } from 'utils/string-uti... |
ajax/libs/clappr/0.0.2/clappr.light.js | zimbatm/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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]... |
internals/templates/notFoundPage.js | mxstbr/react-boilerplate-site | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
export function NotFound() {
return (
<h1>Page Not Found</h1>
);
}
export default NotFound;
|
app/javascript/mastodon/features/list_adder/components/list.js | sylph-sin-tyaku/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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.