path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
node_modules/react-bootstrap/es/Label.js | mohammed52/door-quote-automator | import _Object$values from 'babel-runtime/core-js/object/values';
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-... |
src/component/LoadingIndicator/index.js | dlennox24/ricro-app-template | import CircularProgress from '@material-ui/core/CircularProgress';
import withStyles from '@material-ui/core/styles/withStyles';
import PropTypes from 'prop-types';
import React from 'react';
import defaultProfileSvg from '../../assets/img/default-profile.svg';
const filter = 'drop-shadow( 5px 5px 4px rgba(0, 0, 0, .3... |
packages/react/src/inputs/HelperText.js | wq/wq.app | import React from 'react';
import { useFormikContext, getIn } from 'formik';
import PropTypes from 'prop-types';
export default function HelperText({ name, hint }) {
const { errors, touched } = useFormikContext(),
error = getIn(errors, name),
showError = !!error && !!getIn(touched, name);
if (... |
client/node_modules/uu5g03/doc/main/client/src/bricks/header.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import UU5 from 'uu5';
import './header.css';
export default React.createClass({
//@@viewOn:mixins
mixins: [
UU5.Common.BaseMixin,
UU5.Layout.ContainerCollectionMixin
],
//@@viewOff:mixins
//@@viewOn:statics
statics: {
tagName: 'UU5.Doc.Bricks.Header',
classNam... |
ajax/libs/react/0.13.0-alpha.1/react.js | jonobr1/cdnjs | /**
* React v0.13.0-alpha.1
*/
!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... |
src/components/About.js | sivael/simpleBlogThingie | import React from 'react'
export default class Footer extends React.Component {
render() {
return(
<div className="jumbotron">
<h1>About us</h1>
<p className="lead">We're awesome</p>
</div>
);
}
}
|
src/commons/DataDisplayer.js | zenria/react-redux-sandbox | import React from 'react';
import classNames from 'classnames';
const DataDisplayer = ({data, loading})=> {
var classes = classNames({
"data": true,
"loading": loading,
"data-notloaded": !data
})
return <div className={classes}>{data?data:"data not loaded"}</div>
}
export default Da... |
modules/mod_dziresponsivebannerslider/js/jquery-1.7.min.js | knigherrant/decopatio | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
src/components/DataTable/DataTable.js | jzhang300/carbon-components-react | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import classNames from 'classnames';
import Button from '../Button';
import Icon from '../Icon';
import Search from '../Search';
const toggleSortDirection = direction => {
if (direction === 'DESC') {
return 'ASC';
}
return 'DESC';... |
tests/Rules-isEmail-spec.js | bitgaming/formsy-react | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import { InputFactory } from './utils/TestInput';
const TestInput = InputFactory({
render() {
return <input value={this.getValue()} readOnly/>;
}
});
const TestForm = React.createClass({
render() {
re... |
app/static/src/diagnostic/NewTestForm.js | SnowBeaver/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import Button from 'react-bootstrap/lib/Button';
import DateTimeField from 'react-bootstrap-datetimepicker/lib/DateTim... |
libs/jquery/jquery.js | webflint/gridster.js | /*!
* 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.
... |
example/src/screens/Actions.js | junedomingo/react-native-navigation | import React from 'react';
import { StyleSheet, ScrollView } from 'react-native';
import Row from '../components/Row';
class Actions extends React.Component {
constructor(props) {
super(props);
this._fab = false;
this._rightButton = null;
this._contextualMenu = false;
this._toggleTabs = 'shown'... |
aNowRedux/index.ios.js | archtechfl/reactNativeReduxTest | import React, { Component } from 'react';
import { AppRegistry, Text, StyleSheet, View } from 'react-native';
// Redux
import C from './constants';
import allReducers from './store/reducers'
import { createStore } from 'redux'
import { Provider, connect } from 'react-redux'
// Component
import GeoLocation from './com... |
apps/search/bible/ui/src/components/Verse.js | lucifurtun/myquotes | import React from 'react'
import { stores } from '../redux'
import { connect } from 'react-redux'
const html = (text) => ({ __html: text })
const handleOnClick = (event, item, dispatch) => {
event.preventDefault()
dispatch({ type: 'SET_SELECTED_VERSE', payload: item.identifier })
}
const handleOnContextMenu ... |
dva-todo/src/components/Add.js | wefine/reactjs-guide | import { Button, Icon, Input } from 'antd';
import PropTypes from 'prop-types';
import React from 'react';
const Add = ({ onAdd, onChange, input }) => {
return (
<div>
<Input
placeholder="Enter your userName"
prefix={<Icon type="user" />}
value={input}
onChange={onChange}
... |
src/components/RentSelect.js | vdv73rus/kipr-widget | import React, { Component } from 'react';
export default class RentSelect extends Component {
constructor(props) {
super(props)
this.handleChange = this.handleChange.bind(this);
}
handleChange(e) {
this.props.onChange(this.refs.rentType.getDOMNode().value);
}
render() {
return (
<di... |
app/client/src/components/Layout/components/HeaderContainer/HeaderContainer.js | uprisecampaigns/uprise-app | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { attemptLogout } from 'actions/AuthActions';
import { graphql, compose } from 'react-apollo';
import MeQuery from 'schemas/queries/MeQuery.graphql';
import Header from './components/Header';
im... |
src/components/course/CourseForm.js | anega/react-learning | import React from 'react';
import TextInput from '../common/TextInput';
import SelectInput from '../common/SelectInput';
const CourseForm = ({course, allAuthors, onSave, onChange, loading, errors}) => {
return (
<form>
<h1>Manage Course</h1>
<TextInput
name="title"
... |
ajax/libs/forerunnerdb/1.3.600/fdb-core.js | wout/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... |
packages/material-ui-icons/src/UndoRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L3.71 8.71C3.08 8.08 2 8.52 2 9.41V15c0 .55.45 1 1 1h5.59c.89 0 1.34-1.08.71-1.71l-1.91-1.91c1.39-1.16 3.16-1.88 5.12-1.88 3.16 0 5.89 1.84 7.19 4.5.27.56.91.84 1.5.64.7... |
ajax/libs/analytics.js/2.8.2/analytics.js | dbeckwith/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){
/**
* Global
... |
examples/progressive-render/pages/index.js | callumlocke/next.js | import React from 'react'
import NoSSR from 'react-no-ssr'
import Loading from '../components/Loading'
export default () => (
<main>
<section>
<h1>
This section is server-side rendered.
</h1>
</section>
<NoSSR onSSR={<Loading />}>
<section>
<h2>
This section i... |
app/javascript/mastodon/components/gifv.js | lindwurm/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class GIFV extends React.PureComponent {
static propTypes = {
src: PropTypes.string.isRequired,
alt: PropTypes.string,
width: PropTypes.number,
height: PropTypes.number,
onClick: PropTypes.func,
};
state = {
l... |
src/news/Story.js | kriasoft/react-static-boilerplate | /**
* React Starter Kit for Firebase
* https://github.com/kriasoft/react-firebase-starter
* Copyright (c) 2015-present Kriasoft | MIT License
*/
import React from 'react';
import Button from '@material-ui/core/Button';
import Typography from '@material-ui/core/Typography';
import { makeStyles } from '@material-ui/... |
lib/pages/actions.js | Kegsay/github-pull-review | import triggers from "../logic/triggers";
import {PullRequestTrigger, FileDiffsTrigger, LineCommentsTrigger} from "../logic/triggers";
var TriggerMixin = require("../logic/triggers").TriggerMixin([
PullRequestTrigger, FileDiffsTrigger, LineCommentsTrigger
]);
var React = require("react");
var CommentBox = require(... |
entry_types/scrolled/package/spec/frontend/inlineEditing/EditableInlineText-spec.js | codevise/pageflow | import React from 'react';
import {EditableInlineText} from 'frontend';
import {loadInlineEditingComponents} from 'frontend/inlineEditing';
import {render} from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect'
describe('EditableInlineText', () => {
beforeAll(loadInlineEditingComponents);
... |
src/modules/Repos.js | hong1012/FreePay | import React from 'react'
import {Button} from 'antd'
import {Row, Col} from 'antd'
import {Input, Table, DatePicker} from 'antd'
import moment from 'moment';
import Api from '../utils/Api'
import './About.less';
const dateFormat = 'YYYY-MM-DD';
const columns = [
{
title: 'eid ',
dataIndex: 'ei... |
client/screens/Users/UserSignUpSendEmail/index.js | brewsoftware/hang-ten |
import React from 'react';
import UsersNavBar from '../components/UsersNavBar';
import FormContainer from './FormContainer.js';
export default () => (
<div>
<UsersNavBar label="Send Sign Up Email" screen="user/signupsendemail" />
<FormContainer />
</div>
);
|
ajax/libs/yui/3.11.0/event-custom-base/event-custom-base.js | gogoleva/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
ajax/libs/knockout/3.2.0/knockout-debug.js | jamesarosen/cdnjs | /*!
* Knockout JavaScript library v3.2.0
* (c) Steven Sanderson - http://knockoutjs.com/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
(function(){
var DEBUG=true;
(function(undefined){
// (0, eval)('this') is a robust way of getting a reference to the global object
// For details,... |
ajax/libs/styled-components/1.1.3/styled-components.min.js | BenjaminVanRyseghem/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(e.styled=e.styled||{},e.React)}(this,function(e,t){"use strict";function n(e){return e.replace(M,"-$1").toLowerCase()}function r(e){return F(e).replace(N,... |
ajax/libs/react-cookie/0.2.4/react-cookie.min.js | cgvarela/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/containers/app/settings/subject/assets.js | w280561543/financial | import React from 'react';
import Table from 'antd/lib/table';
import service from './service';
import tableLayout from './table_layout';
class Assets extends React.Component {
state = {
data: []
}
getTabs() {
let _this = this;
service.getTabs(1).then((result) => {
_this.setState({
d... |
files/graphiql/0.4.3/graphiql.js | khorep/jsdelivr | (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.GraphiQL = f()... |
docs/src/app/components/pages/components/IconButton/ExampleTooltip.js | ArcanisCz/material-ui | import React from 'react';
import IconButton from 'material-ui/IconButton';
const IconButtonExampleTooltip = () => (
<div>
<IconButton
iconClassName="muidocs-icon-custom-github" tooltip="bottom-right"
tooltipPosition="bottom-right"
/>
<IconButton
iconClassName="muidocs-icon-custom-githu... |
src/routes.js | jhabdas/lumpenradio-com | import React from 'react';
import http from './core/HttpClient';
import { Router } from 'react-routing';
import ContentPage from './components/ContentPage';
import NotFoundPage from './components/NotFoundPage';
import ErrorPage from './components/ErrorPage';
const router = new Router(on => {
on('*', async (state, ne... |
vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/js/jquery.min.js | kaiocesar/getpocket | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
ajax/libs/yui/3.9.0pr2/datatable-body/datatable-body-coverage.js | dc-js/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... |
node_modules/react-onsenui/test/modal-test.js | epgui/FEECUM-cordova | /* global describe it assert */
import React from 'react';
import ReactDOM from 'react-dom';
import {Modal} from '../dist/react-onsenui.js';
import TestUtils from 'react/lib/ReactTestUtils';
import rendersToComponent from './testUtil.js';
describe('Modal', function() {
rendersToComponent(
<Modal> Hello </Moda... |
_site/styles/js/jquery.min.js | danny1144/sesese.tech | /*! jQuery v1.10.2 | (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.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim... |
packages/native/src/components/screens/budget/BudgetHeader.js | hwaterke/inab | import React from 'react'
import PropTypes from 'prop-types'
import {StyleSheet, Text, View} from 'react-native'
import {connect} from 'react-redux'
import {getAvailableToBudget} from '@inab/shared'
import {Amount} from '../../Amount'
import {colors} from '../../../constants/colors'
const mapStateToProps = state => ({... |
nailgun/static/views/cluster_page_tabs/logs_tab.js | eayunstack/fuel-web | /*
* Copyright 2014 Mirantis, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
src/index.js | aggiedefenders/aggiedefenders.github.io | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import "../node_modules/react-bootstrap-table/dist/react-bootstrap-table.min.js";
import '../node_modules/react-bootstrap-table/dist/react-bootstrap-table-all.min.css';
imp... |
wp-content/plugins/mojo-marketplace-wp-plugin/vendor/jetpack/jetpack-onboarding/dist/jetpack-onboarding.js | spenceropope/Blackbaud-task | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/assets/",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;... |
src/js/view/stats.js | chemdemo/react-webpack-todos | /*
* @Author: dmyang
* @Date: 2015-07-31 18:39:12
* @Last Modified by: dmyang
* @Last Modified time: 2015-08-18 21:47:16
*/
'use strict';
import React from 'react';
let Stats = React.createClass({
render() {
let props = this.props;
let filter = props.filter;
return (
<sec... |
src/svg-icons/image/looks-3.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks3 = (props) => (
<SvgIcon {...props}>
<path d="M19.01 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 7.5c0 .83-.67 1.5-1.5 1.5.83 0 1.5.67 1.5 1.5V15c0 1.11-.9 2-2 2h-4v... |
src/containers/AddTodo.js | chriswitko/idiomatic-redux-app | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { addTodo } from '../actions';
import * as actions from '../actions';
import { getCurrentUser } from '../reducers';
class AddTodo extends Component {
constructor(props) {
super(props);
this.state = {value: ''};
this.... |
packages/playground/stories/ValueIcon.story.js | appearhere/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import {
ValueIcons,
Modifiers as m
} from '@appearhere/bloom';
const story = storiesOf('ValueIcons', module);
story
.add('ValueIcons.Handshake', () => <ValueIcons.Handshake className={m.titleLarge} />)
.add('ValueIcons.ThumbsUp', () =>... |
app/routes/Budget/index.js | nelsonomuto/budgeting-sample-app-webpack2 | // @flow
import React, { Component } from 'react';
import Chunk from 'components/Chunk';
const loadBudgetContainer = () => import('containers/Budget' /* webpackChunkName: "budget" */);
class Budget extends Component<{}> {
render() {
return <Chunk load={loadBudgetContainer} />;
}
}
export default Budget;
|
docs/src/app/components/pages/get-started/Examples.js | nathanmarks/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import examplesText from './examples.md';
const Examples = () => (
<div>
<Title render={(previousTitle) => `Examples - ${previousTitle}`} />
<MarkdownElement text={examplesText} />
</... |
components/PendingGame.js | ttalhouk/Game_On | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
TabBarIOS,
Text,
View,
TouchableHighlight,
ListView,
ActivityIndicatorIOS,
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
const styles = require('../components/styling.js')
class PendingGame exte... |
packages/react-reconciler/src/__tests__/ReactTracing-test.internal.js | jdlehman/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';
describe('ReactTracing', () => {
it('should error if profiling... |
stories/examples/InputGroupButtonShorthand.js | reactstrap/reactstrap | import React from 'react';
import { InputGroup, Button, Input } from 'reactstrap';
const Example = (props) => {
return (
<div>
<InputGroup>
<Button>To the Left!</Button>
<Input />
</InputGroup>
<br />
<InputGroup>
<Input />
<Button color="secondary">To the ... |
node_modules/react-bootstrap/es/Grid.js | soniacq/LearningReact | 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/Settings/Settings.js | TalentedEurope/te-app | import React from 'react';
import { WebView } from 'react-native';
import backendService from '../../shared/backendService';
import I18n from '../../i18n/i18n';
export default class Settings extends React.Component {
render() {
return (
<WebView
bounces={false}
source={{
uri: `${b... |
src/svg-icons/image/panorama-vertical.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanoramaVertical = (props) => (
<SvgIcon {...props}>
<path d="M19.94 21.12c-1.1-2.94-1.64-6.03-1.64-9.12 0-3.09.55-6.18 1.64-9.12.04-.11.06-.22.06-.31 0-.34-.23-.57-.63-.57H4.63c-.4 0-.63.23-.63.57 0 .1.02... |
src/js/LudoPage/SingleReport/CommentBox/CommentEditButton.js | ludonow/ludo-beta-react | import React from 'react';
import IconButton from 'material-ui/IconButton';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
import ModeEdit from 'material-ui/svg-icons/editor/mode-edit';
import Popover from 'material-ui/Popover';
const style = {
'fontSize': '14px'
};
const Commen... |
my-first-react-app/src/App.js | gauravrmazra/gauravbytes | import React from 'react';
import logo from './gaurav-bytes.png';
import './App.css';
import Welcome from './Welcome';
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<Welcome />
</header>
</div>
... |
ajax/libs/reactive-coffee/0.0.5/reactive-coffee.min.js | athanclark/cdnjs | !function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T={}.hasOwnProperty,U=function(a,b){function c(){this.constructor=a}for(var d in b)T.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},V=[].slice,W=this;"undefined"=... |
app/containers/LanguageProvider/index.js | chaintng/react-boilerplate | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
react/index.web.js | parisjulien/arkadin-jitsimeet | /* global APP */
import React from 'react';
import ReactDOM from 'react-dom';
import { getJitsiMeetTransport } from '../modules/transport';
import config from './config';
import { App } from './features/app';
const logger = require('jitsi-meet-logger').getLogger(__filename);
/**
* Renders the app when the DOM tre... |
demo-app/src/components/ProductRow.js | nol13/fuzzball.js | import React from 'react';
import PropTypes from 'prop-types';
import styles from '../styles/productRow.module.scss';
const ProductRow = ({ data }) =>
<div>
<p className={styles.prodrow}>{data[0].name}, Score: {data[1]} </p>
</div>;
ProductRow.propTypes = {
data: PropTypes.array
};
export default... |
Libraries/Utilities/throwOnWrongReactAPI.js | Andreyco/react-native | /**
* 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.
*
* @provides... |
node_modules/react-icons/lib/io/arrow-graph-up-right.js | bairrada97/festival | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: 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]; } }... |
packages/reactor-kitchensink/src/examples/Charts/Scatter/CustomIcons/CustomIcons.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../../ChartToolbar';
import generateData from './generateData';
Ext.require('Ext.chart.interactions.ItemEdit');
export default class CustomIcons extend... |
app/javascript/mastodon/features/public_timeline/components/column_settings.js | tri-star/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
export default @injectIntl
class ColumnSettings extends React.... |
__tests__/index.ios.js | hukaibaihu/dogsay | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
app/MnmRouteMapper.js | APSL/react-native-meneame | import React from 'react'
import { View, StyleSheet, Platform, TouchableOpacity, Linking } from 'react-native'
import MaterialIcons from 'react-native-vector-icons/MaterialIcons'
import FontAwesome from 'react-native-vector-icons/FontAwesome'
import Ionicons from 'react-native-vector-icons/Ionicons'
import {
titleRo... |
ajax/libs/material-ui/5.0.0-alpha.32/modern/RadioGroup/RadioGroup.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import*as React from"react";import PropTypes from"prop-types";import FormGroup from"../FormGroup";import useForkRef from"../utils/useForkRef";import useControlled f... |
packages/editor/src/components/Dropdown/DropdownOption.js | strues/boldr | /* eslint-disable react/no-unused-prop-types */
/* @flow */
import React from 'react';
import type { Node } from 'react';
import cn from 'classnames';
export type Props = {
children: Node,
value?: any,
onClick?: Function,
onSelect?: Function,
setHighlighted?: Function,
index?: number,
disabled?: boolean... |
node_modules/react-bootstrap/es/NavbarBrand.js | mohammed52/door-quote-automator | 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 ... |
ajax/libs/react-router/0.13.0/ReactRouter.js | hanbyul-here/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactRouter"] = fac... |
frontend/src/Components/HeartRating.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import Icon from 'Components/Icon';
import { icons } from 'Helpers/Props';
import styles from './HeartRating.css';
function HeartRating({ rating, iconSize }) {
return (
<span>
<Icon
className={styles.heart}
name={icons.HEART}
... |
geonode/monitoring/frontend/src/components/molecules/average-response-time/index.js | ppasq/geonode | import React from 'react';
import PropTypes from 'prop-types';
import CircularProgress from 'material-ui/CircularProgress';
import HoverPaper from '../../atoms/hover-paper';
import styles from './styles';
class AverageResponseTime extends React.Component {
static propTypes = {
time: PropTypes.number,
}
sta... |
tests/framework.spec.js | deevatech/frontend | import assert from 'assert'
import React from 'react'
import {mount, render, shallow} from 'enzyme'
class Fixture extends React.Component {
render () {
return (
<div>
<input id='checked' defaultChecked />
<input id='not' defaultChecked={false} />
</div>
)
}
}
describe('(Framewo... |
packages/mui-icons-material/lib/esm/MarginTwoTone.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M5 19h14V5H5v14zM15 7h2v2h-2V7zm0 4h2v2h-2v-2zm-4-4h2v2h-2V7zm0 4h2v2h-2v-2zM7 7h2v2H7V7zm0 4h2v2H7v-2z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path",... |
ajax/libs/react-data-grid/0.12.26/react-data-grid-with-addons.min.js | brix/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.ReactDataGrid=t(require("react")):e.ReactDataGrid=t(e.React)}(this,function(e){return function(e){function t(s){if(r[s])return r[... |
public/js/jquery-1.10.2.min.js | vshesh/CodeTheChangeFrontEnd | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
frontend/src/components/eois/buttons/downloadCfeiButton.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import Save from 'material-ui-icons/Save';
import IconWithTextButton from '../../common/iconWithTextButton';
const messages = {
text: 'Download as PDF',
};
const DownloadCfeiButton = (props) => {
const { handleClick } = props;
return (
<IconWith... |
modules/IndexLink.js | jdelight/react-router | import React from 'react';
import { component } from './PropTypes';
import Link from './Link';
var IndexLink = React.createClass({
render() {
return <Link {...this.props} onlyActiveOnIndex={true} />
}
});
export default IndexLink;
|
src/option.js | ymkz/syncedTabs | import React from 'react'
import ReactDOM from 'react-dom'
import Option from './components/option'
ReactDOM.render(
<Option />, document.getElementById('root')
)
|
pages/index.js | InnoD-WebTier/irc | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import { config } from 'config';
import { Link } from 'react-router';
import { prefixLink } from 'gatsby-helpers';
export default class Home extends Component {
render () {
return (
<div
className="page page--home"
... |
src/parser/druid/feral/CHANGELOG.js | fyruna/WoWAnalyzer | import React from 'react';
import { Anatta336 } from 'CONTRIBUTORS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
export default [
{
date: new Date('2019-03-06'),
changes: <>Added tracking of <SpellLink id={SPELLS.GUSHING_LACERATIONS_TRAIT.id} />.</>,
contributors: [Anat... |
src/renderer/Image/index.js | michalko/draft-wyswig | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { EditorState } from 'draft-js';
import classNames from 'classnames';
import Option from '../../components/Option';
import './styles.css';
import Lightbox from 'react-images';
const getImageComponent = config => class Image extends C... |
Example/index.ios.js | billoosijok/react-native-interactive-card | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TextInput,
ListView
} from 'react-native';
import App from './App.js'
export default class Example extends Component {
rende... |
ajax/libs/yui/3.5.0pr2/event-custom-base/event-custom-base.js | khasinski/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module ev... |
frontend/scripts/browser/pages/HomePage.js | Ledoux/teleport-react-router | import React from 'react'
import TeleportWelcome from '../components/TeleportWelcome'
const HomePage = () => (
<main className='home-page'>
<TeleportWelcome {...JSON.parse(window.TELEPORT_WELCOME_STRING)} />
</main>
)
export default HomePage
|
files/rxjs/3.0.0/rx.all.js | yaplas/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
var
freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && expo... |
app/components/specific/cards/AthletePerformancesCard.js | totorototo/strava | import React, { Component } from "react";
import PropTypes from "prop-types";
import CardList from "../../common/cardList/CardList";
import { getIconName } from "../../../routes/main/clubFeed/helper";
import theme from "../../../theme/theme";
export default class AthletePerformancesCard extends Component {
static p... |
06-testing-redux/src/App.js | dtanzer/react-basic-examples | import React, { Component } from 'react';
import { GreeterContainer } from './Greeter'
class App extends Component {
render() {
return (
<GreeterContainer />
);
}
}
export default App;
|
examples/src/components/CustomOption.js | peterKaleta/react-select | import React from 'react';
import Gravatar from 'react-gravatar';
var Option = React.createClass({
propTypes: {
addLabelText: React.PropTypes.string,
className: React.PropTypes.string,
mouseDown: React.PropTypes.func,
mouseEnter: React.PropTypes.func,
mouseLeave: React.PropTypes.func,
option: React.PropTy... |
app/javascript/mastodon/features/picture_in_picture/index.js | danhunsaker/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import Audio from 'mastodon/features/audio';
import { removePictureInPicture } from 'mastodon/actions/picture_in_picture';
import Header from './components/header';
import F... |
src/svg-icons/device/signal-wifi-4-bar.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi4Bar = (props) => (
<SvgIcon {...props}>
<path d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/>
</SvgIcon>
);
DeviceSignalWifi4Bar = pure(Devic... |
src/svg-icons/device/usb.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceUsb = (props) => (
<SvgIcon {...props}>
<path d="M15 7v4h1v2h-3V5h2l-3-4-3 4h2v8H8v-2.07c.7-.37 1.2-1.08 1.2-1.93 0-1.21-.99-2.2-2.2-2.2-1.21 0-2.2.99-2.2 2.2 0 .85.5 1.56 1.2 1.93V13c0 1.11.89 2 2 2h3v3.... |
src/svg-icons/maps/local-atm.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalAtm = (props) => (
<SvgIcon {...props}>
<path d="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 1... |
docs/src/app/components/pages/components/Badge/Page.js | rscnt/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 badgeReadmeText from './README';
import BadgeExampleSimple from './Exampl... |
unbuilt/admin/assets/js/hooks/extensions/conditions/models/condition.js | WordPoints/wordpoints | /**
* wp.wordpoints.hooks.model.Condition
*
* @class
* @augments Backbone.Model
* @augments wp.wordpoints.hooks.model.Base
*/
var Base = wp.wordpoints.hooks.model.Base,
Args = wp.wordpoints.hooks.Args,
Extensions = wp.wordpoints.hooks.Extensions,
Fields = wp.wordpoints.hooks.Fields,
Condition;
Condition = Ba... |
src/components/ItemList.js | toannhu/React-Pokedex | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { itemsFetchData, evolDataFetchData, itemsHasErrored } from '../actions/items';
import { Image, Segment } from 'semantic-ui-react';
import NotFound from './NotFound';
import DimmerLoader from './D... |
src/svg-icons/hardware/smartphone.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSmartphone = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
</SvgIcon>
);
HardwareSmartphone = p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.