path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
editor/app/js/components/MenuBar.js | GlassOceanos/nubomedia-graphedit | /*
* (C) Copyright 2016 NUBOMEDIA (http://www.nubomedia.eu)
*
* 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 ap... |
app/containers/Articles/index.js | thecodingwhale/conduit-clone | /**
*
* Articles
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { push } from 'react-router-redux';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import ReactPaginate f... |
dashboard/components/FeatureDetail.js | dbrabera/laika | import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import Toggle from './Toggle';
import Section from './Section';
import './FeatureDetail.css';
function capitalize(s) {
return s[0].toUpperCase() + s.slice(1);
}
export default function FeatureDetail({ feature, onToggle }) {... |
src/modules/definitions/containers/DefinitionsPanelContainer/DefinitionsPanelContainer.js | cltk/cltk_frontend | import React from 'react';
// TODO: build queries for definitions panel container from graphql endpoint
const DefinitionsPanelContainer = () => (
<div />
);
export default DefinitionsPanelContainer;
|
devmgmtui/src/index.js | projectOpenRAP/OpenRAP | import React from 'react';
import ReactDOM from 'react-dom';
import 'semantic-ui-css/semantic.min.css';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux'
import reduxThunk from 'redux-thunk'
import './index.css';
import App from './App';
import reducers from './reducers'
co... |
user/themes/photo-container-site/_assets/lib/jquery-validation-1.16.0/lib/jquery-1.9.1.js | luizfsnunes/photocontainer-site | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
src/Kunstmaan/AdminBundle/Resources/ui/vendor_bower/Sortable/react-sortable-mixin.js | kimausloos/KunstmaanBundlesCMS | /**
* @author RubaXa <trash@rubaxa.org>
* @licence MIT
*/
(function (factory) {
'use strict';
if (typeof module != 'undefined' && typeof module.exports != 'undefined') {
module.exports = factory(require('./Sortable'));
}
else if (typeof define === 'function' && define.amd) {
define(['./Sortable'], factory)... |
admin/src/routes.js | mparlak/mparlak.github.io | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import { ADMIN_PREFIX } from './constants';
import App from './containers/App';
import Configuration from './containers/views/Configuration';
import Pages from './containers/views/Pages';
import PageEdit from './containers/views/PageEdit';
im... |
src/pages/App.js | joemcbride/react-starter-kit-app | import React from 'react';
//import '../styles/site.less';
class Application extends React.Component {
render() {
return (
<div>
<h1>React Application Starter Kit</h1>
</div>
);
}
}
export default Application;
|
ajax/libs/react-bootstrap-typeahead/2.0.0-alpha.4/react-bootstrap-typeahead.min.js | tholu/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrapTypeahead=t(require("react"),require("react-dom")):e.ReactBootstrapTypeahead=t(e.R... |
pkg/interface/groups/src/js/components/skeleton.js | jfranklin9000/urbit | import React, { Component } from 'react';
import classnames from 'classnames';
import { HeaderBar } from '/components/lib/header-bar';
import { GroupSidebar } from '/components/lib/group-sidebar';
export class Skeleton extends Component {
render() {
const { props } = this;
let rightPanelClasses =
prop... |
node_modules/react-select/examples/src/components/SelectedValuesField.js | yomolify/cc-server | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var SelectedValuesField = React.createClass({
displayName: 'SelectedValuesField',
propTypes: {
allowCreate: React.PropTy... |
src/components/TipCard.js | Minishlink/DailyScrum | // @flow
import React from 'react';
import { connect } from 'react-redux';
import { StyleSheet, View } from 'react-native';
import * as Animatable from 'react-native-animatable';
import { Card, Button, Text } from '../components';
import Icon from './Icon';
import { markTipAsRead } from '../modules/tips';
import type {... |
codes/chapter05/react-router-v4/advanced/demo03/app/components/PrivateRoute.js | atlantis1024/react-step-by-step | import React from 'react';
import { Redirect, Route } from 'react-router-dom';
import AuthUtil from '../utils/AuthUtil';
const PrivateRoute = ({ component: Component, ...rest }) => (
<Route {...rest} render={
props => (
AuthUtil.isAuthenticated ? (
<Component {...props}/>
) : (
<Redir... |
client/components/accounts/UserSidebarSection.js | kuip/oro-devi | import React from 'react';
import ReactRouter from 'react-router';
var Link = ReactRouter.Link;
UserSidebarSection = React.createClass({
displayName: "UserSidebarSection",
getInitialState: function getInitialState() {
return {
menuOpen: false
};
},
propTypes: {
user: React.PropTypes.object... |
ajax/libs/vis/1.0.1/vis.js | whardier/cdnjs | /**
* vis.js
* https://github.com/almende/vis
*
* A dynamic, browser-based visualization library.
*
* @version 1.0.1
* @date 2014-05-09
*
* @license
* Copyright (C) 2011-2014 Almende B.V, http://almende.com
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file e... |
components/headers.js | alligatorio/some-gators-next | import React from 'react';
import Head from 'next/head';
export default ({title}) => {
return <Head>
<title>{title}</title>
<link rel="stylesheet" href="static/styles.css" />
</Head>
}
|
src/components/Checkbox/Checkbox.js | Bandwidth/shared-components | import React from 'react';
import PropTypes from 'prop-types';
import generateId from 'extensions/generateId';
import * as styles from './styles';
import { defaultProps } from 'recompose';
/**
* A simple checkbox input.
*/
export default class Checkbox extends React.PureComponent {
static propTypes = {
/**
... |
ajax/libs/alexandernst-angular-multi-select/6.3.2/angular-multi-select.js | redmunds/cdnjs | "use strict";
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = ... |
src/svg-icons/device/bluetooth-connected.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothConnected = (props) => (
<SvgIcon {...props}>
<path d="M7 12l-2-2-2 2 2 2 2-2zm10.71-4.29L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.... |
ajax/libs/F2/1.4.0/f2.js | sashberd/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
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 obtaining a copy of this software and associated d... |
modules/gui/src/app/home/body/process/recipe/classChange/panels/classChangeToolbar.js | openforis/sepal | import {Legend} from './legend/legend'
import {Retrieve} from './retrieve/retrieve'
import {Toolbar} from 'widget/toolbar/toolbar'
import {compose} from 'compose'
import {msg} from 'translate'
import {selectFrom} from 'stateUtils'
import {setInitialized} from 'app/home/body/process/recipe'
import {withRecipe} from 'app... |
src/svg-icons/action/assignment-turned-in.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentTurnedIn = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-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-7 0c.55 0 1 .... |
ajax/libs/rxjs/2.2.15/rx.compat.js | paleozogt/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,
'u... |
src/components/DragDrop/components/DragDrop.js | altarit/cloudpolis-react | import React from 'react'
import PropTypes from 'prop-types'
import './DragDrop.scss'
export class DragDrop extends React.Component {
static propTypes = {
isTrackDrag: PropTypes.bool.isRequired,
dragItem: PropTypes.object.isRequired,
}
constructor(props) {
super(props)
this.state = {}
}
mo... |
node_modules/react-bootstrap/es/Row.js | geng890518/editor-ui | 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 ... |
node_modules/material-ui/svg-icons/editor/wrap-text.js | jotamaggi/react-calendar-app | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
src/components/molecules/ArtworkForm/index.js | ygoto3/artwork-manager | // @flow
import React, { Component } from 'react';
import { Form } from '../Form';
export type ArtworkFormProps = {
validators: {[index: string]: Function};
onClickSubmit: Function;
};
export class ArtworkForm extends Component<*, ArtworkFormProps, *> {
form: Form;
onClickSubmit: Function;
constructor() ... |
node_modules/firebase/database/core/PersistentConnection.js | chidelmun/Zikki | /*! @license Firebase v4.3.1
Build: rev-b4fe95f
Terms: https://firebase.google.com/terms/ */
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.PersistentConnection = undefined;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { ... |
ajax/libs/yui/3.15.0/event-custom-base/event-custom-base-debug.js | kitcambridge/cdnjs | /*
YUI 3.15.0 (build 834026e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.En... |
docs/src/app/components/pages/components/Popover/ExampleConfigurable.js | manchesergit/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import RadioButton from 'material-ui/RadioButton';
import Popover from 'material-ui/Popover/Popover';
import {Menu, MenuItem} from 'material-ui/Menu';
const styles = {
h3: {
marginTop: 20,
fontWeight: 400,
},
block: {
dis... |
ajax/libs/thorax/2.2.0/thorax-combined-mobile.js | NUKnightLab/cdnjs | /* Zepto v1.0 - polyfill zepto detect event ajax form fx - zeptojs.com/license */
;(function(undefined){
if (String.prototype.trim === undefined) // fix for iOS 3.2
String.prototype.trim = function(){ return this.replace(/^\s+|\s+$/g, '') }
// For iOS 3.x
// from https://developer.mozilla.org/en/JavaScript/... |
webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepository.js | pmoravec/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { ListView } from 'patternfly-react';
import { sprintf, translate as __ } from 'foremanReact/common/I18n';
import RepositoryTypeIcon from '../RepositoryTypeIcon';
import EnabledRepositoryContent from './EnabledRepositoryContent';
cl... |
test/browser/sample/js/jquery-1.9.1.js | prestomation/aws-sdk-js | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
src/svg-icons/file/cloud-off.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudOff = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-... |
pages/api/dialog-title.js | Kagami/material-ui | import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './dialog-title.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default Page;
|
ajax/libs/rxjs/2.3.10/rx.js | hasantayyar/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... |
ajax/libs/react-dom/16.0.0-beta.2/umd/react-dom.production.min.js | tholu/cdnjs | /**
* react-dom.production.min.js v16.0.0-beta.2
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):e.ReactDOM=t(e.React)}(this,function(e){"use strict";function t(e){for(var t=arguments.length-1,n="Minifi... |
ajax/libs/forerunnerdb/1.4.27/fdb-legacy.min.js | kennynaoh/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/back-office/components/Logout.js | mihailgaberov/es6-bingo-game | import React from 'react';
import Button from './Button';
import EventsConsts from '../components/EventsConsts';
import CRUDStore from '../flux/CRUDStore';
type State = {
isLogged: boolean
}
class Logout extends React.Component {
state: State;
constructor() {
super();
Logout.logout = Logout.logout.bind(this)... |
src/app.js | SaintEmbers/awesomejar | import React from 'react'
import { render }from 'react-dom'
import { Router, Route, Link, browserHistory, IndexRoute } from 'react-router'
import Root from './root'
import Add from './Add'
import Modal from './components/modal'
console.log('routes')
render((
<Router history={browserHistory}>
<Route path='/' com... |
src/behaviours/component-base/__tests__/component-base-test.js | JabX/focus-components | import ComponentBaseBehaviour from '../';
import React from 'react';
import ReactDOM from 'react-dom';
import {init} from 'focus-core/translation';
describe('The component base behaviour', () => {
let renderedComponent;
before((done) => {
init({resStore: {}}, () => {
@ComponentBaseBehaviour... |
ajax/libs/react-bootstrap-typeahead/3.3.4/react-bootstrap-typeahead.js | cdnjs/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
ajax/libs/6to5/1.14.6/browser-polyfill.js | sullivanmatt/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/components/Login/wxlogin.js | yiweimatou/doctor-antd | import React, { Component } from 'react';
import { loadJS } from '../../utils/index'
class WXLogin extends Component {
componentWillMount() {
if (window.WxLogin) {
this.wx = new window.WxLogin({
id: 'login',
appid: 'wxe17a9f1153e4a1b5',
scope: 's... |
test/SplitButtonSpec.js | jamon/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import SplitButton from '../src/SplitButton';
import MenuItem from '../src/MenuItem';
import Button from '../src/Button';
describe('SplitButton', function () {
let instance;
afterEach(function() {
if (instance && ReactTestUtils.i... |
packages/material-ui-icons/src/DateRangeSharp.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="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm4-7h-3V2h-2v2H8V2H6v2H3v18h18V4zm-2 16H5V9h14v11z" /></g></React.Fragment>
, 'DateRangeSharp');... |
src/client/todos/todo.react.js | cazacugmihai/este | import './todo.styl';
import Component from '../components/component.react';
// import Editable from '../components/editable.react';
import React from 'react';
export default class Todo extends Component {
static propTypes = {
actions: React.PropTypes.object.isRequired,
todo: React.PropTypes.object.isRequir... |
nearby/src/Messages.js | zuik/stuff | import React from 'react';
import {List, ListItem} from 'material-ui/List';
import MapsPlace from 'material-ui/svg-icons/maps/place';
import moment from 'moment';
import NewMessage from './NewMessage';
import Chip from 'material-ui/Chip';
import Avatar from 'material-ui/Avatar';
var serverUrl = "https://nearby-zkn.c9... |
mobile-site/components/product/ShippingPolicyCountry.js | goominc/goommerce-react | // Copyright (C) 2016 Goom Inc. All rights reserved.
import React from 'react';
import i18n from 'commons/utils/i18n';
export default React.createClass({
render() {
return (
<div className="shipping-policy-country">
<section>
<div className="title">{i18n.get('mItemDetail.shippingOversea... |
ajax/libs/yui/3.14.1/datatable-body/datatable-body-coverage.js | jamzgoodguy/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-body/datatable-body.js']) {
__coverage__['build/datatable-body/datatable-body.js'] = {"path":"build/datatable-body/datatable-body.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"... |
packages/ringcentral-widgets-test/test/integration-test/legacy/TextInput.spec.js | ringcentral/ringcentral-js-widget | import React from 'react';
import { shallow, mount } from 'enzyme';
import Textinput from 'ringcentral-widgets/components/TextInput';
describe('<Textinput />', () => {
it('should render correct', () => {
const wrapper = shallow(<Textinput />);
expect(wrapper.find('div').length).toEqual(1);
expect(wrapper... |
pootle/static/js/shared/components/FormValueInput.js | ta2-1/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import AutosizeTextarea from '... |
docs/app/Examples/modules/Progress/States/ProgressExampleError.js | clemensw/stardust | import React from 'react'
import { Progress } from 'semantic-ui-react'
const ProgressExampleError = () => (
<Progress percent={100} error>
There was an error
</Progress>
)
export default ProgressExampleError
|
ajax/libs/react-native-web/0.14.7/modules/useResponderEvents/ResponderSystem.js | cdnjs/cdnjs | /**
* Copyright (c) Nicolas Gallagher
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
/**
* RESPONDER EVENT SYSTEM
*
* A single, global "interaction lock" on views. For a view to be the "responder" means
* that pointer int... |
src/Avatar/Avatar.js | hai-cea/material-ui | import React, {Component} from 'react';
import PropTypes from 'prop-types';
function getStyles(props, context) {
const {
backgroundColor,
color,
size,
} = props;
const {avatar} = context.muiTheme;
const styles = {
root: {
color: color || avatar.color,
backgroundColor: backgroundCo... |
examples/counter/index.js | javascriptjedi/redux-select | import React from 'react'
import ReactDOM from 'react-dom'
import { createStore } from 'redux'
import Counter from './components/Counter'
import counter from './reducers'
const store = createStore(counter)
const rootEl = document.getElementById('root')
function render() {
ReactDOM.render(
<Counter
value={... |
src/esm/components/graphics/icons/document-icon-house/index.js | KissKissBankBank/kitten | import React from 'react';
import PropTypes from 'prop-types';
import { DocumentIconEmpty } from '../document-icon-empty';
export var DocumentIconHouse = function DocumentIconHouse(props) {
return /*#__PURE__*/React.createElement(DocumentIconEmpty, props, /*#__PURE__*/React.createElement("path", {
className: "kis... |
ReactComponents/CampaignView.js | DoSomething/LetsDoThis-iOS | 'use strict';
import React from 'react';
import {
Text,
Image,
TouchableHighlight,
ListView,
View,
RefreshControl,
NativeAppEventEmitter,
StyleSheet,
} from 'react-native';
import Dimensions from 'Dimensions';
var Style = require('./Style.js');
var Helpers = require('./Helpers.js');
var NetworkErrorV... |
app/config/routes.js | alessandrodeste/cv-react | import React from 'react';
import Main from '../components/Main';
import ResumeContainers from '../containers/ResumeContainer';
import ReactRouter, { Router, Route, hashHistory, IndexRoute } from 'react-router';
const routes = (
<Router history={hashHistory}>
<Route path='/' component={Main}>
<IndexRoute c... |
06-react-blogs/src/index.js | iproduct/course-node-express-react | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { BrowserRouter } from 'react-router-dom';
// import M from 'materialize-css/dist/js/materialize';
ReactDOM.render(
<React.StrictMode>
<BrowserRouter... |
javascripts/vendor/jquery.js | oannes/askmefive | /*!
* 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(e,t){function P(e){var t=e.length,n=b... |
html/vendors/jQuery-Smart-Wizard/js/jquery-1.4.2.min.js | jamesiter/jimauth | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/admin_components/EditableEntry.js | serzhshakur/quest-application-reactjs | import React from 'react'
import { PureComponent } from 'react'
export default class extends PureComponent {
constructor(props) {
super(props)
}
replaceUnnecessaryAttributes(targetElement) {
// workaround for bug when Chrome adds extra 'style' attributes to some elements
while (tar... |
src/svg-icons/action/polymer.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPolymer = (props) => (
<SvgIcon {...props}>
<path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"/>
</SvgIcon>
);
ActionPolymer = pure(ActionPolymer);
ActionPolymer.d... |
node_modules/react-router/es6/IndexLink.js | mbestwick/medication-search | 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 './Link';
/**
*... |
packages/icons/src/md/navigation/Apps.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdApps(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M8 16h8V8H8v8zm12 24h8v-8h-8v8zM8 40h8v-8H8v8zm0-12h8v-8H8v8zm12 0h8v-8h-8v8zM32 8v8h8V8h-8zm-12 8h8V8h-8v8zm12 12h8v-8h-8v8zm0 12h8v-8h-8v8z" />
</... |
ajax/libs/vue/1.0.16-csp/vue.common.min.js | Amomo/cdnjs | "use strict";function set(e,t,n){if(hasOwn(e,t))return void(e[t]=n);if(e._isVue)return void set(e._data,t,n);var r=e.__ob__;if(!r)return void(e[t]=n);if(r.convert(t,n),r.dep.notify(),r.vms)for(var i=r.vms.length;i--;){var a=r.vms[i];a._proxy(t),a._digest()}return n}function del(e,t){if(hasOwn(e,t)){delete e[t];var n=e.... |
packages/material-ui-icons/src/VolumeDown.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let VolumeDown = props =>
<SvgIcon {...props}>
<path d="M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z" />
</SvgIcon>;
VolumeDown = pure(VolumeDown);
VolumeDown.mu... |
src/frontend/bundles/homePage/components/HomePage/HomePageContainer.js | vslinko/ripster | import React from 'react';
import Relay from 'react-relay';
import { compose } from 'redux';
import { connect } from 'react-redux';
import relay from 'frontend/utils/relay';
import { LocaleButtonsContainer } from 'frontend/bundles/locale/components/LocaleButtons';
import { SignInFormContainer } from 'frontend/bundles/... |
src/library/Icon/__tests__/Icon.spec.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import { shallow } from 'enzyme';
import Icon from '../Icon';
import examples from '../../../website/app/demos/Icon/Icon/examples';
import testDemoExamples from '../../../../utils/testDemoExamples';
function shallowIcon(props = {}) {
const iconProps = {
...props
};
retu... |
libraries/react/component-will-receive-props/src/Content.js | vivaxy/course | /**
* @since 2017-05-11 17:57:28
* @author vivaxy
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class Content extends Component {
static contextTypes = {
store: PropTypes.object,
};
componentWillReceiveProps(nextProps, nextContext) {
console.log('Con... |
app/javascript/mastodon/features/notifications/components/filter_bar.js | d6rkaiz/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
const tooltips = defineMessages({
mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' },
favourites: { id: '... |
src/components/projects/content/Morgans.js | tehfailsafe/portfolio2015 | import React from 'react';
import Section from '../show/Section'
import CopySplitLeft from '../show/CopySplitLeft'
import CopySplitRight from '../show/CopySplitRight'
import Copy from '../show/Copy'
import ImageFull from '../show/ImageFull'
import VideoPlayer from '../show/VideoPlayer'
export default React.createCla... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store_new/source/src/app/components/Base/Header/Header.js | lakmali/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
src/routes/index.js | recharts/recharts.org | import React, { Component } from 'react';
import { Route, IndexRoute, Redirect, IndexRedirect } from 'react-router';
import _ from 'lodash';
import { IndexView, GuideView, APIView, ExamplesView, BlogView } from '../views';
import Frame from '../layouts/Frame';
import Locale from '../locale';
const locales = Object.key... |
ajax/libs/aui/5.6.7/aui/js/aui-dependencies.js | vuonghuuphuc/cdnjs | !function(){"use strict";function a(c,d){p||(p=new o(function(b){b.forEach(function(b){a.init(b.addedNodes),f(b.removedNodes)})}),p.observe(document,{childList:!0,subtree:!0})),d||(d={}),"function"==typeof d&&(d={insert:d}),l(d,a.defaults);var e=m(c,d);d.ready&&n.sheet.insertRule(c+":not(."+d.classname+"),["+c+"]:not(.... |
node_modules/antd/es/collapse/Collapse.js | yhx0634/foodshopfront | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _createClass from 'babel-runtime/helpers/createClass';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
ajax/libs/glamorous/3.19.1/glamorous.umd.js | nolsherry/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('glamor')) :
typeof define === 'function' && define.amd ? define(['react', 'glamor'], factory) :
(global.glamorous = factory(global.React,global.Glamor));
}(this, (function ... |
ajax/libs/cleave.js/0.6.12/cleave-angular.js | holtkamp/cdnjs | ;(function(window, document, undefined) {
'use strict';
/**
* Construct a new Cleave instance by passing the configuration object
*
* @param {String / HTMLElement} element
* @param {Object} opts
*/
var Cleave = function (element, opts) {
var owner = this;
if (typeof element === 'string') {
owner... |
ajax/libs/primereact/6.6.0-rc.1/overlaypanel/overlaypanel.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { UniqueComponentId, ConnectedOverlayScrollHandler, DomHandler, OverlayService, ZIndexUtils, Ripple, classNames, CSSTransition, Portal } from 'primereact/core';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new T... |
client/app/src/containers/App/index.js | gk95/nightlux | import React from 'react';
import {
BrowserRouter,
Link,
Route,
Switch,
} from 'react-router-dom';
import {
ApolloClient,
ApolloProvider,
createNetworkInterface,
} from 'react-apollo';
import style from './style.css';
import Home from 'Containers/Home';
import Category from 'Containers/Category';
impor... |
app/components/ListItem/index.js | romanvieito/ball-simpler | import React from 'react';
import PropTypes from 'prop-types';
import Item from './Item';
import Wrapper from './Wrapper';
function ListItem(props) {
return (
<Wrapper>
<Item>
{props.item}
</Item>
</Wrapper>
);
}
ListItem.propTypes = {
item: PropTypes.any,
};
export default ListIte... |
ajax/libs/react-cookie/0.4.1/react-cookie.min.js | sashberd/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... |
example/src/pages/ShouldDecorateChildren.js | ethanselzer/react-touch-position | import React, { Component } from 'react';
import {
Col,
Grid,
Jumbotron,
Row
} from 'react-bootstrap';
import Helmet from 'react-helmet';
import ShouldDecorateChildren from '../components/ShouldDecorateChildren';
import Header from '../components/Header';
import 'bootstrap/dist/css/bootstrap.css';
import '../... |
examples/forms-bootstrap/src/components/forms-create-wizard-generic/Layout.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import Hook from './Hook';
import hookCode from '!raw-loader!./Hook';
export default createReactClass({
displayName: 'Layout',
render: function() {
return (
<div className="example">
<h3>
Form: Create - Wizar... |
ajax/libs/angular.js/0.9.17/angular-scenario.min.js | terrymun/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/wrappers/BotChatWrapper.js | tmpaul06/gathering-client | import React from 'react';
import { socket } from '../socket';
import ChatBox from '../components/ChatBox';
export default class BotChatWrapper extends React.Component {
constructor(props) {
super(props);
this.state = {
messages: []
};
this.handleBotReply = this.handleBotReply.bind(this);
t... |
node_modules/react-icons/fa/pinterest-square.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaPinterestSquare = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m30.9 2.9q2.6 0 4.5 1.8t1.9 4.6v21.4q0 2.7-1.9 4.6t-4.5 1.8h-16.2q1.9-2.7 2.4-4.6 0.2-0.8 1.2-4.7 0.4 0.9 1.6 1.5t2.5 0.6q4.1 0 6.6-3.3t2.6-8.3q0-1.9-0.8-3.6t... |
HealthAndFitness.Mobile/src/screens/shared/SimpleInputScreen.js | DennisAikara/HealthAndFitness | import React from 'react';
import {
ScrollView, StyleSheet, View, Text, Dimensions, Button, TextInput
} from 'react-native';
export default class SimpleInputScreen extends React.Component {
constructor(props) {
super(props);
this.state = { text: this.props.text };
}
render() {
r... |
04/js/components/CommentList.js | arcthur/react-book-examples | import React, { Component } from 'react';
import CommentActions from '../actions/CommentActions';
import { dispatch } from '../dispatcher/AppDispatcher';
class CommentList extends Component {
componentDidMount() {
CommentActions.loadComment();
}
render() {
const list = this.props.comment;
return (
... |
src/components/views/donor/DonorConfirmation.js | jennywin/donate-for-good | import React, { Component } from 'react';
export default class DonorConfirmation extends Component {
render() {
return (
<div>
<h2>
<span>Thank you for donating your items to this charity.</span>
<span>Below are the details of the drop-off location.</span>
</h2>
... |
src/js/Main.js | o-d-i-n/nsit-fest | 'use strict'
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, Link, browserHistory } from 'react-router';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
import EventList from './EventList';
import UserPage from './UserPage';
import... |
ajax/libs/angular-data/0.10.1/angular-data.js | mrehayden1/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 0.10.1 - Homepage <http://angular-data.pseudobry.com/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Data store for Angular.js... |
src/util/file-browser.js | ordinarygithubuser/IDE | import React from 'react';
import { equalsPath } from '../util/common';
const isSelected = (selected, file) => {
return selected && equalsPath(selected, file);
};
const DirectoryItem = props => {
const { file, select, selected, toggle, setContext } = props;
const status = file.open ? 'caret-down' : 'caret... |
ajax/libs/angular.js/0.10.3/angular.js | tengyifei/cdnjs | /**
* @license AngularJS v0.10.3
* (c) 2010-2011 AngularJS http://angularjs.org
* License: MIT
*/
'use strict';
(function(window, document, undefined){
////////////////////////////////////
if (typeof document.getAttribute == $undefined)
document.getAttribute = function() {};
/**
* @ngdoc function
* @name ang... |
websocket/client/Client/node_modules/react-native/local-cli/server/middleware/heapCapture/webpack.config.js | prayuditb/tryout-01 | const webpack = require('webpack');
module.exports = {
devtool: 'inline-source-map',
entry: './src/heapCapture.js',
resolve: {
extensions: ["", ".js", ".jsx"],
},
module: {
loaders: [
{
test: /\.jsx?$/,
include: /\/src\//,
loader: 'babel-loader',
query: {
... |
sites/all/modules/ctools/js/dependent.js | chaitanya-agsft/demo_drupal | /**
* @file
* Provides dependent visibility for form items in CTools' ajax forms.
*
* To your $form item definition add:
* - '#process' => array('ctools_process_dependency'),
* - '#dependency' => array('id-of-form-item' => array(list, of, values, that,
* make, this, item, show),
*
* Special considerations:
... |
ajax/libs/material-ui/4.10.2/Hidden/Hidden.js | cdnjs/cdnjs | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _extends2 = _interopRequireDefaul... |
src/util/connect-component.js | pdvend/eventos | import React from 'react';
const ConnectComponent = (view, presenter) => React.createClass({
displayName: `ConnectComponent(${view.name}, ${presenter.name})`,
render: function () {
const _presenter = new presenter();
return React.createElement(view, { ...this.props, presenter: _presenter })
},
});
expor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.