path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/index.js | jlmonroy13/solvingbooks-poison | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tell webpack t... |
src/app/components/buttonUserNotifications.js | benigeri/soapee-ui | import React from 'react';
import Reflux from 'reflux';
import cx from 'classnames';
import { OverlayTrigger, Popover } from 'react-bootstrap';
import userNotificationsStore from 'stores/userNotifications';
import UserNotifications from 'components/userNotifications';
export default React.createClass( {
mixins:... |
src/containers/Register/Register.js | hirzanalhakim/testKumparan | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import RegisterForm from 'components/RegisterForm/RegisterForm';
import * as authActions from 'redux/modules/auth';
import * as notifActions from 'redux/modules/notifs'... |
App/Components/StatusBar.js | bretth18/bison | import {
View,
Text, } from 'react-native';
import React, { Component } from 'react';
const styles = require('../Styles/Styles.js');
class StatusBar extends Component{
render(){
return(
<View>
<View style={styles.statusbar} />
<View style={styles.navbar} >
<Text style={styles... |
src/hocs/withBoards.js | eunvanz/handpokemon2 | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import { connect } from 'react-redux'
import { firebaseConnect, dataToJS } from 'react-redux-firebase'
import { orderBy } from 'lodash'
import { convertMapToArr } from 'utils/commonUtil'
import Loadi... |
ajax/libs/forerunnerdb/1.3.462/fdb-legacy.min.js | keicheng/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... |
ajax/libs/rxjs/2.5.1/rx.lite.js | stuartpb/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/svg-icons/image/camera.js | manchesergit/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... |
app/js/components/selection.js | mattiaslundberg/typer |
import React from 'react'
export default class Selection extends React.Component {
constructor(props) {
super(props)
this.onChange = this.onChange.bind(this)
this.prepareText = this.prepareText.bind(this)
}
onChange(evt) {
if (evt.target.value) {
this.props.onSelect(this.prepareText(evt.... |
blueocean-material-icons/src/js/components/svg-icons/maps/local-airport.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsLocalAirport = (props) => (
<SvgIcon {...props}>
<path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/>
</SvgIcon>
);
MapsLocalAirport.displayName = 'MapsLocalAi... |
app/components/Dashicons/Money.js | WCLDN/WordCamp-Contribution-Wall | const React = require('react');
const IconBase = require('react-icon-base');
export default class Money extends React.Component {
render() {
return (
<IconBase viewBox='0 0 20 20' {...this.props}>
<path d='M0 3h20v12h-0.75c0-1.79-1.46-3.25-3.25-3.25-1.31 0-2.42 0.79-2.94 1.91-0.25-0.1-0.52-0.16-0.81-0.16-0.9... |
src/index.js | JC-Orozco/BlocksIDE | // Copyright 2016 Juan Carlos Orozco
// Licensed under the Apache License, Version 2.0 (the "License");
// https://github.com/JC-Orozco/BlocksIDE
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
Rea... |
src/package/plugins/slate-underline-plugin/UnderlineButton.js | abobwhite/slate-editor | import React from 'react'
import FontAwesome from 'react-fontawesome'
import classnames from 'classnames'
import { Button} from '../../components/button'
import { underlineMarkStrategy, hasMark } from './UnderlineUtils'
const UnderlineButton = ({ state, onChange, changeState, className, style, type }) => (
<Button
... |
test/test_helper.js | PepUrb/ReactYouTube | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
docs/src/app/components/pages/components/Dialog/ExampleDialogDatePicker.js | spiermar/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import DatePicker from 'material-ui/DatePicker';
/**
* Dialogs can be nested. This example opens a Date Picker from within a Dialog.
*/
export defa... |
src/js/pages/Ranking.js | belatrix/ConnectAdmin | import React from 'react';
function Ranking() {
return (
<div class="child-container">
<h1>Ranking</h1>
</div>
);
}
export default Ranking;
|
src/components/OfferList/index.js | EthHead/ens.trade | import React from 'react';
import ethereumjsAbi from 'ethereumjs-abi';
import * as ENSTrade from '../ENSTrade';
import Address from '../Address';
import actions from '../../actions';
import Button from '../Button';
import s from './styles.css';
import Offer from '../Offer';
class OfferList extends React.Component {
... |
app/page/Result.js | jokunhe/react-native-ee-camera | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
ToastAndroid
} from 'react-native';
export default class Result extends Component {
constructor(props) {
super(props);
this.state = {
jieguo:[]
}
}
emptys(){
this.setState... |
core/router.js | priley86/labs-console | import React from 'react';
function decodeParam(val) {
if (!(typeof val === 'string' || val.length === 0)) {
return val;
}
try {
return decodeURIComponent(val);
} catch (err) {
if (err instanceof URIError) {
err.message = `Failed to decode param '${val}'`;
err.status = 400;
}
... |
components/MapCallout.js | dianwoba/react-native-amap |
var React = require('react');
var {
PropTypes,
} = React;
var ReactNative = require('react-native');
var {
View,
NativeMethodsMixin,
requireNativeComponent,
StyleSheet,
} = ReactNative;
var MapCallout = React.createClass({
mixins: [NativeMethodsMixin],
propTypes: {
...View.propTypes,
tooltip: ... |
presto-main/src/main/resources/webapp/vendor/react/react.min.js | ipros-team/presto | /**
* React v0.13.1
*
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*... |
components/Slider/Rail.js | ritz078/react-filters | import React, { PropTypes } from 'react';
import { isVertical } from './utils';
import constants from './constants';
/**
* Returns rail's position value of `left` for horizontal slider and `top`
* for vertical slider
* @param value
* @param min
* @param max
* @param orientation
* @returns {number} Value in Perc... |
ajax/libs/F2/1.4.0/f2.min.js | paleozogt/cdnjs | /*! F2 - v1.4.0 - 04-02-2015 - See below for copyright and license */
!function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obt... |
ajax/libs/material-ui/5.0.0-beta.3/legacy/AvatarGroup/AvatarGroup.min.js | cdnjs/cdnjs | import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import _defineProperty from"@babel/runtime/helpers/esm/defineProperty";import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import PropTypes from"prop-types";import{isFragment}from"react-is";import c... |
docs/src/pages/demos/text-fields/TextFields.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';
import MenuItem from '@material-ui/core/MenuItem';
import TextField from '@material-ui/core/TextField';
const styles = theme => ({
container: {
display: 'flex... |
src/components/Tags/Tags.js | deslee/deslee-react-flux | import React, { PropTypes } from 'react';
import Link from '../../utils/Link';
class Tags {
static propTypes = {
post: PropTypes.object.isRequired
};
render() {
var tags = this.props.post.tags;
var tagList = tags ? tags.map(function (tag) {
return <a href={'/tags/' + tag} key={tag} onClick={L... |
fields/types/password/PasswordField.js | kumo/keystone | import React from 'react';
import Field from '../Field';
import { Button, FormInput, InputGroup } from 'elemental';
module.exports = Field.create({
displayName: 'PasswordField',
getInitialState () {
return {
passwordIsSet: this.props.value ? true : false,
showChangeUI: this.props.mode === 'create' ? true :... |
assets/app/components/Utils/FormInput/index.js | chernyshof/react-phoenix-users-boilerplate | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class Input extends Component {
render() {
const {
input,
type,
placeholder,
meta,
} = this.props;
return (
<div className="input">
<input
{...input}
typ... |
ajax/libs/angular.js/2.0.0-alpha.46/http.dev.js | jdh8/cdnjs | "format register";
System.register("angular2/src/http/interfaces", [], true, function(require, exports, module) {
var global = System.global,
__define = global.define;
global.define = undefined;
var ConnectionBackend = (function() {
function ConnectionBackend() {}
return ConnectionBackend;
})();
... |
test/PanelGroupSpec.js | mmarcant/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Panel from '../src/Panel';
import PanelGroup from '../src/PanelGroup';
import { getOne } from './helpers';
describe('<PanelGroup>', () => {
it('Should pass bsStyle to Panels', () => {
let instance = ReactTestUtils.renderIn... |
examples/counter/index.js | pabloalonsos/redux-devtools | import React from 'react';
import App from './containers/App';
React.render(
<App />,
document.getElementById('root')
);
|
ajax/libs/yui/3.7.0/datatable-core/datatable-core.js | wenliang-developer/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
src/containers/Bookcase.js | claclacla/_Udacity_-Organize-your-bookshelves-using-ReactJS | import React from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import Data from '../Data';
import BookShelf from '../components/BookShelf';
const ListBooks = function (props) {
const { books } = props;
return (
<div className="list-books">
<div className="list-b... |
app/set/userNameRender.js | hakale/bestCarRent | import React, { Component } from 'react';
var UserNameRender = React.createClass( {
render() {
return (
()
);
}
}) |
app/jsx/external_apps/components/ExternalToolPlacementButton.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - 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... |
node_modules/react-router/es/Route.js | vinhtran19950804/procure_react | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
app/src/components/AlbumDetail.js | Rhadammanthis/BreadScraps | import React from 'react';
import { Text, View, Image, Linking } from 'react-native';
import Card from './Card';
import CardSection from './CardSection';
import Button from './Button';
const AlbumDetail = ({ album }) => {
const { title, artist, thumbnail_image, image, url } = album;
const { thumbnailStyle,
... |
webapp/components/health.js | schabluk/elastic-dc | import React from 'react'
import $ from 'jquery'
class Health extends React.Component {
constructor(props) {
super(props)
this.state = {
beatRate: this.props.beatRate,
status: this.props.status,
tooltip: this.props.tooltip
}
this.beat = this.beat.bind(this)
}
render() {
re... |
src/shared-components/AboutPage.js | jch254/audio-insights | import React from 'react';
import { Box } from 'reflexbox';
import {
PageHeader,
Text,
Container,
} from 'rebass';
import FadeInTransition from './FadeInTransition';
const AboutPage = () => (
<FadeInTransition>
<Box style={{ flex: '1 0 auto' }} key="about">
<Container pb={3}>
<PageHeader
... |
6-css/src/App.js | mariusz-malinowski/tutorial-react | import React, { Component } from 'react';
import initialState from './data';
import TodoList from './TodoList';
import TodoDetails from './TodoDetails';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import reducer from './reducer';
import createHistory from 'history/createBrowserHistory';... |
frontend/react-slingshot/src/components/NotFoundPage.js | ggchan0/git_diffed | import React from 'react';
import { Link } from 'react-router';
const NotFoundPage = () => {
return (
<div>
<h4>
404 Page Not Found
</h4>
<Link to="/"> Go back to homepage </Link>
</div>
);
};
export default NotFoundPage;
|
src/components/Tabs/Tabs-test.js | wfp/ui | import React from 'react';
import Tabs from '../Tabs';
import Tab from '../Tab';
import TabsSkeleton from '../Tabs/Tabs.Skeleton';
import { shallow, mount } from 'enzyme';
describe('Tabs', () => {
describe('renders as expected', () => {
describe('navigation (<nav>)', () => {
const wrapper = shallow(
... |
src/components/PetitionHeader/index.js | iris-dni/iris-frontend | import React from 'react';
import styles from './petition-header.scss';
import Header from 'components/Header';
import PageTitle from 'components/PageTitle';
import PetitionTags from 'containers/PetitionTags';
import PetitionInfo from 'containers/PetitionInfo';
import PetitionProgress from 'containers/PetitionProgress'... |
app/javascript/mastodon/features/ui/components/column_loading.js | KnzkDev/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Column from '../../../components/column';
import ColumnHeader from '../../../components/column_header';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class ColumnLoading extends ImmutablePureComponent {
stat... |
src/pages/buyers-guide/why-we-made.js | mozilla/advocacy.mozilla.org | import React from 'react';
import debounce from 'debounce';
import Footer from '../../components/buyers-guide/footer.js';
import Header from '../../components/buyers-guide/header.js';
import { FormattedHTMLMessage } from 'react-intl';
import { Link } from 'react-router';
var BuyersGuide = React.createClass({
context... |
ajax/libs/foundation/4.0.9/js/vendor/jquery.js | tybenz/cdnjs | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
ajax/libs/react-instantsearch/5.2.0-beta.0/Connectors.js | joeyparrish/cdnjs | /*! React InstantSearch 5.2.0-beta.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['ex... |
src/components/GitmojiList/hooks/__tests__/useLocalStorage.spec.js | carloscuesta/gitmoji | import React from 'react'
import renderer from 'react-test-renderer'
import useLocalStorage from '../useLocalStorage'
import * as stubs from './stubs'
const TestComponent = ({ storageKey, storageValue }) => {
useLocalStorage(storageKey, storageValue)
return null
}
Object.defineProperty(window, 'localStorage', {... |
Examples/UIExplorer/ImageExample.js | aroth/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
lib/components/Slide.js | limscoder/react-present | import React from 'react';
import PropTypes from 'prop-types';
import Delay from './content/Delay';
const leftArrow = 37;
const upArrow = 38;
const rightArrow = 39;
const downArrow = 40;
const enter = 13;
export default class Slide extends React.Component {
static propTypes = {
backgroundColor: PropTypes.string... |
js/vendor/jquery.min.js | SakuraEvilStore/BotFreeBitco | /*! jQuery v1.11.3 | (c) 2005, 2015 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... |
docs/app/Examples/modules/Progress/States/ProgressExampleWarning.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Progress } from 'semantic-ui-react'
const ProgressExampleWarning = () => (
<Progress percent={100} warning>
I am warning you
</Progress>
)
export default ProgressExampleWarning
|
src/js/pages/app.js | alexzherdev/foosballtracker | import React from 'react';
import { node } from 'prop-types';
import Nav from '../components/nav';
const App = ({children}) =>
<div>
<Nav />
<div className="content">
{children}
</div>
</div>;
App.propTypes = {
children: node.isRequired
};
export default App;
|
app/javascript/mastodon/features/ui/components/bundle_modal_error.js | abcang/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import IconButton from '../../../components/icon_button';
const messages = defineMessages({
error: { id: 'bundle_modal_error.message', defaultMessage: 'Something went wrong while loading this comp... |
ajax/libs/jquery/1.11.0/jquery.min.js | raimohanska/cdnjs | /*! jQuery v1.11.0 | (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... |
app/packs/src/admin/generic/AttrForm.js | ComPlat/chemotion_ELN | import React from 'react';
import { Tooltip } from 'react-bootstrap';
import KlassAttrForm from './KlassAttrForm';
import SegmentAttrForm from './SegmentAttrForm';
const TipActive = type => <Tooltip id="active_button">This {type} is deactivated, press button to [activate]</Tooltip>;
const TipInActive = type => <Toolti... |
assets/src/components/app/header/menu/pods/container.js | appacademy/app-academy-chrome-tab | import { connect } from 'react-redux';
import View from './view';
const mapStateToProps = state => ({
pods: state.day.pods
});
const mapDispatchToProps = dispatch => ({
set: podId => { dispatch({ type: "SET_POD_ID", podId }) }
});
export default connect(
mapStateToProps,
mapDispatchToProps
)(View);
|
booklet.ios.js | cccstc/cccstc-app | /**
* @flow
*/
import React, { Component } from 'react';
import {
TabBarIOS,
NavigatorIOS,
StyleSheet,
} from "react-native";
import { BookletListView } from "./components/BookletListView";
const tabIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAABqlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAA... |
config/webpack.dev.js | KubaJastrz/angular-password-generator | /**
* @author: @AngularClass
*/
const helpers = require('./helpers');
const webpackMerge = require('webpack-merge'); // used to merge webpack configs
// const webpackMergeDll = webpackMerge.strategy({plugins: 'replace'});
const commonConfig = require('./webpack.common.js'); // the settings that are common to prod an... |
lib/yui/2.9.0/build/yuiloader/yuiloader.js | luke-tucker/moodle-old | /*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/
/**
* The YAHOO object is the single global object used by YUI Library. It
* contains utility function for setting up namespaces, inheritance, and
* logging. YA... |
ajax/libs/6to5/1.14.4/browser.js | CosmicWebServices/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
js/App/Components/Sensor/AddSensor/AddSensorContainer.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
Libraries/Image/Image.ios.js | mrspeaker/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... |
src/util/app.js | janimattiellonen/discgolfresults | import React from 'react';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
export function createApp(store, history, routes) {
const app = (
<Provider store={store}>
<Router history={history}>
{routes}
</Router>
</Provider>
... |
client/src/components/Draftail/decorators/Link.js | wagtail/wagtail | import PropTypes from 'prop-types';
import React from 'react';
import { gettext } from '../../../utils/gettext';
import Icon from '../../Icon/Icon';
import TooltipEntity from '../decorators/TooltipEntity';
const LINK_ICON = <Icon name="link" />;
const BROKEN_LINK_ICON = <Icon name="warning" />;
const MAIL_ICON = <Ic... |
ajax/libs/react-quill/0.2.2/react-quill.js | aashish24/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("quill"));
else if(typeof define === 'function' && define.amd)
define(["react", "quill"], factory);
else if(typeof exports === 'object')
e... |
app/components/Pagination.js | irwinb/table-viewer | // @flow
import React from 'react';
import ChevronLeft from 'material-ui-icons/ChevronLeft';
import ChevronRight from 'material-ui-icons/ChevronRight';
import Button from 'material-ui/Button';
import IconButton from 'material-ui/IconButton';
export default (props: {
start: number,
countPerPage: number,
totalCoun... |
docs/app/Examples/elements/Flag/Types/index.js | koenvg/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const FlagTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Flag'
description='A flag c... |
examples/with-apollo-auth/pages/index.js | BlancheXu/test | import React from 'react'
import cookie from 'cookie'
import { useApolloClient } from '@apollo/react-hooks'
import { withApollo } from '../lib/apollo'
import redirect from '../lib/redirect'
import checkLoggedIn from '../lib/checkLoggedIn'
const IndexPage = ({ loggedInUser }) => {
const apolloClient = useApolloClient... |
src/components/home/index.js | Tsarpf/reaktive | import React from 'react';
import { Link } from 'react-router';
import Cycle from 'cycle-react';
import Rx from 'rx';
const List = Cycle.component( 'List', ( ) => {
return Rx.Observable.just( <div> asdf </div> );
} );
const Clicker = Cycle.component( 'Counter', ( interactions ) => {
return Rx.Observable.merge(
in... |
packages/wix-style-react/src/MessageBox/docs/AlertExamples/EmptyState.js | wix/wix-style-react | /* eslint-disable react/prop-types */
import React from 'react';
import ImagePlaceholder from '../../../../stories/utils/ImagePlaceholder';
import { MessageBoxFunctionalLayout, EmptyState } from 'wix-style-react';
export default () => (
<MessageBoxFunctionalLayout
title="Choose Your Favorites"
confirmText=... |
packages/react/src/components/Checkbox/Checkbox.Skeleton.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 cx from 'classnames';
import { usePrefix } from '../../internal/usePref... |
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js | jbbr/react-router | import React from 'react';
class Announcements extends React.Component {
render () {
return (
<div>
<h3>Announcements</h3>
{this.props.children || <p>Choose an announcement from the sidebar.</p>}
</div>
);
}
}
export default Announcements;
|
ajax/libs/core-js/1.2.7/library.js | cdnjs/cdnjs | /**
* core-js 1.2.7
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2016 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
ajax/libs/material-ui/5.0.0-alpha.34/legacy/internal/svg-icons/MoreHoriz.js | cdnjs/cdnjs | import * as React from 'react';
import createSvgIcon from '../../utils/createSvgIcon';
/**
* @ignore - internal component.
*/
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 ... |
packages/material-ui-icons/src/RowingTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-2.16c1.66.03 3.61-.87 4.67-2.04l1.4-1.55c.19-.21... |
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js | Just-D/actor-platform | import _ from 'lodash';
import React from 'react';
import { Styles, RaisedButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
import CreateGroupActionCreators from 'actions/CreateGro... |
examples/src/MultipleSections/MultipleSections.js | confide/react-autosuggest | import React, { Component } from 'react';
import utils from '../utils';
import Autosuggest from '../../../src/Autosuggest';
import SourceCodeLink from '../SourceCodeLink/SourceCodeLink';
import suburbs from 'json!../suburbs.json';
function randomInt(min, max) {
return min + Math.floor(Math.random() * (max - min + 1)... |
Examples/UIExplorer/AnimatedGratuitousApp/AnExScroll.js | dvcrn/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
node_modules/react-router/es6/IndexLink.js | Maxwelloff/react-football | 'use strict';
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; };
import React from 'react';
import Link from '.... |
app/components/FeedContainer.js | jastkand/vk-notifications | import React from 'react'
import Feed from './Feed'
export default class FeedContainer extends React.Component {
constructor() {
super()
this.state = { posts: [], groups: [] }
}
componentDidMount() {
chrome.runtime.sendMessage({ action: 'notification_list' }, (response) => {
if (response.conte... |
ui/js/components/SectionsFormContents.js | ericsoderberg/pbc-web | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import FormFieldAdd from './FormFieldAdd';
import Button from './Button';
import SectionFormContents from './SectionFormContents';
export default class SectionsFormContents extends Component {
constructor() {
super();
this.state =... |
ajax/libs/material-ui/5.0.0-alpha.21/modern/FormLabel/FormLabel.min.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import formControlState from"../FormControl/formControlState";import useFormCon... |
_site/js/vendor/jquery-1.9.1.min.js | royschuyler/NSS-Cohort-9.github.io | /*! 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/ui/TabIcon.js | jeanlescure/detox-react-native-demo | /**
* Tabbar Icon
*
<TabIcon icon={'search'} selected={false} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Icon } from 'react-native-elements';
import { AppColors } from '@theme/';
/* Componen... |
client/common/components/dropdown-overlay.js | jmeas/finance-app | import React from 'react';
import classNames from 'classnames';
const noop = () => {
// Intentionally left blank
};
export default function DropdownOverlay({onClick, visible}) {
let clickHandler = onClick ? onClick : noop;
const classes = classNames('dropdownOverlay', {'dropdownOverlay-visible': visible});
r... |
app/components/settings/mapping-files/import/error/index.js | Vizzuality/forest-watcher | // @flow
import type { LayerType } from 'types/sharing.types';
import React, { Component } from 'react';
import { View, Text, Image } from 'react-native';
import { Navigation } from 'react-native-navigation';
import i18n from 'i18next';
import styles from './styles';
import ActionButton from 'components/common/action-b... |
ajax/libs/yui/3.10.2/datatable-core/datatable-core-coverage.js | laurenceHR/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-core/datatable-core.js']) {
__coverage__['build/datatable-core/datatable-core.js'] = {"path":"build/datatable-core/datatable-core.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13"... |
examples/todos/src/containers/AddTodo.js | gaearon/redux | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
const AddTodo = ({ dispatch }) => {
let input
return (
<div>
<form onSubmit={e => {
e.preventDefault()
if (!input.value.trim()) {
return
}
dispatch(addTodo(input... |
src/svg-icons/image/crop-16-9.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop169 = (props) => (
<SvgIcon {...props}>
<path d="M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"/>
</SvgIcon>
);
ImageCrop169 = pure(ImageCrop169);
ImageCr... |
Neos.Media.Browser/packages/neos-media-browser/src/Variants/Variant.js | bwaidelich/neos-development-collection | import React from 'react';
export default class Variant extends React.PureComponent {
render() {
const {persistenceIdentifier, previewUri, presetIdentifier, width, height, presetVariantName, hasCrop, cropInformation, onRequestCrop} = this.props;
const aspect = cropInformation.width / cropInformatio... |
ajax/libs/yui/3.9.0pr2/event-custom-base/event-custom-base-debug.js | vuonghuuphuc/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... |
icons/device/access-alarm.js | jinzhubaofu/melon-material-icons | 'use strict';
var React = require('react');
var mui = require('material-ui');
var SvgIcon = mui.SvgIcon;
var DeviceAccessAlarm = React.createClass({
displayName: 'DeviceAccessAlarm',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d... |
ajax/libs/cyclejs-core/0.14.3/cycle.js | wout/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Cycle=e()}}(function(){var define,module,exports;retu... |
geonode/monitoring/frontend/src/components/cels/layer-select/index.js | mcldev/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from 'material-ui/MenuItem';
import actions from './actions';
import styles from './styles';
const mapStateToProps = (state) => ({
interval: stat... |
ajax/libs/babel-core/4.4.2/browser.min.js | hare1039/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.babel=e()}}(function(){var e,n,l;return function t(e,... |
ajax/libs/yui/3.10.3/scrollview-base/scrollview-base-debug.js | mscharl/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
example/src/index.js | ashtonwar/golden-type | import React from 'react';
import ReactDom from 'react-dom';
import App from './App';
ReactDom.render(<App/>, document.getElementById('root'));
|
src/svg-icons/action/copyright.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCopyright = (props) => (
<SvgIcon {...props}>
<path d="M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-... |
app/components/Github.js | vietvd88/developer-crawler | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './Github.css';
import SortTable from './SortTable'
import { Button, FormControl, FormGroup, ControlLabel } from 'react-bootstrap';
export default class Home extends Component {
constructor(props) {
super(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.