target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
plugins/DepGraph/DepGraph.js | hasErico/react-devtools | /**
* 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.
*
* @ xx flow... |
app/components/location-search.js | sirbrillig/voyageur-js-client | import React from 'react';
class LocationSearch extends React.Component {
componentDidMount() {
if ( ! window ) return;
window.document.body.addEventListener( 'keyup', this.searchKeyListener );
}
componentWillUnmount() {
if ( ! window ) return;
window.document.body.removeEventListener( 'keyup', ... |
src/routes/Home/components/HomeView.js | aburd/issues-tracker | import React from 'react'
import RepoLinks from '../../../components/RepoLinks'
import './HomeView.scss'
export const HomeView = () => (
<div>
<p>レポジトリーを選択してください。</p>
<RepoLinks />
</div>
)
export default HomeView
|
packages/material-ui-icons/src/DesktopMacOutlined.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="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-2 3v1h8v-1l-2-3h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V4h18v10z" /></g></React.Fragment>
, 'De... |
ajax/libs/vkui/4.24.0/cssm/components/ChipsSelect/useChipsSelect.min.js | cdnjs/cdnjs | import _objectSpread from"@babel/runtime/helpers/objectSpread2";import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";import _createForOfIteratorHelper from"@babel/runtime/helpers/createForOfIteratorHelper";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";import _s... |
test/DropdownButtonSpec.js | insionng/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import DropdownButton from '../src/DropdownButton';
import MenuItem from '../src/MenuItem';
import DropdownMenu from '../src/DropdownMenu';
import Button from '../src/Button';
describe('DropdownButton', function () {
let instance;
a... |
src/svg-icons/action/android.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAndroid = (props) => (
<SvgIcon {...props}>
<path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8... |
ajax/libs/backbone-react-component/0.7.2/backbone-react-component.js | chrillep/cdnjs | // Backbone React Component
// ========================
//
// Backbone.React.Component v0.7.2
//
// (c) 2014 "Magalhas" José Magalhães <magalhas@gmail.com>
// Backbone.React.Component can be freely distributed under the MIT license.
//
//
// `Backbone.React.Component` is a mixin that glues [Backbone](http:/... |
react_native_frontend/src/app.js | CUNYTech/BudgetApp | import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import * as firebase from 'firebase';
import { Drawer } from 'native-base';
import { AppSideMenu, AppRouter } from './components';
const firebaseConfig = require('../firebaseconfig.json');
const firebaseApp = firebase.initializ... |
app/javascript/mastodon/features/ui/util/react_router_helpers.js | mosaxiv/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Route } from 'react-router-dom';
import ColumnLoading from '../components/column_loading';
import BundleColumnError from '../components/bundle_column_error';
import BundleContainer from '../containers/bundle_container';
// Small wrapper t... |
src/svg-icons/social/mood-bad.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialMoodBad = (props) => (
<SvgIcon {...props}>
<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.... |
src/components/location.js | akabekobeko/akabeko.me | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
const Location = ({ prev, next }) => {
if (!(prev || next)) {
return null
}
return (
<nav className="location">
{prev ? (
<div className="prev to">
<i className="icon-chevron-thin-left" />... |
packages/react/src/components/Select/Select.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import {
ChevronDown16,
WarningFilled... |
__tests__/index.android.js | TalentedEurope/te-app | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
ajax/libs/onsen/1.3.19/js/onsenui.min.js | dada0423/cdnjs | /*! onsenui - v1.3.17 - 2016-06-29 */
!function(){function getAttributes(element){return Node_get_attributes.call(element)}function setAttribute(element,attribute,value){try{Element_setAttribute.call(element,attribute,value)}catch(e){}}function removeAttribute(element,attribute){Element_removeAttribute.call(element,att... |
packages/mui-icons-material/lib/esm/WifiCallingRounded.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M22 4.95C21.79 4.78 19.67 3 16.5 3c-3.18 0-5.29 1.78-5.5 1.95L16.5 12 22 4.95z"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "m19.2 15.28-2.54-.29c-.61-.07-1.2... |
app/components/AllVsAllTable/index.js | FilipPyrek/school-project-match-generator | // @flow
import React from 'react';
import type { Match, Result } from '../../lib/competitionGenerator/allVsAllGenerator';
import { muiTheme } from '../../containers/Theme';
type AllVsAllTableType = {
generatorResult: Result
};
export default function AllVsAllTable(props: AllVsAllTableType) {
const { generatorRes... |
ajax/libs/onsen/2.2.0/js/angular-onsenui.js | dakshshah96/cdnjs | /*! angular-onsenui.js for onsenui - v2.2.0 - 2017-03-14 */
"use strict";
/* Simple JavaScript Inheritance for ES 5.1
* based on http://ejohn.org/blog/simple-javascript-inheritance/
* (inspired by base2 and Prototype)
* MIT Licensed.
*/
(function () {
"use strict";
var fnTest = /xyz/.test(function () {
x... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-12/friends/Friends.entry.js | Brandon-J-Campbell/codemash | import React from 'react';
import myFriends from '../data/friends';
import Friends from './Friends';
export default function FriendsEntry() {
return <Friends friends={myFriends} />
}
|
examples/with-apollo/components/PostUpvoter.js | callumlocke/next.js | import React from 'react'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
function PostUpvoter ({ upvote, votes, id }) {
return (
<button onClick={() => upvote(id, votes + 1)}>
{votes}
<style jsx>{`
button {
background-color: transparent;
border: 1px s... |
test/components/ComicList.spec.js | rickychien/comiz | import expect from 'expect'
import { shallow } from 'enzyme'
import React from 'react'
import { ComicList } from '../../src/components/ComicList'
describe('<ComicList />', () => {
let props
beforeEach(() => {
props = {
comics: undefined,
isFetching: undefined,
fetchError: undefined,
on... |
node_modules/redux-devtools-log-monitor/src/LogMonitorButtonBar.js | jotamaggi/react-calendar-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import shouldPureComponentUpdate from 'react-pure-render/function';
import { ActionCreators } from 'redux-devtools';
import LogMonitorButton from './LogMonitorButton';
const { reset, rollback, commit, sweep } = ActionCreators;
const style =... |
ajax/libs/forerunnerdb/1.3.763/fdb-core+views.js | dc-js/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... |
app/containers/DevTools.js | thomasantony/BudgetFirst | 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"
defaultIsVisible={fal... |
src/ControlLabel/test/ControlLabelStylesSpec.js | suitejs/suite | import React from 'react';
import ReactDOM from 'react-dom';
import ControlLabel from '../index';
import { createTestContainer, getDOMNode, getStyle } from '@test/testUtils';
import '../styles/index';
describe('ControlLabel styles', () => {
it('Should render the correct styles', () => {
const instanceRef = Reac... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectSpread.js | TryKickoff/create-kickoff-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load(baseUser) {
return [
{ id: 1, name: '... |
SQL/client/src/components/smart/Posts/List.js | thebillkidy/MERGE-Stack | import React from 'react'
import Link from 'next/link'
import { graphql, gql } from 'react-apollo'
import Post from './Post'
import Container from '../../dumb/Container'
import Header from '../Header'
class List extends React.Component {
static propTypes = {
data: React.PropTypes.object,
}
render() {
i... |
docs/src/app/components/pages/components/Badge/ExampleSimple.js | owencm/material-ui | import React from 'react';
import Badge from 'material-ui/Badge';
import IconButton from 'material-ui/IconButton';
import NotificationsIcon from 'material-ui/svg-icons/social/notifications';
const BadgeExampleSimple = () => (
<div>
<Badge
badgeContent={4}
primary={true}
>
<NotificationsIcon... |
local-cli/link/__tests__/android/applyPatch.spec.js | skevy/react-native | /**
* Copyright (c) 2013-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 stric... |
ajax/libs/yui/3.2.0/loader/loader-base-debug.js | noraesae/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
// CONFIG = Y.config,
BUILD = '/build/',
ROOT = VERSI... |
pages/customization/themes.js | cherniavskii/material-ui | import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from 'docs/src/pages/customization/themes/themes.md';
function Page() {
return (
<MarkdownDocs
markdown={markdown}
demos={{
... |
ajax/libs/backbone.js/1.0.0/backbone.js | wil93/cdnjs | // Backbone.js 1.0.0
// (c) 2010-2013 Jeremy Ashkenas, DocumentCloud Inc.
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(){
// Initial Setup
// -------------
// Save a reference to the global object (`wi... |
index.android.js | ontappl/rn | import React from 'react';
import {AppRegistry,} from 'react-native';
import {Provider,} from 'react-redux';
import * as storage from 'redux-storage';
import createStorageEngine from 'redux-storage-engine-reactnativeasyncstorage';
import {initCrashlytics,} from './src/analytics';
import {configureStore,} from './src/c... |
wisewit_front_end/node_modules/react-router/modules/IndexRedirect.js | emineKoc/WiseWit | import React from 'react'
import warning from './routerWarning'
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.createCla... |
frontend/src/components/Filters.js | OwenRay/Remote-MediaServer | import React, { Component } from 'react';
/* global $ */
import { Button, Col, Input, Row, SideNav, Autocomplete } from 'react-materialize';
import { Handle, Range } from 'rc-slider';
import 'rc-slider/assets/index.css';
let genres = [];
class ButtonMenu extends Component {
constructor() {
super();
if (!gen... |
src/components/Header/Header.js | jifeon/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../../utils/Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header {
render() {
... |
app/src/components/FeedListItem.js | GetStream/Winds | import React from 'react';
import PropTypes from 'prop-types';
import { Img } from 'react-image';
import { Link } from 'react-router-dom';
import TimeAgo from './TimeAgo';
import getPlaceholderImageURL from '../util/getPlaceholderImageURL';
import { ReactComponent as NoteIcon } from '../images/icons/note.svg';
import... |
donate/src/app.js | Interaktivtechnology/sfdemo-node | import ReactDOM from 'react-dom';
import React from 'react';
import { Provider } from 'react-redux';
import { persistStore } from 'redux-persist';
import App from './components/app';
import configureStore from './configureStore';
import './app.css';
import './static/style.scss';
const store = configureStore({});
persi... |
files/yasqe/2.1.0/yasqe.bundled.min.js | jonataswalker/jsdelivr | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,r,i)... |
packages/material-ui-icons/src/Gavel.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><defs><path id="a" d="M0 0h24v24H0V0z" /></defs><path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2... |
src/index.js | chasenlehara/react-chat | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
client/src/components/courses/CourseSave.js | yegor-sytnyk/contoso-express | import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {Modal, Button} from 'react-bootstrap';
import _ from 'lodash';
import helper from '../../helpers/uiHelper';
import * as courseActions from '../../actions/courseActions';
import {departmentSelectListItem} fr... |
src/svg-icons/navigation/last-page.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationLastPage = (props) => (
<SvgIcon {...props}>
<path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/>
</SvgIcon>
);
NavigationLastPage = pure(NavigationLastPage);
NavigationLastPage.di... |
src/components/Login/SignUpComponent.js | bibleexchange/be-front-new | import React from 'react';
import {
createFragmentContainer,
graphql,
} from 'react-relay/compat';
import './Login.scss';
class SignUpComponent extends React.Component {
render() {
let messageStyle = { color: 'red', height: '20px' };
if (this.props.signup.message === 'passwords match :)') { messageStyle... |
src/components/Table/TableHeader/TableHeader.stories.js | auth0-extensions/auth0-extension-ui | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import TableHeader from './';
storiesOf('TableHeader', module)
.add('default view', () => (
<TableHeader>
This is the TableHeader children.
</TableHeader>
));
|
tests/components/Counter/Counter.spec.js | thanhiro/tuha-ui-tpl | import React from 'react'
import { bindActionCreators } from 'redux'
import { Counter } from 'components/Counter/Counter'
import { shallow } from 'enzyme'
describe('(Component) Counter', () => {
let _props, _spies, _wrapper
beforeEach(() => {
_spies = {}
_props = {
counter: 5,
...bindActionCre... |
src/components/Score.js | calesce/tab-editor | import React, { PureComponent } from 'react';
import { connect } from 'react-redux';
import { StyleSheet, css } from 'aphrodite';
import { makeMapStateToProps } from '../util/selectors';
import { makeScoreSelector } from '../util/selectors/layout';
import { getScoreSectionWidth, calcScoreHeight } from '../util/scoreLa... |
packages/strapi-admin/files/public/app/components/LeftMenuFooter/index.js | evian42/starpies | /**
*
* LeftMenuFooter
*
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import styles from './styles.scss';
import LocaleToggle from 'containers/LocaleToggle';
import messages from './messages.json';
import { define } from '../../i18n';
define(messages);
class LeftMenuFooter extends Reac... |
app/javascript/mastodon/features/follow_requests/index.js | ikuradon/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... |
app/index.js | adamsome/electron-nav | import React from 'react'
import { render } from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import Root from './containers/Root'
import { configureStore, history } from './store/configureStore'
import './app.global.scss'
// const initialTestState = {
// }
const store = configureStore()
// TODO: Act... |
src/components/ErrorOverlay.js | GrooshBene/shellscripts | import './style/ErrorOverlay.scss';
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { errorDismiss } from '../actions/load.js';
import Dialog from './Dialog.js';
import Alert from './Alert.js';
class ErrorOverlay extends Component {
handleDismiss() {
this.prop... |
actor-apps/app-web/src/app/components/modals/invite-user/InviteByLink.react.js | cnbin/actor-platform | import React from 'react';
import Modal from 'react-modal';
import addons from 'react/addons';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton, Snackbar } from 'material-ui';
import ReactZeroClipboard from 'react-zeroclipboard';
import { KeyCo... |
frontend/src/components/account/sign-up/SignUp.js | googleinterns/step-2020-recipe-finder | // Copyright 2020 Google LLC
// 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
// https://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writin... |
lib/Container.js | hhhonzik/react-createjs | import React from 'react';
export default class Container extends React.Component{
static isEaselJSComponent = true;
draw () {
console.log('draw element');
}
render() {
throw new Error('Do not render CreateJS component outside of <Stage>');
}
}
|
redux-weather-forecast/src/containers/search-bar.js | andreassiegel/react-redux | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchWeather } from '../actions/index';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: '' };
this.onInputChange = this.onIn... |
ajax/libs/yui/3.7.0/event-focus/event-focus.js | Eruant/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = YLang.isFunction(
... |
Week02-RestBasics-old/client/src/index.js | bmeansjd/ISIT320_means2017 | 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();
|
src/App.js | spectralliaisons/multimap | import React from 'react';
import Map from './Map';
function App() {
return (
<div>
<Map />
</div>
);
}
export default App;
|
node_modules/react-bootstrap/es/FormGroup.js | NathanBWaters/jb_club | 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/components/MessageView.js | saas-plat/saas-plat-native | import React from 'react';
import {
View,
Text,
Platform,
StatusBar,
TouchableOpacity
} from 'react-native';
import {autobind} from 'core-decorators';
import {connectStyle} from '../core/Theme';
import {translate} from '../core/I18n';
import { tx } from '../utils/internal';
// 消息提示
@translate('core.MessageVi... |
app/javascript/mastodon/features/getting_started/index.js | mosaxiv/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnLink from '../ui/components/column_link';
import ColumnSubheading from '../ui/components/column_subheading';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import Prop... |
public/bower_components/backbone.marionette/public/javascripts/jquery.js | shamelessly/website | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
ajax/libs/yui/3.7.0/scrollview-base/scrollview-base-coverage.js | nolsherry/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
src/common/Socket/Trigger.js | Syncano/syncano-dashboard | import React from 'react';
import { colors as Colors } from 'material-ui/styles/';
import SocketWrapper from './SocketWrapper';
export default React.createClass({
displayName: 'TriggerSocket',
getDefaultProps() {
return {
tooltip: 'Create a Trigger Socket'
};
},
getStyles() {
return {
... |
app/jsx/canvas_cropper/cropperMaker.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - 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/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectSpread.js | ro-savage/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load(baseUser) {
return [
{ id: 1, name: '... |
app/javascript/mastodon/components/poll.js | yi0713/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import Motion fr... |
src/js/components/Fields/AddTunabilityField.js | jaedb/Iris | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import LinksSentence from '../LinksSentence';
import * as coreActions from '../../services/core/actions';
import * as uiActions from '../../services/ui/actions';
import * as spotifyActions from '../../ser... |
src/containers/login.js | jeetiss/client | import React from 'react'
import LoginForm from '../components/loginform'
import { connect } from 'react-redux'
function LoginView ({ dispatch }) {
return <LoginForm
onSub={(name, pass) => dispatch(
{ type: 'ws/auth', name, pass }
)}
/>
}
const Login = connect()(LoginView)
export default Login
|
app/imports/ui/client/layouts/Footer/index.js | valcol/ScrumNinja | import React from 'react';
export const Footer = () =>
<footer className="main-footer">
<div className="pull-right hidden-xs">
Made with <span style={{ color: 'red' }}>♥</span>
</div>
Copyright © 2016 <a href="#">ScrumNinja</a>. All rights reserved.
</footer>;
export default Footer;
|
src/index.js | marr/tilt-world | import React from 'react';
import ReactDOM from 'react-dom';
import { App } from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/routes/catalog/index.js | Tori1810/Task3 |
import React from 'react';
import Catalog from './Catalog';
export default {
path: '/catalog',
action() {
return {
title: 'Каталог',
component: <Catalog />,
};
},
}; |
src/sites/constellations.js | cosmowiki/cosmowiki | import React from 'react';
import ConstellationsComponent from '../components/constellations';
export default class Constellations {
static componentWithData(constellations) {
return <ConstellationsComponent constellations={constellations} />;
}
static fromRawData(rawData) {
return rawData.map(raw => C... |
definitions/npm/react-redux_v7.x.x/flow_v0.142.x-/test_connectState.js | splodingsocks/FlowTyped | // @flow
import React from "react";
import { connect } from "react-redux";
export let e: Array<any> = []
function sameStateIsOK() {
type Props = {...};
class Com extends React.Component<Props> {}
type State = {|
a: number
|};
const mapStateToProps = (state: State) => {
return {}
};
const Conne... |
src-rx/src/components/JsonConfigComponent/ConfigCRON.js | ioBroker/ioBroker.admin | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import InputLabel from '@material-ui/core/InputLabel';
import FormControl from '@material-ui/core/FormControl';
import { Button, TextField } from '@material-ui/core';
import DialogCron from '@iobroker... |
ajax/libs/cyclejs-core/0.21.1/cycle.js | brix/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Cycle = f()}})... |
ajax/libs/forerunnerdb/1.3.475/fdb-core+views.min.js | nolsherry/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/containers/Authentication/RegisterSkill.js | JamesJin038801/CampID | import React, { Component } from 'react';
import {
Text,
TextInput,
View,
Platform,
TouchableOpacity,
Image,
Alert,
} from 'react-native';
import { connect } from 'react-redux';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import Icon from 'react-native-vector-icons/... |
ajax/libs/yui/3.4.0pr2/event/event.js | sashberd/cdnjs | (function () {
var GLOBAL_ENV = YUI.Env;
if (!GLOBAL_ENV._ready) {
GLOBAL_ENV._ready = function() {
GLOBAL_ENV.DOMReady = true;
GLOBAL_ENV.remove(YUI.config.doc, 'DOMContentLoaded', GLOBAL_ENV._ready);
};
GLOBAL_ENV.add(YUI.config.doc, 'DOMContentLoaded', GLOBAL_ENV._ready);
}
})();
YUI.ad... |
src/components/modals/settings/OtherContractModal.js | Pavel-DV/ChronoMint | import React, {Component} from 'react'
import {connect} from 'react-redux'
import IconButton from 'material-ui/IconButton'
import NavigationClose from 'material-ui/svg-icons/navigation/close'
import {Dialog, FlatButton, RaisedButton} from 'material-ui'
import OtherContractForm from '../../../components/forms/settings/O... |
examples/todos-with-undo/index.js | mjasinski5/redux | import React from 'react';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import App from './containers/App';
import todoApp from './reducers';
const store = createStore(todoApp);
const rootElement = document.getElementById('root');
React.render(
// The child must be wrapped in a funct... |
vendor/jquery/jquery.js | michaelwartmann/michaelwartmann.github.io | /*!
* jQuery JavaScript Library v1.12.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-05-20T17:17Z
*/
(function( global, factory ) {
if ( typeof module =... |
packages/material-ui-lab/src/internal/svg-icons/createSvgIcon.js | kybarg/material-ui | import React from 'react';
import SvgIcon from '@material-ui/core/SvgIcon';
export default function createSvgIcon(path, displayName) {
const Component = React.memo(
React.forwardRef((props, ref) => (
<SvgIcon data-mui-test={`${displayName}Icon`} ref={ref} {...props}>
{path}
</SvgIcon>
)),... |
test/components/LegacyAccountLoginForm.spec.js | CPatchane/cozy-collect | /* eslint-env jest */
import React from 'react'
import { shallow } from 'enzyme'
import { Button } from 'cozy-ui/react/Button'
import { tMock } from '../jestLib/I18n'
import { AccountLoginForm } from '../../src/components/LegacyAccountLoginForm'
describe('LegacyAccountLoginForm component', () => {
beforeEach(() =... |
ajax/libs/reactive-elements/0.5.9/reactive-elements.min.js | kennynaoh/cdnjs | !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.ReactiveElements=e()}}(function(){var define,module,exports;return function e(t,r,n)... |
src/app/views/oils.js | nazar/soapee-ui | import React from 'react';
import DocMeta from 'react-doc-meta';
import GridOil from 'components/gridOil';
export default React.createClass( {
render() {
document.title = 'Soapee - Oils';
return (
<div id="oils">
<DocMeta tags={ this.tags() } />
<GridO... |
src/components/nav/index.js | Adutchguy/portfolio | import './_nav.scss';
import React, { Component } from 'react';
import {HashRouter as Router, Link} from 'react-router-dom';
import Icon from '../icon';
class Nav extends React.Component {
constructor(props){
super(props);
this.state = {
};
}
render() {
return(
<div className='nav-menu'... |
src/components/IntroScreen/IntroBubbles.js | vogelino/design-timeline | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import './IntroBubbles.css';
const getRandomInt = (min, max) =>
Math.floor(Math.random() * ((max - min) + 1)) + min;
class IntroBubbles extends Component {
shouldComponentUpdate() {
return false;
... |
ajax/libs/6to5/2.13.0/browser.js | iamJoeTaylor/cdnjs | !function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.to5=n()}}(function(){var define,module,exports;return... |
node_modules/react-router/lib/IndexLink.js | manojadd/bob-demo | 'use strict';
exports.__esModule = true;
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 _react = requi... |
ajax/libs/react-virtualized/7.18.1/react-virtualized.min.js | tholu/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("React.addons.shallowCompare"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","React.addons.shallowCompare","ReactDOM"],t):"object"==typeof exports?exports.ReactVirtualized=t(require("R... |
src/index.js | dragfire/popUpHOC | import React from 'react';
import PropTypes from 'prop-types';
const propTypes = {
onItemSelect: PropTypes.func,
};
const defaultProps = {
onItemSelect: () => null,
};
const getDisplayName = WrappedComponent =>
WrappedComponent.displayName || WrappedComponent.name || 'Component';
const popUpHOC = (TriggerComp... |
src/components/TouchableWithoutFeedback.js | lelandrichardson/react-native-mock | /**
* https://github.com/facebook/react-native/blob/master/Libraries/Components/Touchable/TouchableWithoutFeedback.js
*/
import React from 'react';
import EdgeInsetsPropType from '../propTypes/EdgeInsetsPropType';
import View from './View';
const TouchableWithoutFeedback = React.createClass({
propTypes: {
acce... |
examples/components/Input.js | christianalfoni/formsy-react | import React from 'react';
import Formsy from 'formsy-react';
const MyInput = React.createClass({
// Add the Formsy Mixin
mixins: [Formsy.Mixin],
// setValue() will set the value of the component, which in
// turn will validate it and the rest of the form
changeValue(event) {
this.setValue(event.curren... |
examples/exoskeleton/node_modules/exoskeleton/exoskeleton.js | nitish1125/todomvc | /*!
* Exoskeleton.js 0.7.0
* (c) 2013 Paul Miller <http://paulmillr.com>
* Based on Backbone.js
* (c) 2010-2013 Jeremy Ashkenas, DocumentCloud
* Exoskeleton may be freely distributed under the MIT license.
* For all details and documentation: <http://exosjs.com>
*/
(function(root, factory) {
// Set up Backbon... |
src/propTypes/StyleSheetPropType.js | omeid/react-native-mock | /**
* https://github.com/facebook/react-native/blob/master/Libraries/StyleSheet/StyleSheetPropType.js
*/
import React from 'react';
import flattenStyle from './flattenStyle';
const { PropTypes } = React;
function StyleSheetPropType(shape) {
var shapePropType = PropTypes.shape(shape);
return function (props, pro... |
modules/gui/src/app/home/body/process/recipe/mosaic/panels/aoi/eeTableSection.js | openforis/sepal | import {Form} from 'widget/form/form'
import {Layout} from 'widget/layout'
import {PreviewMap} from './previewMap'
import {RecipeActions} from '../../mosaicRecipe'
import {Subject, map, takeUntil} from 'rxjs'
import {compose} from 'compose'
import {msg} from 'translate'
import {selectFrom} from 'stateUtils'
import {wit... |
httpdocs/theme/react/hooks-app/opendesktop-home/components/ProductsMyGitContainer.js | KDE/ocs-webserver | import React, { Component } from 'react';
import ProductGit from './ProductGit';
class ProductsMyGitContainer extends React.Component {
constructor(props){
super(props);
this.gitUrl = `/json/gitlab?username=${props.user.username}`;
this.gitUserUrl = '/json/gitlabfetchuser?username=';
this.state = {ite... |
lib/ui/src/settings/about.stories.js | storybooks/storybook | import React from 'react';
import { storiesOf } from '@storybook/react';
import { actions as createActions } from '@storybook/addon-actions';
import { AboutScreen } from './about';
const info = {
plain: `- upgrade webpack & babel to latest\n- new addParameters and third argument to .add to pass data to addons\n- ad... |
ajax/libs/material-ui/5.0.0-alpha.37/node/internal/svg-icons/StarBorder.min.js | cdnjs/cdnjs | "use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var React=_interopRequireWildcard(require("react")),_createSvgIcon=_interopRequireDefault(require("../../utils/createSvgIcon")),_jsxRuntime=requir... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.