path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
packages/ringcentral-widgets-demo/demo-extension/client.js | u9520107/ringcentral-js-widget | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore } from 'redux';
import { ClientTransport } from 'ringcentral-integration/lib/ChromeTransport';
import getProxyClient from 'ringcentral-integration/lib/proxy/getProxyClient';
import Phone from '../dev-server/Phone';
import App from '../dev... |
frontend/components/PageTitle.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
import {Helmet} from 'react-helmet';
const PageTitle = ({children}) => <Helmet><title>{children}</title></Helmet>;
PageTitle.propTypes = {
children: PropTypes.string.isRequired,
};
export default PageTitle;
|
client/Main/Content/Images/Image/ImageView/ImageView.js | PicDrop/PicDrop | import React from 'react';
import axios from 'axios';
import FlatButton from 'material-ui/lib/flat-button';
import Card from 'material-ui/lib/card/card';
import CardActions from 'material-ui/lib/card/card-actions';
import CardMedia from 'material-ui/lib/card/card-media';
import Paper from 'material-ui/lib/paper';
impor... |
src/Survey/Complex/Default/Edit/Main/components/SpeciesList/components/SubSample/index.js | NERC-CEH/irecord-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import {
IonItemOption,
IonItemOptions,
IonItem,
IonItemSliding,
IonButton,
} from '@ionic/react';
import './styles.scss';
@observer
class index extends Component {
static propTypes = {
... |
react-native-life/ReactNativeLife/js/Components/SectionList/index.js | CaMnter/front-end-life | /**
* @author CaMnter
*/
import React from 'react';
import {SectionListExample} from "./SectionList";
class Root extends React.Component{
constructor(props){
super(props);
}
render(){
return(
<SectionListExample/>
);
}
}
module.exports = Root; |
examples/huge-apps/components/App.js | Sirlon/react-router | import React from 'react';
import Dashboard from './Dashboard';
import GlobalNav from './GlobalNav';
class App extends React.Component {
static loadProps (params, cb) {
console.log('App', 'loadProps');
cb(null, { courses: COURSES });
}
render () {
var { courses, loading } = this.props;
return (... |
app/javascript/mastodon/containers/status_container.js | amazedkoumei/mastodon | import React from 'react';
import { connect } from 'react-redux';
import Status from '../components/status';
import { makeGetStatus } from '../selectors';
import {
replyCompose,
mentionCompose,
directCompose,
} from '../actions/compose';
import {
reblog,
favourite,
unreblog,
unfavourite,
pin,
unpin,
}... |
ajax/libs/mobx/2.5.0/mobx.min.js | kennynaoh/cdnjs | /** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */
"use strict";function e(e,n,r,o){return 1===arguments.length&&"function"==typeof e?P(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof n?P(e,n):1===arguments.length&&"string"==typeof e?t(e):t(n).apply(null,arguments)}function t(e){return... |
ajax/libs/buy-button-js/0.3.11/buybutton.js | tholu/cdnjs | var ShopifyBuy = (function () {
'use strict';
var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}
function interopDefault(ex) {
return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex;
}
function cre... |
packages/material-ui-icons/src/SkipPreviousTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M16 14.14V9.86L12.97 12z" opacity=".3" /><path d="M6 6h2v12H6zM18 18V6l-8.5 6 8.5 6zm-2-3.86L12.97 12 16 9.86v4.28z" /></React.Fragment>
, 'Skip... |
src/svg-icons/av/skip-next.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSkipNext = (props) => (
<SvgIcon {...props}>
<path d="M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"/>
</SvgIcon>
);
AvSkipNext = pure(AvSkipNext);
AvSkipNext.displayName = 'AvSkipNext';
AvSkipNext.muiName = 'SvgIcon... |
src/svg-icons/action/zoom-out.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionZoomOut = (props) => (
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 ... |
ajax/libs/material-ui/5.0.0-alpha.30/node/Toolbar/Toolbar.min.js | cdnjs/cdnjs | "use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _objectWithoutPropertiesLoose2=_interopRequireDefault(require... |
public/js/jquery-ui-1.10.3.custom/development-bundle/jquery-1.9.1.js | dereckleme/onlineteste | /*!
* 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/action/settings.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettings = (props) => (
<SvgIcon {...props}>
<path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l... |
packages/react-static/src/static/components/BodyWithMeta.js | nozzle/react-static | import React from 'react'
import { pathJoin, makePathAbsolute } from '../../utils'
import jsesc from 'jsesc';
const generateRouteInformation = embeddedRouteInfo => ({
__html: `
window.__routeInfo = JSON.parse(${jsesc(JSON.stringify(embeddedRouteInfo), {
isScriptContext: true,
wrap: true,
json: ... |
src/components/Login.js | hrasoa/rsk | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Login extends Component {
render() {
const { handleSignIn, handleSignUp } = this.props;
return (
<div>
<h1>Login / Register</h1>
<form>
<ul>
<li>
<input
... |
packages/material-ui-icons/src/PhotoAlbumSharp.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="M20 2H4v20h16V2zM6 4h5v8l-2.5-1.5L6 12V4zm0 15l3-3.86 2.14 2.58 3-3.86L18 19H6z" /></g></React.Fragment>
, 'PhotoAlbumSharp');
|
Example/components/Login.js | charpeni/react-native-router-flux | import React from 'react';
import {View, Text, StyleSheet} from "react-native";
import Button from "react-native-button";
import {Actions} from "react-native-router-flux";
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
backgroundColor: "#F5FCF... |
src/pages/client/index.js | Vision100IT/v100it-template | import React from 'react';
import PropTypes from 'prop-types';
import fm from 'front-matter';
import hash from 'string-hash';
import Alert from '../../components/alert';
import Card from '../../components/card';
import Hero from '../../components/hero';
import Index from '../../components';
import {Markdown} from '../.... |
node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-wrapper/node_modules/download/node_modules/decompress/node_modules/map-key/node_modules/underscore.string/test/test_underscore/vendor/jquery.js | innovationsforlearning/wireframes | /*!
* 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.
... |
src/components/google_map.js | JohnDHamm/trail-tracker-react | import React, { Component } from 'react';
import { connect } from 'react-redux';
class GoogleMap extends Component {
// componentDidMount() {
// new google.maps.Map(this.refs.map, {
// zoom: this.props.zoom,
// center: {
// lat: this.props.lat,
// lng: this.props.lon,
// }
// });
// }
render... |
src/Collapse.js | xsistens/react-bootstrap | import React from 'react';
import Transition from 'react-overlays/lib/Transition';
import domUtils from './utils/domUtils';
import CustomPropTypes from './utils/CustomPropTypes';
import deprecationWarning from './utils/deprecationWarning';
import createChainedFunction from './utils/createChainedFunction';
let capitali... |
lib/components/MapLocalTile.js | zigbang/react-native-maps | import PropTypes from 'prop-types';
import React from 'react';
import {
ViewPropTypes,
View,
} from 'react-native';
import decorateMapComponent, {
USES_DEFAULT_IMPLEMENTATION,
SUPPORTED,
} from './decorateMapComponent';
// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
cons... |
node_modules/babel-polyfill/node_modules/core-js/modules/es6.promise.js | bdkay/node-that-band | 'use strict';
var LIBRARY = require('./_library')
, global = require('./_global')
, ctx = require('./_ctx')
, classof = require('./_classof')
, $export = require('./_export')
, isObject = require('./_is-object')
, aFunction = req... |
node_modules/react-bootstrap/es/Badge.js | CallumRocks/ReduxSimpleStarter | 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 ... |
demos/cards/demos/square-card.js | isogon/styled-mdl-website | import React from 'react'
import styled from 'styled-components'
import {
Button,
Card,
CardActions,
CardSupportingText,
CardTitle,
CardTitleText,
shadow2dp,
} from 'styled-mdl'
const DemoCardSquare = Card.extend`
${shadow2dp()}
width: 320px;
height: 320px;
`
const DemoCardTitle = CardTitle.exte... |
src/parser/paladin/retribution/CONFIG.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Juko8, Skeletor } from 'CONTRIBUTORS';
import SPECS from 'game/SPECS';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If someon... |
src/components/Pagination/Pagination-story.js | joshblack/carbon-components-react | /**
* 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 React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import {
withK... |
examples/full-example/src/isomorphic/base/components/body.js | yahoo/mendel | /* Copyright 2015, Yahoo Inc.
Copyrights licensed under the MIT License.
See the accompanying LICENSE file for terms. */
import React from 'react';
import Toolbar from './toolbar';
import Board from './message_board';
import Button from './button';
let Lazy;
class Body extends React.Component {
constructor(... |
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... |
src/react/Machines.js | laundree/laundree | // @flow
import React from 'react'
import { ValidationElement, ValidationForm } from './validation'
import { DropDown, DropDownTitle, DropDownContent, DropDownCloser } from './dropdown'
import { Meta, Modal, Label, Input, Submit } from './intl'
import sdk from '../client/sdk'
import { FormattedMessage } from 'react-int... |
docs/src/sections/ButtonGroupSection.js | SSLcom/Bootsharp | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function ButtonGroupSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
src/Overlay.js | adamschroder/react-overlays | import React from 'react';
import Portal from './Portal';
import Position from './Position';
import RootCloseWrapper from './RootCloseWrapper';
import elementType from 'react-prop-types/lib/elementType';
/**
* Built on top of `<Position/>` and `<Portal/>`, the overlay component is great for custom tooltip overlays.
... |
client/src/js/components/rooms/RoomsSpinner.js | abitlog/retube | import React from 'react';
import Spinner from 'react-spinkit';
const RoomsSpinner = () => {
return (
<Spinner overrideSpinnerClassName="spinner" spinnerName='circle' noFadeIn/>
);
};
export default RoomsSpinner; |
src/front/js/components/NavPageList.js | raccoon-app/ui-kit | import React, { Component, PropTypes } from 'react';
import NavArtboardList from './NavArtboardList';
import classnames from 'classnames';
class NavPageList extends Component {
render() {
const { pageId, activeArtboard, isActivePage, isOpenPage, name, viewMode, filter } = this.props;
const artboard... |
files/yasgui/1.2.0/yasgui.bundled.min.js | Asaf-S/jsdelivr | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
misc/jquery.js | alastairmoore/aom-base |
/*!
* jQuery JavaScript Library v1.4.4
* 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/app/components/results/results.js | swcraftersclm/katangapp-frontend | /**
* Copyright 2016-today Software swcraftersclm
*
* 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 ... |
ajax/libs/rxjs-dom/5.0.3/rx.dom.js | emijrp/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
var ... |
src/components/InfinityMenu/EmptyTree.js | City-of-Helsinki/helerm-ui | import React from 'react';
const EmptyTree = () => {
return (
<div className='alert alert-danger'>
<p>Ei tuloksia</p>
</div>
);
};
export default EmptyTree;
|
ajax/libs/react-native-web/0.16.3/exports/createElement/index.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.
*
*
*/
import AccessibilityUtil from '../../modules/AccessibilityUtil';
import createDOMProps from '../../modules/createDOMProps';
import React fro... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/crop-free.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageCropFree = (props) => (
<SvgIcon {...props}>
<path d="M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ImageCropFree.displayName =... |
src/Components/Loading/index.js | gabriel-lopez-lopez/gll-billin-code-challenge | /**
* Componente Loading de la aplicación
*
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
// Estilos personalizados
import './loading.less';
// Exportar y utilizar el nombre de la clase no conectada para los tests
export class Loading extends Component {
constructor(props... |
docs/pages/api-docs/timeline-dot.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/timeline-dot';
const requireRaw = require.context('!raw-loader!./', false, /\/timeline-dot\.md$/);
export default function P... |
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | dwango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import ImmutablePropTypes from ... |
spec/react/checkbox/checkbox.spec.js | pivotal-cf/pivotal-ui | import React from 'react';
import ReactDOM from 'react-dom';
import $ from 'jquery';
import {setProps} from '../../support/jest-helpers';
import {spyOnRender} from '../../support/jest_spy_on_render';
import {Checkbox} from '../../../src/react/checkbox';
import {Icon} from '../../../src/react/iconography';
describe('Ch... |
src/App.js | lucaslencinas/react-node-socketio-template | import 'babel-polyfill';
import React from 'react';
import PropTypes from 'prop-types';
import { Router, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import { ReduxAsyncConnect } from 'redux-connect';
import RouterContext from 'react-router/lib/RouterContext';
import { configureStore } ... |
src/app.js | sagar12861/mars | import React from 'react';
import ReactDOM from 'react-dom';
import Layout from 'Layout/Layout';
ReactDOM.render(<Layout />,document.getElementById('app'));
|
packages/material-ui-icons/src/SkipPreviousSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M6 6h2v12H6V6zm3.5 6l8.5 6V6l-8.5 6z" /></React.Fragment>
, 'SkipPreviousSharp');
|
src/components/bandwith_index.js | danshapiro-optimizely/bandwidth | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchData } from '../actions';
class BandwidthIndex extends Component {
componentDidMount() {
this.props.fetchData();
}
render() {
return (
<div>
<div>{ this.props.workload[0] }</div>
</div>
... |
examples/shopping-cart/src/components/CartItem.js | granmoe/redux-saga | import React, { Component, PropTypes } from 'react'
import Product from './Product'
export default class CartItem extends Component {
render() {
const { price, quantity, title, onRemove } = this.props
return (
<Product
price={price}
quantity={quantity}
title={title}
act... |
example/superchatExample/App.js | super-chat/react-native-superchat | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import { Chat } from 'react-native-superchat';
import messages from './data/messages'
import {
Platform,
StyleSheet,
Text,
View
} from 'react-native';
export default class App exte... |
src/client/components/SectionHeaderWidget/SectionHeaderWidget.js | vidaaudrey/trippian | import log from '../../log'
import React from 'react'
import {
SectionHeaderWidget as appConfig
}
from '../../config/appConfig'
const SectionHeaderWidget = ({
title = appConfig.title, subTitle = appConfig.subTitle
}) => {
return (
<div className="section-header text-center">
<h2>{title}</h2>
{s... |
src/Sandbox/MLmodels/Chatbot/Message.js | MLsandbox/MLsandbox | import React, { Component } from 'react';
const Message = ({message}) => {
if (message.message) {
return (
<li className={`${message.from}-message`}><div className="sender-bubble">{message.message}</div></li>
);
} else {
return null;
}
};
export default Message; |
src/svg-icons/maps/local-pharmacy.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPharmacy = (props) => (
<SvgIcon {...props}>
<path d="M21 5h-2.64l1.14-3.14L17.15 1l-1.46 4H3v2l2 6-2 6v2h18v-2l-2-6 2-6V5zm-5 9h-3v3h-2v-3H8v-2h3V9h2v3h3v2z"/>
</SvgIcon>
);
MapsLocalPharmacy = pure... |
src/components/__tests__/InfoBar-test.js | Trippstan/elephonky | import React from 'react';
import ReactDOM from 'react-dom';
import {renderIntoDocument} from 'react-addons-test-utils';
import { expect} from 'chai';
import { InfoBar } from 'components';
import { Provider } from 'react-redux';
import { browserHistory } from 'react-router';
import createStore from 'redux/create';
impo... |
docs/src/pages/layout/use-media-query/SimpleMediaQuery.js | Kagami/material-ui | import React from 'react';
import { unstable_useMediaQuery as useMediaQuery } from '@material-ui/core/useMediaQuery';
export default function SimpleMediaQuery() {
const matches = useMediaQuery('(min-width:600px)');
return <span>{`(min-width:600px) matches: ${matches}`}</span>;
}
|
node_modules/bower/node_modules/inquirer/node_modules/rx/src/core/linq/observable/never.js | yongshengwang/angular.js | /**
* Returns a non-terminating observable sequence, which can be used to denote an infinite duration (e.g. when using reactive joins).
* @returns {Observable} An observable sequence whose observers will never get called.
*/
var observableNever = Observable.never = function () {
return new AnonymousOb... |
src/apps/CustomSockets/CustomSocketsListItem.js | Syncano/syncano-dashboard | import React from 'react';
import { withRouter } from 'react-router';
import { colors as Colors } from 'material-ui/styles';
import { ColumnList } from '../../common/';
const Column = ColumnList.Column;
const CustomSocketsListItem = ({ item, params, router }) => {
const { metadata } = item;
const endpointsLink =... |
antd-dva/ant-design-pro-demo/test/src/components/ActiveChart/index.js | JianmingXia/StudyTest | import React, { Component } from 'react';
import { MiniArea } from '../Charts';
import NumberInfo from '../NumberInfo';
import styles from './index.less';
function fixedZero(val) {
return val * 1 < 10 ? `0${val}` : val;
}
function getActiveData() {
const activeData = [];
for (let i = 0; i < 24; i += 1) {
... |
src/main.js | popaulina/grackle | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState ... |
src/Eve-Corporation-Portal/Scripts/jquery-1.8.2.js | CreativeSolutionDevelopment/eve-corporation-portal | /*!
* jQuery JavaScript Library v1.8.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
node_modules/react-icons/fa/street-view.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaStreetView = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35.9 34.3q0 1.4-1.3 2.5t-3.7 1.8-5 1.1-5.7 0.3-5.6-0.3-5.1-1.1-3.6-1.8-1.4-2.5q0-1.1 0.7-2t2.1-1.5 2.6-1 2.9-0.6q0.6-0.1 1.1 0.2t0.6 0.9q0.1 0.6-0.3 1.1t-0.9 0.6q... |
test/updateTree-test.js | gre/react-motion | import React from 'react';
import {updateCurrValue, updateCurrVelocity} from '../src/updateTree';
const FRAME_RATE = 1 / 60;
describe('updateCurrValue', () => {
it('should not error on null', () => {
expect(updateCurrValue(FRAME_RATE, {val: null}, {val: null}, {val: null}))
.toEqual({val: null});
});
... |
ajax/libs/vkui/4.21.0/cssm/components/Epic/Epic.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
var _excluded = ["activeStory", "tabbar", "children", "viewWidth"];
import { createScopedElement } from "../../lib/jsxRuntime";
import * as React from 'react';
import { getClassN... |
ajax/libs/jquery/1.11.1/jquery.js | Bilge/cdnjs | /*!
* jQuery JavaScript Library v1.11.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:42Z
*/
(function( global, factory ) {
if ... |
addons/themes/strongly-typed/layouts/Single.js | rendact/rendact | import $ from 'jquery'
import React from 'react';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import moment from 'moment';
import {Link} from 'react-router';
import scrollToElement from 'scroll-to-element';
let Single = React.createClass({
componentDidMount(){
require('../assets/css/main... |
ui/js/pages/message/MessageAdd.js | ericsoderberg/pbc-web |
import React from 'react';
import PropTypes from 'prop-types';
import Add from '../../components/Add';
import { searchToObject } from '../../utils/Params';
import MessageFormContents from './MessageFormContents';
import MessagePreview from './MessagePreview';
const MessageAdd = (props) => {
const { history, locatio... |
app/components/sampleComponent/sampleComponent.js | michaelparenteau/spark | import React, { Component } from 'react';
import Icon from 'react-fa';
require('./sampleComponent.scss');
export default class SampleComponent extends Component {
render() {
return (
<div className="sample-container">
<div className="sample-component">
<h1>Spark says hello.</h1>
... |
CleanViewBack/assets/js/vendor/jquery-1.10.2.min.js | Pangamma/CleanView_Back | /*! 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... |
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... |
app/javascript/mastodon/features/favourites/index.js | mhffdq/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourites } from '../../actions/interactions';
import { ScrollContainer } fr... |
react-flux-mui/js/material-ui/src/svg-icons/av/playlist-play.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistPlay = (props) => (
<SvgIcon {...props}>
<path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/>
</SvgIcon>
);
AvPlaylistPlay = pure(AvPlaylistPlay);
AvPlaylistPlay.displayName = '... |
src/components/DialogCloseAnimation/index.js | u-wave/web | import React from 'react';
import PropTypes from 'prop-types';
/**
* Component that handles the material-ui/Dialog close animation when a Dialog unmounts.
*/
export default class DialogCloseAnimation extends React.Component {
timeout = null;
static propTypes = {
children: PropTypes.element,
delay: PropT... |
packages/material-ui-icons/src/SignalCellular2BarRounded.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 fillOpacity=".3" d="M4.41 22H20c1.1 0 2-.9 2-2V4.41c0-.89-1.08-1.34-1.71-.71L3.71 20.29c-.63.63-.19 1.71.7 1.71z" /><path d="M14 10L3.71 20.29c-... |
Example/App.js | rayshih/react-native-image-picker | import React from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
PixelRatio,
TouchableOpacity,
Image,
} from 'react-native';
import ImagePicker from 'react-native-image-picker';
export default class App extends React.Component {
state = {
avatarSource: null,
videoSource: null
};
... |
tests/routes/Home/components/HomeView.spec.js | ExtraGains/XLBS | import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'
describe('(View) Home', () => {
let _component
beforeEach(() => {
_component = render(<HomeView />)
})
it('Renders a welcome message', () => {
const welcome = _component.find('h4')
... |
js/setup.js | msbu-tech/msbu-tech-anywhere | /**
* Copyright (c) 2016 MSBU Tech. All Rights Reserved.
* This program is distributed under MIT License.
*/
'use strict';
import React from 'react';
import { Platform } from 'react-native';
import { Navigation } from 'react-native-navigation';
import { iconsMap, iconsLoaded } from './assets/appicons';
import code... |
profiles/panopoly/libraries/jquery.imagesloaded/js/vendor/jquery.min.js | aklepner/brma | /*! jQuery v@1.8.1 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==... |
client/modules/App/__tests__/Components/Header.spec.js | Bonchouuur/kimanjou | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import { FormattedMessage } from 'react-intl';
import { Header } from '../../components/Header/Header';
import { intl } from '../../../../util/react-intl-test-helper';
const intlProp = { ...intl, enabledLang... |
lib/components/MapUrlTile.js | amitv87/react-native-maps | import PropTypes from 'prop-types';
import React from 'react';
import {
ViewPropTypes,
} from 'react-native';
import decorateMapComponent, {
USES_DEFAULT_IMPLEMENTATION,
SUPPORTED,
} from './decorateMapComponent';
const propTypes = {
...ViewPropTypes,
/**
* The url template of the tile server. The patt... |
client/components/Flass/Lecture/Analysis/AnalysisHeaderItem.js | Nexters/flass | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import color from '~/css/base/colors.scss';
const propTypes = {
headerName: PropTypes.string.isRequired,
rangeComponent: PropTypes.object.isRequired,
headerDetail: PropTypes.string.isRequired
};
const default... |
src/components/App.js | Dankoda/react-unit-test | import React from 'react'
import { browserHistory, Router } from 'react-router'
import { Provider } from 'react-redux'
import PropTypes from 'prop-types'
class App extends React.Component {
static propTypes = {
store: PropTypes.object.isRequired,
routes: PropTypes.object.isRequired,
}
shouldComponentUpd... |
src/components/GridContainer/CellRenderers/StateCellRenderer.js | Zoomdata/nhtsa-dashboard | import React, { Component } from 'react';
export default class DefaultMetricCellRenderer extends Component {
constructor(props) {
super(props);
this.stateAbbreviationLookup = {
Alabama: 'AL',
Alaska: 'AK',
Arizona: 'AZ',
Arkansas: 'AR',
California: 'CA',
Colorado: 'CO',
... |
ajax/libs/zeroclipboard/2.0.0-beta.6/ZeroClipboard.Core.js | shallaa/cdnjs | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.0.0-beta.6
*/
(function(window, undefined) {
"use s... |
packages/mui-icons-material/lib/MarkEmailReadSharp.js | oliviertassinari/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
components/Navigation/Navigation.js | james4388/react-static-boilerplate | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
import './Navigation.scss';
import Link from '../Link';
export default class extends Component {
render() {
return (
... |
ajax/libs/onsen/2.0.0-alpha.14/js/angular-onsenui.js | BenjaminVanRyseghem/cdnjs | /*! angular-onsenui.js for onsenui - v2.0.0-alpha.14 - 2015-11-10 */
(function(module) {
try { module = angular.module('templates-main'); }
catch(err) { module = angular.module('templates-main', []); }
module.run(['$templateCache', function($templateCache) {
'use strict';
$templateCache.put('templates/sliding_menu.... |
src/Intraspector.js | BespokeInsights/react-fluxible-intraspector | import React from 'react';
import FluxibleMixin from 'fluxible-addons-react/FluxibleMixin';
import IntraspectorStore from './IntraspectorStore';
const TraceFrame = React.createClass({
propTypes: {
traceframe: React.PropTypes.object.isRequired,
count: React.PropTypes.number.isRequired
},
render() {
le... |
node_modules/react-dom/lib/traverseAllChildren.js | dippnerd/home-control-panel | /**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
'use strict... |
App/components/UnassignedEventList/index.js | araneforseti/caretaker-app | import React from 'react';
import { View } from 'react-native';
import EventList from '../shared/EventList';
import container from './container';
import styles from './styles';
function UnassignedEventList({events}) {
return <View style={styles.container}>
<EventList events={events} />
</View>;
}
export defa... |
packages/material-ui-icons/src/CreditCard.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let CreditCard = props =>
<SvgIcon {...props}>
<path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z" />
</SvgIcon>;
CreditCard... |
blueocean-material-icons/src/js/components/svg-icons/editor/wrap-text.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorWrapText = (props) => (
<SvgIcon {...props}>
<path d="M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3 3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"/>
</SvgIcon>
);
EditorWrapText.displayName = 'EditorWrapTe... |
src/components/portfolio-header.js | relwiwa/fcc-portfolio-page | import React from 'react';
import '../styles/portfolio-header.scss';
class PortfolioHeader extends React.Component {
constructor(props) {
super(props);
this.state = {
showNavigation: false
};
}
toggleNavigation() {
this.setState({
showNavigation: !this.state.showNavigation
});
... |
fields/types/html/editor/base/editing-bt.js | nickhsine/keystone | import React from 'react';
export default ({ onClick }) => {
return (
<i className="fa fa-pencil-square-o" onClick={onClick} style={{
position: 'absolute',
fontSize: '50px',
top: 0,
bottom: 0,
left: 0,
right: 0,
width: '55px',
height: '50px',
margin: 'auto',
backgroundColor: '#FFF',
... |
app/components/Header/index.js | interra/data-generate | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import messages from './messages';
import { Link } from 'react-router-dom';
class Header extends React.Component { // eslint-dis... |
examples/draft-0-9-1/tex/js/components/TeXBlock.js | johnmpotter/draft-js | /**
* Copyright (c) 2013-present, Facebook, Inc. All rights reserved.
*
* This file provided by Facebook is 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, INCL... |
js/jquery.js | dr-ait/dr-ait.github.io | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
ajax/libs/thorax/2.1.3/thorax-combined-mobile.js | hhbyyh/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/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.