path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
ajax/libs/6to5/3.0.10/browser-polyfill.js | vdurmont/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
app/javascript/mastodon/features/favourited_statuses/index.js | tri-star/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites';
import Column from '../ui/components/column';
import ColumnHeade... |
Routers/index.android.js | victorditadi/IQApp | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class Routers extends Component {
render() {
return (
<View style={styles.container}>... |
src/svg-icons/editor/format-list-bulleted.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatListBulleted = (props) => (
<SvgIcon {...props}>
<path d="M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 ... |
packages/rocketchat-lib/package.js | mhurwi/Rocket.Chat | Package.describe({
name: 'rocketchat:lib',
version: '0.0.1',
summary: 'RocketChat libraries',
git: ''
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.use('reactive-var');
api.use('reactive-dict');
api.use('coffeescript');
api.use('random');
api.use('check');
api.use('ddp-rate-limiter');
api... |
src/browser/main.js | stephengfriend/cmsbl-este | import Bluebird from 'bluebird';
import React from 'react';
import ReactDOM from 'react-dom';
import Router from 'react-router';
import configureStore from '../common/configureStore';
import createRoutes from './createRoutes';
import {IntlProvider} from 'react-intl';
import {Provider} from 'react-redux';
import {browse... |
ajax/libs/material-ui/4.11.0/ExpansionPanel/ExpansionPanelContext.min.js | cdnjs/cdnjs | "use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var React=_interopRequireWildcard(require("react")),ExpansionPanelContext=React.createContext({});"production"!==process.env.NODE_ENV&&(Expansio... |
public/assets/js/jquery-1.11.1.min.js | 4711TimRob/4711Lab5 | /*! 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/griddle-react/1.0.0-alpha.14/griddle.min.js | sashberd/cdnjs | !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.Griddle=n(require("react")):e.Griddle=n(e.React)}(this,function(__WEBPACK_EXTERNAL_MODULE_3__){return function(e){function n(r){i... |
packages/material-ui-icons/lib/esm/TextSnippet.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "m20.41 8.41-4.83-4.83c-.37-.37-.88-.58-1.41-.58H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.42zM7 7h7v2H7V7zm10 10H7v-2h1... |
node_modules/react-icons/fa/train.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaTrain = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m27.3 0q4.1 0 7.1 2.1t2.9 5v20q0 2.9-2.8 5t-6.8 2.2l4.7 4.5q0.4 0.3 0.2 0.8t-0.7 0.4h-23.5q-0.5 0-0.7-0.4t0.2-0.8l4.7-4.5q-4-0.2-6.8-2.2t-2.8-5v-20q0-2.9 2.9-5t7.1-2.1h... |
ios/Pods/React/react-native-cli/index.js | francocorreasosa/ClimaUY | #!/usr/bin/env node
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*/
var fs = require('fs');
var path = require('path');
var exec = require('child_process').exec;
var prompt = require("prompt");
var CLI_MODULE_PATH = function() {
return path.resolve(
process.cwd(),
'node_modules',
'reac... |
src/PageItem.js | modulexcite/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const PageItem = React.createClass({
propTypes: {
href: React.PropTypes.string,
target: React.PropTypes.string,
title: React.PropTypes.string,
disabled: React.PropTypes.bool,
previous: React.Pr... |
ajax/libs/yasgui/1.0.11/yasgui.bundled.min.js | wenzhixin/cdnjs | !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... |
src/clincoded/static/components/case_control_curation.js | ClinGen/clincoded | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import _ from 'underscore';
import moment from 'moment';
import url from 'url';
import { queryKeyValue, country_codes, external_url_map, curator_page, history_views, content_vie... |
client/trello/src/app/components/HeaderSearch/HeaderSearch.js | Madmous/Trello-Clone | import FontAwesome from 'react-fontawesome';
import React from 'react';
import './HeaderSearch.css';
export default function HeaderSearch(props) {
return (
<div className="Header-Button Header-Board-Search">
<input
className="Header-Board-Search-Input"
type="text"
autoComplete="... |
src/utils/CustomPropTypes.js | xsistens/react-bootstrap | import React from 'react';
import warning from 'react/lib/warning';
import childrenToArray from './childrenToArray';
const ANONYMOUS = '<<anonymous>>';
/**
* Create chain-able isRequired validator
*
* Largely copied directly from:
* https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9... |
src/svg-icons/maps/directions.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirections = (props) => (
<SvgIcon {...props}>
<path d="M21.71 11.29l-9-9c-.39-.39-1.02-.39-1.41 0l-9 9c-.39.39-.39 1.02 0 1.41l9 9c.39.39 1.02.39 1.41 0l9-9c.39-.38.39-1.01 0-1.41zM14 14.5V12h-4v3H8v-4c0-.... |
ajax/libs/forerunnerdb/1.3.449/fdb-all.js | emmy41124/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/browser/app/Container.js | TheoMer/este | // @flow
import React from 'react';
import { Box } from '../../common/components';
type ContainerProps = {
children?: any,
};
const Container = ({ children }: ContainerProps) => (
<Box
margin="auto"
paddingHorizontal={1}
style={theme => ({
maxWidth: theme.container.maxWidths.big,
minHeight... |
test/helpers/shallowRenderHelper.js | puregardenia/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
Components/Core.TaxonomyMenu/Core.TaxonomyMenuWeb/Scripts/jquery-1.9.1.js | SimonDoy/PnP | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
examples/sidebar/app.js | djkirby/react-router | import React from 'react'
import { render } from 'react-dom'
import { browserHistory, Router, Route, Link } from 'react-router'
import withExampleBasename from '../withExampleBasename'
import data from './data'
import './app.css'
const Category = ({ children, params }) => {
const category = data.lookupCategory(par... |
packages/forms/src/deprecated/fields/ObjectField.js | Talend/ui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
getUiOptions,
getWidget,
orderProperties,
retrieveSchema,
getDefaultRegistry,
} from 'react-jsonschema-form/lib/utils';
function DefaultObjectFieldTemplate(props) {
const { TitleField, DescriptionField } = props;
return (
... |
stories/ViewStack.stories.js | bartlomn/react-viewstack | import React, { Component } from 'react';
import { storiesOf, action } from '@kadira/storybook';
import ViewStack from './../src/ViewStack';
let img01 = require( 'url?limit=50000!./assets/img01.jpeg' );
let img02 = require( 'url?limit=50000!./assets/img02.jpeg' );
let img03 = require( 'url?limit=50000!./assets/img03.j... |
src/utils/createContextWrapper.js | BespokeInsights/react-bootstrap | import React from 'react';
/**
* Creates new trigger class that injects context into overlay.
*/
export default function createContextWrapper(Trigger, propName) {
return function(contextTypes) {
class ContextWrapper extends React.Component {
getChildContext() {
return this.props.context;
}
... |
app/layouts/CoreLayout.js | Jan-Jan/react-hackathon-boilerplate | /**
*
* CoreLayout
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React from 'react'
import Helmet from 'react-helmet'
import styled from 'styled-components'
import Header from 'components/Header'
const... |
shared/routes.js | schenedx/studentgarden | import { Route, IndexRoute } from 'react-router';
import React from 'react';
import App from './container/App';
import PostContainer from './container/PostContainer/PostContainer';
import PostDetailView from './container/PostDetailView/PostDetailView';
import CourseListView from './container/CourseList/CourseListView';... |
src/components/ContactPage/ContactPage.js | ksevezich/DayOfBlueprint | import React from 'react'
import classes from './ContactPage.scss'
import AboutSection from 'components/AboutSection'
export const ContactPage = () => (
<div>
<div className={classes.about} >
<div className={'container text-center'}>
<h1 className={classes.header}> Contact Information...</h1>
... |
UI01/UI01_DataGrid_TCFF1253_V01/profiles/load/user_state/user.js | anilmainali/UISamples |
/* Do not edit this file.
*
* If you make changes to this file while the browser is running,
* the changes will be overwritten when the browser exits.
*
* To make a manual change to preferences, you can visit the URL about:config
* For more information, see http://www.mozilla.org/unix/customizing.html#prefs
*/
... |
docs/src/app/components/pages/components/Dialog/ExampleSimple.js | verdan/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* Dialog with action buttons. The actions are passed in as an array of React objects,
* in this example [FlatButtons](/#/components/flat-button... |
frontend/app/components/pages/admin/admin.js | LINKIWI/linkr | import Helmet from 'react-helmet';
import LoadingHOC from 'react-loading-hoc';
import React from 'react';
import AdminConfig from './admin-config';
import AdminVersion from './admin-version';
import AdminRecentLinks from './admin-recent-links';
import AdminUsers from './admin-users';
import AuthenticationHOC from '../... |
examples/todomvc/containers/TodoApp.js | coderstudy/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { Connector } from 'redux/react';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/TodoActions';
export default class TodoApp extends Comp... |
ajax/libs/yui/3.9.1/datatable-body/datatable-body-debug.js | rivanvx/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
src/components/__tests__/ui/card-test.js | elarasu/roverz-chat | /**
* Test to check if the component renders correctly
*/
/* global it expect */
import { Text } from 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import Card from '@ui/Card';
it('Card renders correctly', () => {
const tree = renderer.create(
<Card><Text>Hello world</... |
imports/ui/components/effective-date.js | gagpmr/app-met | import React from 'react';
import ReactDOM from 'react-dom';
import { Loading } from './loading.js';
import { updateEffectiveDate } from '/imports/api/dates/methods.js';
import { browserHistory } from 'react-router';
var DatePicker = require('react-datepicker');
var moment = require('moment');
require('/imports/ui/lay... |
ajax/libs/analytics.js/1.5.2/analytics.js | automaticgiant/cdnjs | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... |
Redux/src/components/app.js | vsanchezrod/React-Redux | import React, { Component } from 'react';
import BookList from '../containers/book-list';
import BookDetail from '../containers/book-detail';
export default class App extends Component {
render() {
return (
<div>
<BookList/>
<BookDetail/>
</div>
);
}
}
|
packages/material-ui-icons/src/SettingsPower.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SettingsPower = props =>
<SvgIcon {...props}>
<path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-5.12... |
src/header.js | xando/commitcoffee | import React from 'react';
import { Box, Text, Heading } from 'grommet';
export default (props) => (
<Box background="dark-1" pad={{
horizontal: "large",
vertical: "medium"
}}
>
<Heading
size="small"
margin={{ vertical: "none" }}>
$ commit -m "c... |
src/svg-icons/image/crop-5-4.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop54 = (props) => (
<SvgIcon {...props}>
<path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"/>
</SvgIcon>
);
ImageCrop54 = pure(ImageCrop54);
ImageCro... |
ajax/libs/victory/0.9.0/victory.js | tonytomov/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Victory"] = factory... |
app/javascript/packs/application.js | pinchtools/piplet | /* eslint no-console:0 */
// This file is automatically compiled by Webpack, along with any other files
// present in this directory. You're encouraged to place your actual application logic in
// a relevant structure within app/javascript and only use these pack files to reference
// that code so it'll be compiled.
//... |
examples/glamorous/src/containers/Home.js | calvinrbnspiess/react-static | import React from 'react'
import { getSiteProps } from 'react-static'
import glamorous from 'glamorous'
//
import logoImg from '../logo.png'
const LogoImage = glamorous.img({
maxWidth: '100%',
})
export default getSiteProps(() => (
<div>
<h1 style={{ textAlign: 'center' }}>Welcome to</h1>
<LogoImage src={... |
node_modules/react-bootstrap/es/PageHeader.js | FoxMessenger/nyt-react | 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/react-textarea-autosize/es/index.js | ishan993/IshanBlogReactRedux | import React from 'react';
import PropTypes from 'prop-types';
function _extends() {
_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)) {
... |
ajax/libs/preact/7.0.3/preact.dev.js | dlueth/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.preact = global.preact || {})));
}(this, function (exports) {
function VNode(nodeName, attributes, childr... |
src/components/MainHeader/UserFooterItem.js | falmar/react-adm-lte | import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
import Link from '../../utils/Link'
const UserFooterItem = props => {
const {children, left, right} = props
const {href, onClick} = props
const cn = classnames({
'pull-left': left && !right,
'pull-right': r... |
resources/assets/js/bootstrap.js | M4gicT0/SaucySong |
window._ = require('lodash');
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
window.$ = window.jQuery = require('jquery');
require('boo... |
__tests__/components/pages/Login.js | trinit/io | import React from 'react'
import {shallow} from 'enzyme'
import {Login} from 'components/pages/Login'
import {constants} from 'config/constants'
import configureMockStore from 'redux-mock-store'
import thunk from 'redux-thunk'
const middlewares = [thunk]
const mockStore = configureMockStore(middlewares)
const applic... |
src/components/RegisterForm/RegisterForm.js | prakash-u/react-redux | import React, { Component } from 'react';
import { reduxForm, Field, propTypes } from 'redux-form';
import registerValidation from './registerValidation';
// eslint-disable-next-line react/prop-types
const Input = ({ input, label, type, meta: { touched, error } }) => (
<div className={`form-group ${error && touched ... |
app/containers/NotFoundPage/index.js | guruganeshm/ReactJs | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
import messages from './messages';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
export default function NotFound() {
return (
<article>
... |
app/containers/Permissions/BoundaryList.js | klpdotorg/tada-frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import get from 'lodash.get';
import isEmpty from 'lodash.isempty';
import { BoundaryListView } from '../../components/Permissions';
import { fetchBoundariesForPermission } from '../../actions';
class ... |
views/invocation.js | w9jds/black-screen | import React from 'react';
import Prompt from './prompt';
export default React.createClass({
componentWillMount() {
this.props.invocation
.on('data', _ => this.setState({canBeDecorated: this.props.invocation.canBeDecorated()}))
.on('status', status => this.setState({status: status})... |
app/javascript/mastodon/features/compose/components/navigation_bar.js | primenumber/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ActionBar from './action_bar';
import Avatar from '../../../components/avatar';
import Permalink from '../../../components/permalink';
import IconButton from '../../../components/icon_button... |
packages/ringcentral-widgets-docs/src/app/pages/Components/ActiveCallBadge/Demo.js | ringcentral/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import ActiveCallBadge from 'ringcentral-widgets/components/ActiveCallBadge';
const props = {};
props.onClick = (e) => {
// eslint-disable-next-line
alert('clicked');
e.preventDefault();
};
props.offsetX = 0;
props.offsetY = 0;
props.updatePositionOffset = (... |
gmatgamefrontend/src/pages/SignUp.js | decodeMERV/GMATgameFE | import React, {Component} from 'react';
import './SignUp.css';
import auth from '../auth';
const ENTER = 13;
export default class LoginHomePage extends Component {
constructor() {
super();
this.state = {}
}
_handleSignUp = () => {
// deep destructuring equivalent to (let email = this.refs.email.v... |
test/jasmine/AtomicImageSpec.js | stefcot/react-design-easier | import React from 'react';
import createComponent from 'react-unit';
import AtomicImage from './../../src/components/AtomicImage';
/**
* Added matchers to jasmine with jasmine-expect
*
* @see https://www.npmjs.com/package/jasmine-expect#installation
*/
describe('AtomicImage', () => {
// Here component is the r... |
analysis/demonhuntervengeance/src/CHANGELOG.js | yajinni/WoWAnalyzer | import React from 'react';
import { Yajinni, Zeboot, LeoZhekov, TurianSniper, Geeii, Makhai } from 'CONTRIBUTORS';
import { change, date } from 'common/changelog';
import { SpellLink } from 'interface';
import SPELLS from 'common/SPELLS';
export default [
change(date(2021, 1, 20), <> Added <SpellLink id={SPELLS.ELY... |
ajax/libs/onsen/2.0.0-rc.19/js/angular-onsenui.min.js | Piicksarn/cdnjs | /*! angular-onsenui.js for onsenui - v2.0.0-rc.18 - 2016-09-15 */
!function(){var initializing=!1,fnTest=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){},Class.extend=function(prop){function Class(){!initializing&&this.init&&this.init.apply(this,arguments)}var _super=this.prototype;initializing=!0;... |
gxa/src/main/javascript/bundles/differential-expression/src/DifferentialRouter.js | gxa/atlas | import React from 'react'
import PropTypes from 'prop-types'
import ReactTooltipStyleClass from './tooltip/ReactTooltipStyleClass'
import Results from './DifferentialResults'
import Facets from './facets-tree/DifferentialFacetsTree'
import UrlManager from './urlManager'
/*
TODO if Solr queries get fast enough that w... |
packages/legacy-events/PluginModuleType.js | jzmq/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {Fiber} from 'react-reconciler/src/ReactFiber';
import type {
DispatchConfig,
ReactSyntheticEvent,
} f... |
fields/types/datetime/DatetimeField.js | Freakland/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import { Button, FormField, FormInput, FormNote, InputGroup } from 'elemental';
module.exports = Field.create({
displayName: 'DatetimeField',
focusTargetRef: 'dateInput',
// d... |
src/views/tick.js | TannerRogalsky/np_visualizer | import React from 'react';
import {Link} from 'react-router';
import {connect} from 'react-redux';
import Layout from './layout';
import Player from './player';
import Star from './star';
import Fleet from './fleet';
const Tick = React.createClass({
propTypes: {
params: React.PropTypes.shape({
gameId: Reac... |
public/rmarkdown-libs/jquery/jquery.min.js | notesofdabbler/blogsite_notesofdabbler | /*! jQuery v1.12.4 | (c) jQuery Foundation | 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 window?window:this,fu... |
ui/src/main/js/pages/Instance.js | rdelval/aurora | import React from 'react';
import deepEqual from 'deep-equal';
import Breadcrumb from 'components/Breadcrumb';
import InstanceHistory from 'components/InstanceHistory';
import Loading from 'components/Loading';
import TaskStatus from 'components/TaskStatus';
import { isNully } from 'utils/Common';
import { isActive }... |
ajax/libs/6to5/3.0.8/browser-polyfill.js | chinakids/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... |
files/clappr/0.0.61/clappr.js | stevelacy/jsdelivr | require=(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)... |
admin/client/App/screens/List/components/UpdateForm.js | pr1ntr/keystone | import React from 'react';
import Select from 'react-select';
import { findDOMNode } from 'react-dom';
import assign from 'object-assign';
import { Fields } from 'FieldTypes';
import InvalidFieldType from '../../../shared/InvalidFieldType';
import { plural } from '../../../../utils/string';
import { BlankState, Button,... |
test/regressions/tests/TextField/TextFieldMargin.js | allanalexandre/material-ui | import React from 'react';
import TextField from '@material-ui/core/TextField';
export default function TextFieldMargin() {
return (
<div style={{ display: 'flex' }}>
<TextField label="Dense" defaultValue="Default Value" margin="dense" />
<TextField style={{ position: 'absolute ' }} label="Dense" mar... |
src/js/components/icons/base/Magic.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/svg-icons/maps/local-laundry-service.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalLaundryService = (props) => (
<SvgIcon {...props}>
<path d="M9.17 16.83c1.56 1.56 4.1 1.56 5.66 0 1.56-1.56 1.56-4.1 0-5.66l-5.66 5.66zM18 2.01L6 2c-1.11 0-2 .89-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 ... |
docs/app/Examples/modules/Search/Variations/SearchExampleAligned.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import SearchExampleStandard from '../Types/SearchExampleStandard'
const SearchExampleAligned = () => <SearchExampleStandard aligned='right' />
export default SearchExampleAligned
|
src/explore/Filters.js | petertrotman/critrolemoments | import React from 'react';
import PropTypes from 'prop-types';
import styled, { injectGlobal } from 'styled-components';
import { adjustHue, desaturate } from 'polished';
import { compose } from 'redux';
import { connect } from 'react-redux';
import Select from 'react-select';
import { updateOptions as updateOptionsA... |
src/index.js | developer239/workbox-webpack-react | import React from 'react'
import ReactDOM from 'react-dom'
import { BrowserRouter } from 'react-router-dom'
import { renderRoutes } from 'react-router-config'
import { Provider } from 'react-redux'
import { initializeServiceWorkers } from './workbox'
import store from './store'
import routes from './routes'
const ren... |
ajax/libs/analytics.js/2.2.4/analytics.js | shallaa/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
test/unit/src/common/components/header/t_header.js | canonical-ols/build.snapcraft.io | import React from 'react';
import expect from 'expect';
import { shallow } from 'enzyme';
import Header from '../../../../../../src/common/components/header';
describe('<Header />', function() {
let element;
context('when user is not authenticated', () => {
beforeEach(() => {
element = shallow(<Header ... |
ajax/libs/handsontable/0.10.5/jquery.handsontable.js | ruiaraujo/cdnjs | /**
* Handsontable 0.10.5
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright 2012, Marcin Warpechowski
* Licensed under the MIT license.
* http://handsontable.com/
*
* Date: Mon Mar 31 2014 14:19:47 GMT+0200 (CEST)
*/
/*jsli... |
app/javascript/mastodon/features/ui/components/tabs_bar.js | tootsuite/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { NavLink, withRouter } from 'react-router-dom';
import { FormattedMessage, injectIntl } from 'react-intl';
import { debounce } from 'lodash';
import { isUserTouching } from '../../../is_mobile';
import Icon from 'mastodon/components/icon';
import No... |
examples/with-koa/src/server.js | jaredpalmer/razzle | import App from './App';
import React from 'react';
import { StaticRouter } from 'react-router-dom';
import Koa from 'koa';
import serve from 'koa-static';
import helmet from 'koa-helmet';
import Router from 'koa-router';
import { renderToString } from 'react-dom/server';
const assets = require(process.env.RAZZLE_ASSE... |
actor-apps/app-web/src/app/index.js | JeeLiu/actor-platform | import crosstab from 'crosstab';
import React from 'react';
import Router from 'react-router';
import Raven from 'utils/Raven'; // eslint-disable-line
import injectTapEventPlugin from 'react-tap-event-plugin';
import Deactivated from 'components/Deactivated.react';
import Login from 'components/Login.react';
import ... |
src/components/About.js | nchathu2014/reactApp | import React from 'react';
export default class About extends React.Component{
render(){
return(
<h1>About Page</h1>
);
}
} |
src/components/Settings.js | wanliu/DataSync | import React, { Component } from 'react';
import { Form, Text, Select } from 'react-form';
import NotificationSystem from 'react-notification-system';
// eslint-disable-next-line
const remote = eval("require('electron').remote");
// eslint-disable-next-line
const {ipcRenderer} = eval("require('electron')");
let confi... |
node_modules/react-bootstrap/es/FormControlFeedback.js | soniacq/LearningReact | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/components/Main/index.js | RichardTianke/react-ant-design-demo-blog | import React from 'react';
import {Layout} from 'antd';
import Header from './Header';
import Content from "./Content";
import Footer from "./Footer";
import './Main.css';
class Main extends React.Component {
render() {
return (
<Layout className="main">
<Header/>
... |
ajax/libs/yui/3.2.0/event-custom/event-custom.js | ppoffice/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module e... |
src/components/NoMatch.js | shirasudon/chat | // @format
import React from 'react'
export const NoMatch = ({ location }) => (
<div>
<h3>
I'm sorry but <code>{location.pathname}</code> could not be found!
</h3>
</div>
)
export default NoMatch
|
src/Modules/Settings/Dnn.PersonaBar.SiteImportExport/SiteImportExport.Web/.eslintskipwords.js | dnnsoftware/Dnn.AdminExperience.Extensions | module.exports = [
"dnn",
"evoq",
"eslint",
"fetch-ie8",
"react-dom",
"lodash",
"bool",
"func",
"dropdown",
"globals",
"init",
"cors",
"api",
"integrations",
"const",
"dom",
"stringify",
"debounce",
"debounced",
"unmount",
"ceil",
"... |
app/javascript/mastodon/features/getting_started/index.js | summoners-riftodon/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnLink from '../ui/components/column_link';
import ColumnSubheading from '../ui/components/column_subheading';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import Prop... |
components/common/image.js | DarcyChan/darcychan.com | /*
Image Component.
The component that renders one a combination of the following:
- A responsive image using srcSet and sizes.
- An image with a lazyloading wrapper and set height.
- A basic image.
*/
import React from 'react';
import { prefixLink } from 'gatsby-helpers';
import LazyLoad from 'rea... |
src/svg-icons/content/undo.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentUndo = (props) => (
<SvgIcon {...props}>
<path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/>
</Svg... |
src/components/Footer/Footer.js | mjchamoures/milpitasInfo | import React from 'react';
import './Footer.css';
class Footer extends React.Component {
render() {
return (
<div></div>
);
}
}
export default Footer; |
docs/static/js/22.e359b809.chunk.js | yurizhang/ishow | webpackJsonp([22],{198:function(n,e,t){"use strict";function o(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function a(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?n:e}function ... |
common/theme/scripts/plugins/sliders/jQRangeSlider/jQDateRangeSlider-withRuler-min.js | dlamprea/door_learning | /*! jQRangeSlider 5.1 - 2013-03-24 - Copyright (C) Guillaume Gautreau 2012 - MIT and GPLv3 licenses.*/(function(t){"use strict";t.widget("ui.rangeSliderMouseTouch",t.ui.mouse,{_mouseInit:function(){var e=this;t.ui.mouse.prototype._mouseInit.apply(this),this._mouseDownEvent=!1,this.element.bind("touchstart."+this.widget... |
ajax/libs/reactstrap/1.2.4/reactstrap.min.js | pvnr0082t/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("Reactstrap",["react","react-dom"],t):"object"==typeof exports?exports.Reactstrap=t(require("react"),require("react-dom")):e.Reactstrap=t(e.React,e.ReactD... |
bell.vn/app/vendor/external/jquery.js | tungtouch/vsoft.vn | /*! 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==... |
app/components/layouts/main-layout.js | erisalke/react-playground | import React from 'react';
import { Link } from 'react-router';
export default function (props) {
return (
<div id="wrapper">
<div id="sidebar-wrapper">
<ul className="sidebar-nav">
<li className="sidebar-brand">
<Link to="/" activeClassName="active">Home</Link>
</li... |
tools/webpack.app_config.js | ChingxWando/2017-07-23_bubble-dragons | // App-specific back-end Webpack config should be here
const serverConfig = {
entry: {
index: [
'babel-polyfill',
'./src/server/index.js'
]
}
};
// App-specific web front-end Webpack config should be here
const webConfig = {
entry: {
bundle: [
'babel-polyfill',
'./src/client/i... |
ajax/libs/yui/3.16.0/datatable-core/datatable-core.js | ankitjamuar/cdnjs | /*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@sinc... |
src/components/modal.js | marcusdarmstrong/cloth-io | import React from 'react';
const Modal = (props) => (
<div className="modal-screen">
<div className="modal-container">
<div className="modal-frame">
<div className="modal-header">
<span className="close-button pull-right" onClick={props.closeModal}>×</span>
<h2>{props.titl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.