target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
src/components/common/story/NamedEntitiesTable.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, FormattedNumber, injectIntl } from 'react-intl';
const localMessages = {
entityName: { id: 'story.entity.name', defaultMessage: 'Name' },
entityFrequency: { id: 'story.entity.frequency', defaultMessage: 'Occurences' },
};
co... |
src/svg-icons/image/control-point.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageControlPoint = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-... |
node_modules/filesystem-browserify/node_modules/browserify/node_modules/syntax-error/node_modules/esprima/test/3rdparty/jquery-1.6.4.js | jlord/pagination-test | /*!
* jQuery JavaScript Library v1.6.4
* 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.
... |
docs/src/app/components/pages/components/FlatButton/Page.js | pradel/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import flatButtonReadmeText from './README';
import flatButtonExampleSimpleCode ... |
examples/redirect-using-index/app.js | mjw56/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
{this.props.children}
</div>
);
}
});
var Index = React.createClass({
render () {
return (
<div>
<h1>You should not se... |
webpack/move_to_foreman/components/common/table/formatters/collapseableAndSelectionCellFormatter.js | cfouant/katello | import React from 'react';
import selectionCellFormatter from './selectionCellFormatter';
import CollapseSubscriptionGroupButton from '../components/CollapseSubscriptionGroupButton';
export default (collapseableController, selectionController, additionalData) => {
const shouldShowCollapseButton = collapseableControl... |
src/browser/main.js | puzzfuzz/othello-redux | import React from 'react';
import ReactDOM from 'react-dom';
import Router from 'react-router';
import configureStore from '../common/configureStore';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import createEngine from 'redux-storage/engines/localStorage';
import createRoutes from './createRou... |
pollard/components/TitleArtistLine.js | freeformpdx/pollard | import React, { Component } from 'react';
export default class TitleArtistLine extends Component {
handleClick() {
if (this.props.type === 'selected') {
this.props.deselectSong();
} else {
this.props.selectSong(this.props.idx);
}
}
render() {
const songTitle = this.props.song.get('i... |
src/svg-icons/action/build.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBuild = (props) => (
<SvgIcon {...props}>
<path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-... |
src/views/ContractBusiness/Payment/PaymentDetails.js | bruceli1986/contract-react | import React from 'react'
import PageHeader from 'components/PageHeader'
import PaymentBasicInfo from 'components/PaymentBasicInfo'
import PaymentDetailsInfo from 'components/PaymentDetails'
import FileListTable from 'components/FileListTable'
import TaskHistory from 'components/TaskHistory'
import WithdrawButton from ... |
src/app/modules/studentEnroll/containers/list.js | Kikonejacob/nodeApp | /**
* list grid:
* react container for displaying a grid list of level fees:
* schema: [fee_code,amount]
* (c) 2016 kikone kiswendida
*/
import GridView,{LinkComponent,COLLECTION_SORT,COLLECTION_FETCH,
COLLECTION_FILTER,COLLECTION_SET_PAGE,
COLLECTION_SETPAGE_SIZE} from ... |
01_webstack/03Wk04/4_conFusion_updating_angular/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | allenmodroid/webstack | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/components/Page.js | weaintplastic/react-sketchapp | /* @flow */
import React from 'react';
import PropTypes from 'prop-types';
const propTypes = {
name: PropTypes.string,
children: PropTypes.node,
};
class Page extends React.Component {
static defaultProps = {
name: 'Page 1',
};
render() {
const { name, children } = this.props;
const _name =
... |
ajax/libs/jquery-mobile/1.3.2/jquery.mobile.js | gereon/cdnjs | /*!
* jQuery Mobile 1.3.2
* Git HEAD hash: 528cf0e96940644ea644096bfeb913ed920ffaef <> Date: Fri Jul 19 2013 22:17:57 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory ... |
packages/material-ui-icons/src/CheckTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z" /></React.Fragment>
, 'CheckTwoTone');
|
lib/MultiColumnList/LoaderRow.js | folio-org/stripes-components | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import css from './MCLRenderer.css';
class LoaderRow extends Component {
static propTypes = {
askAmount: PropTypes.number,
className: PropTypes.string,
columns: PropTypes.arrayOf(PropTypes.string),
columnWidths: PropTypes.o... |
src/parser/monk/brewmaster/modules/features/AgilityValue.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import STAT, { getClassNameColor, getName } from 'parser/shared/modules/features/STAT';
import Events from 'parser/core/Events';
import StatTracker from 'parser/shared/modules/StatTracker';
import SPELLS from 'common/SPELLS';
i... |
src/svg-icons/image/camera.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCamera = (props) => (
<SvgIcon {...props}>
<path d="M9.4 10.5l4.77-8.26C13.47 2.09 12.75 2 12 2c-2.4 0-4.6.85-6.32 2.25l3.66 6.35.06-.1zM21.54 9c-.92-2.92-3.15-5.26-6-6.34L11.88 9h9.66zm.26 1h-7.49l.29.5 4... |
src/browser/app/Root.js | skallet/este | // @flow
import App from './App';
import React from 'react';
import configureFela from '../configureFela';
import { BrowserRouter } from 'react-router';
import { Provider as Fela } from 'react-fela';
import { Provider as Redux } from 'react-redux';
type Props = {
store: Object,
};
// This should be part of Fela.
//... |
ajax/libs/backbone-react-component/0.5.0/backbone-react-component-min.js | cinecove/cdnjs | /**
* Backbone.React.Component
* @version 0.5.0
* @author "Magalhas" José Magalhães <magalhas@gmail.com>
* @license MIT <http://opensource.org/licenses/MIT>
*/
"use strict";!function(a,b){if("function"==typeof define&&define.amd)define(["react","backbone","underscore"],b);else if("undefined"!=typeof module){var c=... |
src/js/components/header/menu.js | kukua/dashboard | import _ from 'underscore'
import React from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router'
import { current as user } from '../../models/User'
import userActions from '../../actions/user'
const mapStateToProps = (state) => {
var user = state.user.login.item
return { user }
}
cons... |
react/features/transcribing/components/TranscribingLabel.native.js | jitsi/jitsi-meet | // @flow
import React, { Component } from 'react';
import { translate } from '../../base/i18n';
import { Label } from '../../base/label';
import { connect } from '../../base/redux';
import { _mapStateToProps, type Props } from './AbstractTranscribingLabel';
/**
* React {@code Component} for displaying a label when... |
react-router-tutorial/lessons/14-whats-next/modules/Repos.js | zerotung/practices-and-notes | import React from 'react'
import NavLink from './NavLink'
export default React.createClass({
contextTypes: {
router: React.PropTypes.object
},
handleSubmit(event) {
event.preventDefault()
const userName = event.target.elements[0].value
const repo = event.target.elements[1].value
const path =... |
.demeteorized/bundle/programs/server/packages/reactive-dict.js | durwasa-chakraborty/navigus | (function () {
/* Imports */
var Meteor = Package.meteor.Meteor;
var _ = Package.underscore._;
var Tracker = Package.tracker.Tracker;
var Deps = Package.tracker.Deps;
var EJSON = Package.ejson.EJSON;
/* Package-scope variables */
var ReactiveDict;
(function () {
/////////////////////////////////////////////////////... |
src/pages/404.js | growcss/growcss-site | import React from 'react';
import Box from 'components/box';
import Layout from 'components/layout';
const NotFound = () => (
<Layout>
<Box>Not found.</Box>
</Layout>
);
export default NotFound;
|
example/App.js | ksincennes/react-native-maps | import React from 'react';
import {
Platform,
View,
StyleSheet,
TouchableOpacity,
ScrollView,
Text,
Switch,
} from 'react-native';
import { PROVIDER_GOOGLE, PROVIDER_DEFAULT } from 'react-native-maps';
import DisplayLatLng from './examples/DisplayLatLng';
import ViewsAsMarkers from './examples/ViewsAsMark... |
pollard/components/AddedSongs.js | freeformpdx/pollard | import React, { Component } from 'react';
import AddedSongsConnector from './AddedSongsConnector';
export default class AddedSongs extends Component {
render() {
return (
<AddedSongsConnector />
);
}
}
|
app/javascript/flavours/glitch/components/status_header.js | Kirishima21/mastodon | // Package imports.
import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
// Mastodon imports.
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import AvatarComposite from './avatar_composite';
import DisplayName from '.... |
client/src/routes/index.js | OpenSecTre/sword | import React from 'react';
import { Route, IndexRoute } from 'react-router';
// NOTE: here we're making use of the `resolve.root` configuration
// option in webpack, which allows us to specify import paths as if
// they were from the root of the ~/src directory. This makes it
// very easy to navigate to files regardle... |
ajax/libs/aui/5.4.1/aui/js/aui-all.js | mikesir87/cdnjs | !function(a,b){function c(a){var b=ob[a]={};return $.each(a.split(bb),function(a,c){b[c]=!0}),b}function d(a,c,d){if(d===b&&1===a.nodeType){var e="data-"+c.replace(qb,"-$1").toLowerCase();if(d=a.getAttribute(e),"string"==typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:+d+""===d?+d:pb.test(d)?$.parseJSON(d)... |
examples/all-possible-containers/src/components/ChildrenAsFunctionComponent.js | gaearon/react-hot-loader | import React from 'react';
import { EDIT_ME } from './_editMe';
class ChildrenAsFunctionComponent extends React.Component {
render() {
return <div>{this.props.children('passed-argument')}</div>;
}
}
export default ChildrenAsFunctionComponent;
|
app/containers/todolist/AddTodo.js | flanamacca/react-learning-kit | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../../actions'
import classNames from 'classnames/bind';
import styles from '../../css/todolist.css';
const cx = classNames.bind(styles);
let AddTodo = ({ dispatch }) => {
let input
return (
<div>
<form onSubmit={e... |
Web/TecsupMobileProject/WebContent/assets/js/jquery.min.js | nathanamorin/TecsupMobileBankingProject | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
packages/netlify-cms-core/src/components/MediaLibrary/MediaLibraryModal.js | netlify/netlify-cms | import React from 'react';
import PropTypes from 'prop-types';
import styled from '@emotion/styled';
import { Map } from 'immutable';
import { isEmpty } from 'lodash';
import { translate } from 'react-polyglot';
import { colors } from 'netlify-cms-ui-default';
import { Modal } from '../UI';
import MediaLibraryTop from... |
client2/src/components/NotFound.js | mehrandabi/graphql-tutorial | import React from 'react';
const NotFound = ({ match }) => {
return (
<div className="NotFound">404 Not Found</div>
);
};
export default NotFound;
|
react-fundamentals/jsx-live-compiler/src/App.js | FMCalisto/react-get-started | import React from 'react';
import './style.css';
class App extends React.Component {
constructor () {
super();
this.state = {
input: '/* add your jsx here */',
output: '',
err: ''
}
}
update (e) {
let code = e.target.value;
try {
this.setState ({
output: wind... |
src/index.js | AnthyG/da_cards-2 | import React from 'react';
import ReactDOM from 'react-dom';
import './index.min.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/index.js | uppermanis/react-course | /* global document */
import React from 'react';
import { render } from 'react-dom';
// BrowserRouter это основной компонент react-router'a который
// дает нашему приложению работать с url
import { BrowserRouter as Router } from 'react-router-dom';
// Provider - это обертка которая позволяет всем компонентам коннекти... |
packages/material-ui-icons/src/WatchLaterTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><defs><path id="a" d="M0 0h24v24H0z" /></defs><path d="M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8zm4.2 12.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z" opacity=".3" /><path d="M12 2C6.5 2 2... |
src/components/Page.js | Minishlink/DailyScrum | // @flow
import React from 'react';
import { View, StyleSheet, ActivityIndicator } from 'react-native';
import appStyle from '../appStyle';
const Page = (props: Props) => (
<View
style={[
styles.page,
{
paddingTop: props.noMargin ? 0 : appStyle.margin,
paddingHorizontal: props.noMargi... |
modules/IndexRedirect.js | zipongo/react-router | import React from 'react'
import warning from 'warning'
import invariant from 'invariant'
import Redirect from './Redirect'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* An <IndexRedirect> is used to redirect from an indexRoute.
*/
const IndexRedirect = React.createClass({
... |
app/containers/ClinicUserSelectPage.js | tidepool-org/chrome-uploader | /*
* == BSD2 LICENSE ==
* Copyright (c) 2014-2016, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This pro... |
src/Notification.js | echaouchna/react-bootstrap-tab | import React, { Component } from 'react';
import { ToastContainer, ToastMessage } from '@allenfang/react-toastr';
const ToastrMessageFactory = React.createFactory(ToastMessage.animation);
class Notification extends Component {
// allow type is success,info,warning,error
notice(type, msg, title) {
this.refs.... |
app/app.js | torvalde/mjolfjell-homepage | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
/* eslint-disable import/no-unresolved, import/extensions */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json';
import 'file?name=[name].... |
ajax/libs/yui/3.17.1/event-custom-base/event-custom-base-debug.js | pm5/cdnjs | /*
YUI 3.17.1 (build 0eb5a52)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.En... |
src/svg-icons/hardware/tv.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTv = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/>
</SvgIcon>
);
HardwareTv = pure(Hardwar... |
src/containers/DevTools.js | Kamahl19/react-slides | 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 defaultIsVisible={false} toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q">
... |
src/server.js | yinaw/travelBook | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
import assets from './a... |
frontend/js/Toast.react.js | initialxy/initialxy-irswitch | // @flow
'use strict';
import type {Element} from 'react';
import React from 'react';
import nullthrows from 'nullthrows'
export type ToastIcon = 'info' | 'warning' | 'error';
type Props = {
className?: string;
icon: ToastIcon;
message: string;
};
export default class Toast extends React.PureComponent {
pr... |
ajax/libs/vkui/4.29.0/cssm/components/DateInput/DateInput.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/extends";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["enableTime","shouldDisableDate","disableFuture","disablePast","value","onChange","calendarPlacement","style","className","doneButtonText","closeOnChange","disablePick... |
src/Rainbow/WIDEBundle/Resources/public/lib/ext-js/docs/output/Ext.grid.column.Number.js | cristi23/WIDE | Ext.data.JsonP.Ext_grid_column_Number({"tagname":"class","html":"<div><pre class=\"hierarchy\"><h4>Alternate names</h4><div class='alternate-class-name'>Ext.grid.NumberColumn</div><h4>Hierarchy</h4><div class='subclass first-child'><a href='#!/api/Ext.Base' rel='Ext.Base' class='docClass'>Ext.Base</a><div class='subcla... |
packages/material-ui-icons/src/TagFaces.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14... |
tests/components/item_spec.js | Kenny806/react-todo | /* global test, expect */
import React from 'react'
import renderer from 'react-test-renderer'
import Item from '../../src/components/item'
test('Item renders test', () => {
const removeItem = id => id
const itemText = 'foo'
const component = renderer.create(
<Item text={itemText} removeItem={removeItem} /... |
public/js/app/queryTools/components/Queries.js | fendy3002/QzQueryTools | import React from 'react';
import lo from 'lodash';
import sa from 'superagent';
import {Treebeard} from 'react-treebeard';
class Elem extends React.Component {
constructor(props) {
super(props);
var {config, request} = this.props;
var cursorRef = null;
var queryToNode = queryToNodeHan... |
packages/core/helper-plugin/lib/src/components/ContentBox/index.js | wistityhq/strapi | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Flex } from '@strapi/design-system/Flex';
import { Stack } from '@strapi/design-system/Stack';
import { Typography } from '@strapi/design-system/Typography';
const IconWrapper = styled(Flex)`
margin-right:... |
src-rx/src/components/JsonConfigComponent/ConfigSendto.js | ioBroker/ioBroker.admin | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import I18n from '@iobroker/adapter-react/i18n';
import Icon from '@iobroker/adapter-react/Components/Icon';
import DialogError from '@iobroker/adapter-r... |
index.js | Annyv2/redux-auth | import React from 'react'
import { render } from 'react-dom'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import App from './containers/App'
import quotesApp from './reducers'
import thunkMiddleware from 'redux-thunk'
import api from './middleware/api'
let createStoreWith... |
app/components/ToggleOption/index.js | seanng/web-server | /**
*
* ToggleOption
*
*/
import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
ToggleOption.propTypes = {
value: React.PropTypes.string.isRequir... |
server/sonar-web/src/main/js/apps/code/components/ComponentsEmpty.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... |
examples/Modal.js | sthawali/react-overlays | import React from 'react';
import Button from 'react-bootstrap/lib/Button';
import Modal from 'react-overlays/Modal';
let rand = ()=> (Math.floor(Math.random() * 20) - 10);
const modalStyle = {
position: 'fixed',
zIndex: 1040,
top: 0, bottom: 0, left: 0, right: 0
};
const backdropStyle = {
...modalStyle,
z... |
packages/react-dom/src/__tests__/ReactDOMServerIntegrationLegacyContextDisabled-test.internal.js | chicoxyzzy/react | /**
* 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.
*
* @emails react-core
*/
'use strict';
const ReactDOMServerIntegrationUtils = require('./utils/ReactDOMServerIntegrationTestUtils... |
public/js/utils/jquery-1.9.0.js | kartik71/smartcars | /*!
* 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( window, undefined ) {
"use strict";... |
frontend/src/components/Link.js | daGrevis/msks | import _ from 'lodash'
import React from 'react'
import { connect } from 'react-redux'
import { push } from '../store/actions/router'
import { withBasePath } from '../routing/links'
const Link = props => (
<a
{..._.omit(props, ['push'])}
href={props.href ? withBasePath(props.href) : '#'}
onClick={ev => ... |
packages/react/src/components/organisms/TeaserListing/index.js | massgov/mayflower | /**
* TeaserListing module.
* @module @massds/mayflower-react/TeaserListing
* @requires module:@massds/mayflower-assets/scss/03-organisms/teaser-listing
*/
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
/**
List wrapper
*/
const TeaserListing = ({ children ... |
ajax/libs/rxjs/2.4.7/rx.lite.js | mathiasrw/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
};
... |
src/components/BadgeCompleted.js | MissingMaps/users | import React from 'react';
export default React.createClass({
getInitialState: function () {
var badgeUrl = '';
var borderUrl = '';
var badge = this.props.badge;
if (!badge) {
badgeUrl = 'url(assets/graphics/badges/blank-graphic.svg)';
borderUrl = 'url(assets/graphics/badges/blank-border.... |
node_modules/react-router/es6/Route.js | dwmorrisdev/ReactWeather | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { component, components } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var func = _React$PropTypes.func;
/**
* A <Route> is use... |
react/liveevent/components/PowerupCount.js | bdaroz/the-blue-alliance | import React from 'react'
import PropTypes from 'prop-types'
const PowerupCount = (props) => {
const {
color,
type,
count,
played,
isCenter,
} = props
const tooltipTitle = type.charAt(0).toUpperCase() + type.slice(1)
return (
<div className={`powerupCountContainer ${isCenter ? 'powerupC... |
dv/fb-hzf/db/學民思潮 Scholarism_files/RfVMHuwxV0e.js | ooof/DataVisualization | /*!CK:1780907846!*//*1415719565,*/
if (self.CavalryLogger) { CavalryLogger.start_js(["nbAkk"]); }
__d("MVideoChat",["MRequest","Stratcom","MURI"],function(a,b,c,d,e,f,g,h,i){var j=function(k){h.listen('video',null,function(event){var l=event.getData();if(l.message_type==1){var m=k.uri,n=new g(new i(m).setAsync(true).... |
src/router-dynamic.js | liufulin90/react-admin | import React from 'react'
import {Router, Route, IndexRoute} from 'dva/router'
import App from './routes/App'
import {isLogin} from './utils'
function redirectToLogin(nextState, replace) {
if (!isLogin()) {
replace({
pathname: '/login',
state: {
nextPathname: nextState.location.pathname,
... |
src/svg-icons/action/exit-to-app.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionExitToApp = (props) => (
<SvgIcon {...props}>
<path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c... |
web/app/admin/sources.js | seanhess/serials | // @flow
import React from 'react'
import {SourceModel, Status} from '../model/source'
import {statusColor} from '../books/book-info'
import {Link} from 'react-router'
import {sortBy} from 'lodash'
import {displayIf} from '../style'
import {Routes} from '../router'
// ok, so we've got some sources, baby
// just rende... |
src/svg-icons/editor/border-style.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderStyle = (props) => (
<SvgIcon {...props}>
<path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/>
</SvgIcon>
);
E... |
client/src/components/generic/smiley.js | commoncode/ontap | import React from 'react';
const valueMap = new Map();
valueMap.set(1, 'happy');
valueMap.set(-1, 'sad');
valueMap.set(0, 'meh');
export default props => (
<div className={`emoji emoji-${valueMap.get(props.value)}`} />
);
|
src/RootCloseWrapper.js | HPate-Riptide/react-overlays | import contains from 'dom-helpers/query/contains';
import React from 'react';
import ReactDOM from 'react-dom';
import addEventListener from './utils/addEventListener';
import ownerDocument from './utils/ownerDocument';
function isLeftClickEvent(event) {
return event.button === 0;
}
function isModifiedEvent(event)... |
packages/react-test-renderer/src/__tests__/ReactShallowRenderer-test.js | terminatorheart/react | /**
* 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.
*
* @emails react-core
* @jest-environment node
*/
'use strict';
import * as PropTypes from 'prop-types';
import * as React from ... |
website/src/PageWithSidebar.js | half-shell/react-navigation | import React, { Component } from 'react';
import Link from "./Link";
import { NavigationActions, addNavigationHelpers } from 'react-navigation';
const LinkableLi = Link.Linkable(props => <li {...props} />);
function getConfig(router, state, action, configName) {
if (action) {
state = router.getStateForAction(... |
public/node_modules/engine.io-client/node_modules/debug/browser.js | gFelicio/agenda |
/**
* This is the web browser implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = require('./debug');
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chro... |
blueocean-material-icons/src/js/components/svg-icons/navigation/first-page.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NavigationFirstPage = (props) => (
<SvgIcon {...props}>
<path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/>
</SvgIcon>
);
NavigationFirstPage.displayName = 'NavigationFirstPage';
NavigationFirstPage.muiName = 'SvgIcon';
e... |
test/specs/modules/Sidebar/Sidebar-test.js | koenvg/Semantic-UI-React | import React from 'react'
import Sidebar from 'src/modules/Sidebar/Sidebar'
import * as common from 'test/specs/commonTests'
describe('Sidebar', () => {
common.isConformant(Sidebar)
common.hasUIClassName(Sidebar)
common.rendersChildren(Sidebar)
common.propKeyOnlyToClassName(Sidebar, 'visible')
common.prop... |
techCurriculum/ui/starter_code/src/components/Card.js | AnxChow/EngineeringEssentials-group | /**
* 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... |
src/PageHeader.js | mmarcant/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
class PageHeader extends React.Component {
render() {
const { className, children, ...props } = this.props;
const [bsProps, elementProps] = splitBsProps(props);
c... |
src/components/Table.js | jillesme/table-football | import React, { Component } from 'react';
import Score from './Score.js';
const img = require('../images/table.png');
export default class Table extends Component {
render() {
return (
<div className="table center">
<Score for="Team-A" />
<img src={img} />
<Score for="Team-B" />
... |
scripts/index.js | geirsagberg/CoGift | import 'babel/polyfill';
import React from 'react';
import App from './App';
import Pace from 'pace';
var page = require('page');
import { onUpdate, userRef, stateRef, structure } from './appState';
import { bindMyList, bindSharedList, bindListOwner } from './bindings';
import './registerToasts';
import $ from 'jquery'... |
client/components/App.js | TobiahRex/reactTravelApp |
import React, { Component } from 'react';
// import $ from 'jquery';
import Splash from './Splash.js';
import Who from './Who.js';
import When from './When.js';
import Where from './Where.js';
import Questionnaire from './Questionnaire.js';
export default class App extends Component {
constructor(props){
super... |
app/components/twitter/Twitter.js | JoeDahle/fic | // core
import React from 'react';
import PropTypes from 'react';
// components
import Loading from '../../components/loading/Loading';
// styles
var style = require('./_index.scss');
// data
var Timeline = require('react-twitter-widgets').Timeline;
var Twitter = React.createClass({
getInitialState: function()... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | jdelight/react-router | import React from 'react';
import { Link } from 'react-router';
export default class AnnouncementsSidebar extends React.Component {
render () {
var announcements = COURSES[this.props.params.courseId].announcements;
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{announcemen... |
ajax/libs/material-ui/5.0.0-beta.1/node/StepConnector/StepConnector.js | cdnjs/cdnjs | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
... |
docker/app/app/src/core/HttpClient.js | JTarball/tetherbox | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import request from 'superagent';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
function getUrl(path) {
if (path.startsWith('http') || canUseDOM) {
return path;
}
return process.env.WEBSITE_HOSTNAME ?
`http://${proces... |
app/components/Stats/TableRow.js | sysrex/sysrex | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class TableRow extends Component {
getValue() {
return this.props.link.length ? (
<a href={`${this.props.link}`}>{this.props.value}</a>
) : this.props.value;
}
render() {
return (
<tr>
<td width="70%">{... |
client/app/components/beacon/NewBeacon.js | BeaconCorp/beacon | import React, { PropTypes } from 'react';
import Router from 'react-router';
import { Input, ButtonInput, Row, Col } from 'react-bootstrap';
import { Notification } from 'react-notification';
import { Form } from 'formsy-react';
import { createBeacon } from '../../utils/helpers';
const NewBeacon = React.createClass({... |
actor-apps/app-web/src/app/components/common/Favicon.react.js | boyley/actor-platform | import React from 'react';
export default class Fav extends React.Component {
static propTypes = {
path: React.PropTypes.string
}
constructor(props) {
super(props);
//// Create link element and it's attributes
//let favicon = document.createElement('link');
//let rel = document.createAttrib... |
imports/plugins/included/search-mongo/server/publications/searchresults.js | Sweetgrassbuffalo/ReactionSweeGrass-v2 | import _ from "lodash";
import { Meteor } from "meteor/meteor";
import { check, Match } from "meteor/check";
import { Reaction, Logger } from "/server/api";
import { ProductSearch, OrderSearch, AccountSearch } from "/lib/collections";
const supportedCollections = ["products", "orders", "accounts"];
function getProduc... |
tools/removeDemo.js | blurbyte/react-quickstart | /* eslint-disable no-console */
import rimraf from 'rimraf';
import fs from 'fs';
import chalk from 'chalk';
const pathsToRemove = [
'./src/actions/*',
'./src/components/*',
'./src/containers/*',
'./src/reducers/*',
'./src/sagas/*',
'./src/fonts',
'./src/styles/globalStyles.js',
'./src/index.ejs',
'.... |
packages/material-ui-icons/src/WrapTextOutlined.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="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" /></g></React.Frag... |
src/svg-icons/content/remove-circle.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentRemoveCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"/>
</SvgIcon>
);
ContentRemoveCircle = pure(ContentRemoveCir... |
examples/with-cxs/pages/index.js | nikvm/next.js | import React from 'react'
import cxs from 'cxs'
export default () => (
<div className={cx.root}>
<h1 className={cx.title}>My page</h1>
</div>
)
const cx = {
root: cxs({
width: 80,
height: 60,
background: 'white',
':hover': {
background: 'black'
}
}),
title: cxs({
marginLef... |
src/routes/register/index.js | monotonique/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Register from './Registe... |
docs/src/app/components/pages/components/DatePicker/Page.js | tan-jerene/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import datePickerReadmeText from './README';
import DatePickerExampleSimple from... |
src/components/Error.js | edauenhauer/google-drive-copy-folder | /**
* Error message container
*/
'use strict';
import React from 'react';
import Alert from './Alert';
import Warning from './icons/Warning';
export default function Error(props) {
return (
<Alert
label="Oh no! Something went wrong"
className="alert--error"
icon={<Warning />}
>
{pr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.