path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/react/0.13.0-alpha.1/react.js | chrisdavies/cdnjs | /**
* React v0.13.0-alpha.1
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.React=e()}}(function... |
components/background-images.js | WanderlandTravelers/wanderlandtravelers.github.io | import React from 'react'
import Slider from 'react-slick'
import responsiveImages from './responsive-images.js'
import {Icon} from 'react-fa'
import '../css/background-images'
// import 'slick-carousel/slick/slick.scss'
// import 'slick-carousel/slick/slick-theme.scss'
export default class BackgroundImages extends R... |
src/common/FormTextInput.js | jorilindell/postit-react | import React from 'react'
import css from '../styles/common.css'
export const FormTextInput = ({input, placeholder, type, label, meta: {touched, error, warning}}: object) => {
return (
<div className={css.formGroup}>
<label htmlFor="name" className={css.controlLabel}>
<span>{label}</span>
</l... |
test/DropdownSpec.js | BespokeInsights/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Dropdown from '../src/Dropdown';
import DropdownMenu from '../src/DropdownMenu';
import MenuItem from '../src/MenuItem';
import { shouldWarn } from './helpers';
import keycode from 'keycode';
class CustomMenu extends React.Compone... |
src/containers/DevToolsWindow.js | PassaP/passap-fronend | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
export default createDevTools(
<LogMonitor />
)
|
src/svg-icons/communication/phonelink-setup.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkSetup = (props) => (
<SvgIcon {...props}>
<path d="M11.8 12.5v-1l1.1-.8c.1-.1.1-.2.1-.3l-1-1.7c-.1-.1-.2-.2-.3-.1l-1.3.4c-.3-.2-.6-.4-.9-.5l-.2-1.3c0-.1-.1-.2-.3-.2H7c-.1 0-.2.1-.3.2l-.2 1... |
containers/Root.js | rlr/webtiles-previewer-redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import WebtilesPreviewerApp from './WebtilesPreviewerApp';
const store = configureStore({
selectedChannel: 'desktop',
selectedLocale: null,
channels: {
desktop: {
... |
examples/files/exercises/PhotoGrid1.js | dabbott/react-native-express | import React from 'react'
import { Dimensions, FlatList, Image } from 'react-native'
import { formatPhotoUri } from '../api/picsum'
export default function PhotoGrid({ photos, numColumns, onEndReached }) {
const { width } = Dimensions.get('window')
const size = width / numColumns
// ...
}
|
src/svg-icons/image/wb-sunny.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageWbSunny = (props) => (
<SvgIcon {...props}>
<path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7... |
src/client/components/svg/svg.container.js | DBCDK/tanterne | /* eslint-disable */
import React from 'react';
export const Arrow = ({className = ''}) => {
return (
<svg className={`arrow ${className}`} height="32px" viewBox="0 0 32 32" width="32px">
<path
d="M24.285,11.284L16,19.571l-8.285-8.288c-0.395-0.395-1.034-0.395-1.429,0 c-0.394,0.395-0.394,1.035,0,1... |
src/routes/index.js | mastermind1981/react-redux-starter-kit | import { Route } from 'react-router';
import React from 'react';
import CoreLayout from 'layouts/CoreLayout';
import HomeView from 'views/HomeView';
export default (
<Route component={CoreLayout}>
<Route name='home' path='/' component={HomeView} />
</Route>
);
|
assets/js/components/app.js | dotcypress/eon | import React from 'react';
import { RouteHandler } from 'react-router';
import { Navigation } from './navigation';
export class App extends React.Component {
constructor() {
super();
};
render() {
return <div>
<Navigation />
<div className='container'>
<RouteHandler />
</div>
... |
examples/todomvc/src/components/MainSection.spec.js | roth1002/redux | import React from 'react'
import { createRenderer } from 'react-test-renderer/shallow';
import MainSection from './MainSection'
import TodoItem from './TodoItem'
import Footer from './Footer'
import { SHOW_ALL, SHOW_COMPLETED } from '../constants/TodoFilters'
const setup = propOverrides => {
const props = Object.ass... |
page/src/components/LogList.js | swpark6/Dumbledore | import React from 'react';
import PropTypes from 'prop-types';
import { List } from 'semantic-ui-react';
import moment from 'moment';
import './LogList.css';
const LogList = ({ logs }) => {
const openType = key => (
<List.Item key={key}>
<List.Icon name="compress" color="blue" size="large" verticalAlign="m... |
app/javascript/mastodon/components/loading_indicator.js | Arukas/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const LoadingIndicator = () => (
<div className='loading-indicator'>
<div className='loading-indicator__figure' />
<FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />
</div>
);
export default LoadingIndicat... |
app/components/Header/index.js | rajeshbhatt/shopping-cart-redux | 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 Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-l... |
ajax/libs/react-virtualized/3.1.0/react-virtualized.js | cdnjs/cdnjs | !function(root, factory) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(require("react")) : "function" == typeof define && define.amd ? define([ "react" ], factory) : "object" == typeof exports ? exports["react-virtualized"] = factory(require("react")) : root["react-virtualized... |
ajax/libs/yui/3.10.2/event-focus/event-focus.js | iros/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
ajax/libs/yui/3.7.2/datatable-body/datatable-body.js | abenjamin765/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/lib/list.js | yeojz/react-form-addons | // @flow
import React from 'react';
import get from 'lodash/get';
import createSyntheticFormEvent from '../utils/createSyntheticFormEvent';
import FormContainer from '../utils/FormContainer';
import listActions from '../utils/listActions';
type Props = {
name: string,
formData: Object,
formMeta: Object,
onChan... |
ajax/libs/jquery/1.4.1/jquery.js | LaurensRietveld/cdnjs | /*!
* jQuery JavaScript Library v1.4.1
* 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.
... |
ajax/libs/primereact/7.1.0/rating/rating.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { classNames } from 'primereact/utils';
import { tip } from 'primereact/tooltip';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _definePropertie... |
server/server.js | raksonibs/kook | import Express from 'express';
import mongoose from 'mongoose';
import bodyParser from 'body-parser';
import path from 'path';
// Webpack Requirements
import webpack from 'webpack';
import config from '../webpack.config.dev';
import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from '... |
src/routes/user/User.js | macdja38/pvpsite | import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './User.css';
import Layout from '../../components/Layout';
function User({ user }) {
// let avatarURL = `https://discordapp.com/api/users/${user.id}/avatars/${user.avatar}.j... |
sites/default/files/js/js_cFKQgWWlilnai4-7S_oGvT2jeoFYQ8a44XxHr-Bfylc.js | albertobricio/ResearchersPortal | /*! jQuery v2.2.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,fun... |
src/components/CQuiz/Question.js | maloun96/react-admin | import React from 'react';
import {render} from 'react-dom';
// import axios from 'axios';
// import Form from './Form.js';
// import FinishQuiz from './FinishQuiz.js';
const style = {overflow: 'hidden'};
import Answer from './Answer.js';
class Question extends React.Component {
constructor(props) {
super... |
src/main/app/src/component/AddMicroservice/AddMicroServiceForm.js | p632-sp-2017/microservice-catalog-frontend | import React from 'react';
import {connect} from 'react-redux';
import { reduxForm } from 'redux-form';
// import PropTypes from 'prop-types';
import { validate } from './AddServiceFields';
import { patchMicroservice, postMicroservice, initializeEditForm } from '../../redux/modules/catalog';
import EditForm from './Ed... |
docs/src/ComponentsPage.js | justinanastos/react-bootstrap | /* eslint react/no-did-mount-set-state: 0 */
import React from 'react';
import getOffset from 'dom-helpers/query/offset';
import css from 'dom-helpers/style';
import Affix from '../../src/Affix';
import Nav from '../../src/Nav';
import SubNav from '../../src/SubNav';
import NavItem from '../../src/NavItem';
import N... |
src/client.js | Justkant/WhatAShop | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/lib/createBrowserHistory';
import useScroll from 'scroll-behavior/lib/useStandardScroll';
imp... |
src/wics/node_modules/material-ui/Drawer/Drawer.js | civiclee/Hack4Cause2017 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3... |
app/containers/Store/index.js | Luandro-com/repsparta-web-app | /*
*
* Store
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { push } from 'react-router-redux'
import { selectProducts, selectOrder, selectContent } from './selectors';
import { fetchProducts, fetchContent, startPayment, failPayment, complet... |
src/svg-icons/action/settings-overscan.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsOverscan = (props) => (
<SvgIcon {...props}>
<path d="M12.01 5.5L10 8h4l-1.99-2.5zM18 10v4l2.5-1.99L18 10zM6 10l-2.5 2.01L6 14v-4zm8 6h-4l2.01 2.5L14 16zm7-13H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18... |
node_modules/react-router/es/Switch.js | lousanna/sinatrademo | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
client/src/js/components/Playlist/Item.js | Siddharth11/iTunes-Remote | // essentials
import React from 'react'
import { connect } from 'react-redux'
const playItem = (socket, name) => () => {
socket.emit('playPlaylist', name)
}
const Item = ({socket, current, name}) => {
let cn
if (name.trim() === current.trim()) {
cn = `playlist__item current`
} else {
c... |
test/vwrap.spec.js | aush/react-stack | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import Flex from '../src/flex';
import Wrap from '../src/wrap';
import VerticalWrap from '../src/vwrap';
describe('VerticalWrap', () => {
it('should exist', () => { expect(VerticalWrap).to.be.ok; });
describe('exist', () =... |
src/browser/intl/IntlPage.js | chad099/react-native-boilerplate | // @flow
import React from 'react';
import SwitchLocale from './SwitchLocale';
import linksMessages from '../../common/app/linksMessages';
import { Box, PageHeader, Paragraph, Text } from '../../common/components';
import {
FormattedDate,
FormattedMessage,
FormattedNumber,
FormattedRelative,
defineMessages,
}... |
src/app.js | PhilNorfleet/pBot | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import feathers from 'feathers/client';
import hooks from 'feathers-hooks';
import rest from 'feathers-rest/client';
import socketio from 'feathers-socketio/client';
import authentication from 'feathers-authentication-client';
import io from ... |
ajax/libs/react-redux/4.0.6/react-redux.js | Amomo/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("redux"));
else if(typeof define === 'function' && define.amd)
define(["react", "redux"], factory);
else if(typeof exports === 'object')
e... |
ajax/libs/inferno/1.0.0-beta16/inferno-mobx.js | hare1039/cdnjs | /*!
* inferno-mobx v1.0.0-beta16
* (c) 2016 Ryan Megidov
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./inferno-component'), require('./inferno'), require('./inferno-create-class'), require('./inf... |
Libraries/NewAppScreen/components/ReloadInstructions.js | hammerandchisel/react-native | /**
* 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 strict-local
* @format
*/
import type {Node} from 'react';
import {Platform, StyleSheet, Text} from 'react-native';
impo... |
src/app/client.js | lmcjt37/kulor-reactify | import 'react-toolbox/lib/commons.scss';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.js';
ReactDOM.render(<App />, document.getElementById('app'));
|
ajax/libs/ember-data.js/1.0.0-beta.1/ember-data.prod.js | chriszarate/cdnjs | (function() {
var define, requireModule;
(function() {
var registry = {}, seen = {};
define = function(name, deps, callback) {
registry[name] = { deps: deps, callback: callback };
};
requireModule = function(name) {
if (seen[name]) { return seen[name]; }
seen[name] = {};
var mod, deps, callb... |
ajax/libs/elemental/0.5.0/elemental.js | keicheng/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Elemental = f(... |
node_modules/webpack-stream/node_modules/webpack/lib/HotModuleReplacement.runtime.js | jadlao/jadlao.github.io | /*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
/*global $hash$ installedModules $require$ hotDownloadManifest hotDownloadUpdateChunk modules */
module.exports = function() {
// Copied from https://github.com/facebook/react/blob/bef45b0/src/shared/utils/canDe... |
ajax/libs/instantsearch.js/2.1.0-beta.2/instantsearch.min.js | seogi1004/cdnjs | /*! instantsearch.js 2.1.0-beta.2 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */
!function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports.instantsearch=t():e... |
frontend/component/Notification.js | caiklaus/first-node-project | import React from 'react';
import {Link} from 'react-router';
import jQuery from 'jquery';
import {notificationList, notificationSetRead} from '../lib/client';
import {redirectURL} from '../lib/utils';
export default class Notification extends React.Component {
constructor(props) {
super(props);
this.state ... |
src/containers/App.js | jekyll/jekyll-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { HotKeys } from 'react-hotkeys';
import DocumentTitle from 'react-document-title';
import { fetchConfig } from '../ducks/config';
import keyboardShort... |
components/Footer/Footer.js | guokeke/image-editor | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
... |
lib/components/pages/Forbidden.js | michaelbontyes/journey | import React from 'react'
import { defineMessages, FormattedMessage } from 'react-intl'
const messages = defineMessages({
forbidden: {
id: 'forbidden',
defaultMessage: 'Forbidden'
},
notAuthorized: {
id: 'forbiddenReason',
description: 'The user doesn\'t have permissions to access the page',
... |
src/js/components/icons/base/CaretUp.js | odedre/grommet-final | /**
* @description CaretUp SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @pr... |
src/components/table/Table.js | zeljkoX/e-learning | import React from 'react';
import {State, History, Link} from 'react-router';
const style = {
width: '100%',
padding: '0px'
};
class Table extends React.Component {
static propTypes = {
className: React.PropTypes.string,
data: React.PropTypes.object
};
render () {
return (
<table classN... |
spring-boot-samples/spring-boot-sample-atmosphere/src/main/resources/static/javascript/jquery-1.9.0.js | izeye/spring-boot | /*!
* jQuery JavaScript Library v1.9.0
* 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-1-14
*/
(function( window, undefined ) {
"use strict";... |
src/client/Utils/RoomCounter.js | KleeGroup/interactive-box | import React from 'react';
/*
RoomCounter est un composant qui compte le nombre d'utilisateurs dans la room
Props :
socket : Le socket qui reçoit les nouveaux utilisateurs, sous la forme d'un message "userName"
State :
usersCount : Le nombre d'utilisateurs actuel
... |
reactWebpack/src/components/message.js | JohnsonTX/webpacreact | /**
* Created by johnsontx on 2017/1/20.
*/2
import React from 'react';
import { Link } from 'react-router';
import Mains from './public/Main';
import {Imgicon,UserIcon,UerName,Replays,ReplayForm} from './public/base';
import {Tools} from '../Mytool';
class Massage extends React.Component {
render (){
var {has... |
src/index.js | kvkens/ymjs | import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
var Jumbotron = React.createClass({
propTypes : {
title : React.PropTypes.string,
text : React.PropTypes.string,
href : React.PropTypes.string
},
... |
client/main.js | codeaia/dakik | import { Meteor } from 'meteor/meteor';
import React from 'react';
import { render } from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Noty from 'noty';
import App from '../imports/ui/components/App.jsx';
Meteor.startup(() => {
injectTapEventPlugin();
Session.set({
"skip": 0... |
common/components/NotFound.js | promin04/todo-react | import React from 'react'
import Helmet from 'react-helmet'
const NotFound = () => (
<div>
<Helmet title='Not Found' />
<h1>Page Not Found!</h1>
</div>
)
export default NotFound
|
ajax/libs/forerunnerdb/1.3.356/fdb-core.js | him2him2/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/Table.js | mengmenglv/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
getDefaultProps() {
... |
ajax/libs/yui/3.9.1/datatable-core/datatable-core-debug.js | hibrahimsafak/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
packages/material-ui-icons/src/LooksOneSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M21 3H3v18h18V3zm-7 14h-2V9h-2V7h4v10z" />
, 'LooksOneSharp');
|
packages/material-ui-icons/legacy/SignalCellularConnectedNoInternet1BarRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M22 8V4.41c0-.89-1.08-1.34-1.71-.71L3.71 20.29c-.63.63-.19 1.71.7 1.71H18V11c0-1.66 1.34-3 3-3h1z" /><path d="M20 11v6c0 .55.45 1 1 1s1-.45 1-1v-6c0-.55-.45-1-1-1s-1 .... |
sites/all/modules/contrib/jquery_update/replace/jquery/1.8/jquery.min.js | drupaldelphia/drupaldelphia | /*! jQuery v1.8.2 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==... |
ajax/libs/intl-tel-input/14.0.8/js/intlTelInput.js | extend1994/cdnjs | /*
* International Telephone Input v14.0.8
* https://github.com/jackocnr/intl-tel-input.git
* Licensed under the MIT license
*/
// wrap in UMD
(function(factory) {
var intlTelInput = factory(window, document);
if (typeof module === "object" && module.exports) module.exports = intlTelInput; else window.intl... |
real-world-saga/server.js | saltas888/redux-relax | /* eslint-disable no-console */
import "babel-polyfill"
import webpack from 'webpack'
import webpackDevMiddleware from 'webpack-dev-middleware'
import webpackHotMiddleware from 'webpack-hot-middleware'
import config from './webpack.config'
import express from 'express'
import path from 'path'
import favicon from 'serve... |
src/svg-icons/action/highlight-off.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHighlightOff = (props) => (
<SvgIcon {...props}>
<path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 1... |
src/js/components/Meter/stories/Pie.js | grommet/grommet | import React from 'react';
import { Box, Meter } from 'grommet';
export const Pie = () => (
// Uncomment <Grommet> lines when using outside of storybook8
// <Grommet theme={grommet}>
<Box align="center" pad="large">
<Meter
type="pie"
background="light-2"
size="small"
values={[{ value... |
src/helpers/UrlUtils.js | IrinaMarques/stand | import React from 'react';
import { Redirect } from 'react-router-dom';
export const RedirectToIndexRoute = ({match, route}) => {
const parentPath = match.path || route.path;
if(match.isExact && route.indexRoute !== undefined) {
return <Redirect to={parentPath + route.routes[route.indexRoute].path} />... |
packages/material-ui-icons/src/MicNone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 1.2-1.19 1.2-.66 0-1.2-.54-1.... |
src/renderers/dom/client/syntheticEvents/__tests__/SyntheticWheelEvent-test.js | james4388/react | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
src/Modal.js | glenjamin/react-bootstrap | import classNames from 'classnames';
import events from 'dom-helpers/events';
import ownerDocument from 'dom-helpers/ownerDocument';
import canUseDOM from 'dom-helpers/util/inDOM';
import getScrollbarSize from 'dom-helpers/util/scrollbarSize';
import React from 'react';
import PropTypes from 'prop-types';
import BaseM... |
src/components/Footer/Footer.js | pbarbiero/enhanced-electron-react-boilerplate | import React, { Component } from 'react';
const Footer = () => {
return (
<footer className="toolbar toolbar-footer">
<h1 className="title">Footer Contents</h1>
</footer>
)
}
export default Footer;
|
app/components/race-preview/RacePreview.js | opensprints/opensprints-electron | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import RacerEdit from './RacerEdit';
import RaceQuickSettings from './RaceQuickSettings';
export default class RacePreview extends Component {
static propTypes = {
race: PropTypes.object.isRequired,
racers: PropTypes.array.isRequir... |
react-flux-mui/js/material-ui/src/svg-icons/device/access-time.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessTime = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-1... |
pkg/interface/launch/src/js/components/home.js | ngzax/urbit | import React, { Component } from 'react';
import { subscription } from '/subscription';
import { api } from '/lib/api';
import classnames from 'classnames';
import Header from '/components/header';
import Tile from '/components/tile';
import Welcome from '/components/welcome';
export default class Home extends Compon... |
app/components/organisms/Footer/Footer.js | altiore/webpack_config_example | import React from 'react'
import PropTypes from 'prop-types'
import FacebookIcon from 'react-icons/lib/fa/facebook'
import InstagramIcon from 'react-icons/lib/fa/instagram'
import { Content } from 'components/atoms'
const Footer = ({ title, links, styles, className }) => (
<footer className={[className, styles.wrap... |
client/node_modules/uu5g03/dist-node/doc-kit/source-code.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, SectionMixin} from '../common/common.js';
import {FileViewer, Pre, Panel} from '../bricks/bricks.js';
import './source-code.less';
export default React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMixin,
SectionMixin
]... |
client/src/javascript/components/icons/CircleExclamationIcon.js | jfurrow/flood | import React from 'react';
import BaseIcon from './BaseIcon';
export default class CircleExclamationIcon extends BaseIcon {
render() {
return (
<svg className={`icon icon--circle-checkmark ${this.props.className}`} viewBox={this.getViewBox()}>
<path fillOpacity="0.05" d="M30,0A30,30,0,1,1,0,30,30,... |
packages/react-ui-core/src/DatePicker/__tests__/Calendar-test.js | rentpath/react-ui | import React from 'react'
import { shallow } from 'enzyme'
import format from 'date-fns/format'
import getDaysInMonth from 'date-fns/getDaysInMonth'
import ThemedCalendar from '../Calendar'
const theme = {
'Calendar_Date-active': 'Calendar_Date-active',
'Calendar_Date-disabled': 'Calendar_Date-disabled',
}
const ... |
src/packages/@ncigdc/modern_components/ClinicalAnalysis/ControlPanel/ControlPanelNode.js | NCI-GDC/portal-ui | import React from 'react';
import {
compose,
lifecycle,
pure,
setDisplayName,
withPropsOnChange,
withState,
} from 'recompose';
import {
capitalize,
groupBy,
isEqual,
orderBy,
toLower,
} from 'lodash';
import { connect } from 'react-redux';
import { singular } from 'pluralize';
import Toggle from ... |
app/src/js/component/AccountForm.js | enoa7/chart-account | import React from 'react';
export default class AccountForm extends React.Component {
_handleSubmit(e) {
e.preventDefault();
let name = this._name.value;
let type = this._type.value;
let code = this._code.value;
let desc = this._desc.value;
let total = (this._total.value.length) ? this._total.value : '-... |
src/svg-icons/communication/mail-outline.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationMailOutline = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"/>
</SvgIcon>
)... |
node_modules/react-icons/md/screen-lock-portrait.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdScreenLockPortrait = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m28.4 31.6v-23.2h-16.8v23.2h16.8z m0-30q1.3 0 2.3 1.1t0.9 2.3v30q0 1.3-0.9 2.3t-2.3 1.1h-16.8q-1.3 0-2.3-1.1t-0.9-2.3v-30q0-1.3 0.9-2.3t2.3-1.1h16.8z m-10.... |
node_modules/react-dev-utils/eslintFormatter.js | AngeliaGong/AngeliaGong.github.io | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const chalk = require('chalk');
const table = require('text-table');
function isError(message) {
if (message.fatal || ... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/redux-form/6.6.3/es/__tests__/reduxForm.spec.js | JamieMason/npm-cache-benchmark | import _noop from 'lodash-es/noop';
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; };
var _createClass = funct... |
front/src/components/Login.js | carlox18/proyecto2 | import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
import React from 'react';
import axios from 'axios';
import App from "./App";
import Clubs from "./Clubs";
class Login extends React.Component {
co... |
node_modules/babel-core/node_modules/babel-register/node_modules/core-js/modules/es6.promise.js | mjchamoures/personalPortfolio | 'use strict';
var LIBRARY = require('./_library')
, global = require('./_global')
, ctx = require('./_ctx')
, classof = require('./_classof')
, $export = require('./_export')
, isObject = require('./_is-object')
, aFunction = req... |
src/containers/Home/container/Home.js | WCCrazyCoder/react-redux-web-application | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { increment, decrement, getHomepageJSON } from '../modules/home';
@connect(
state => ({
counter: state.home.counter,
homepageJSON: state.home.homepageJSON
}),
dispatch => bindActionCreators({ inc... |
modapi/node_modules/eslint-plugin-react/lib/rules/no-comment-textnodes.js | Gambya/mod | /**
* @fileoverview Comments inside children section of tag should be placed inside braces.
* @author Ben Vinegar
* @deprecated
*/
'use strict';
// ------------------------------------------------------------------------------
// Rule Definition
// ------------------------------------------------------------------... |
src/app/icons/LineIcon.js | meedan/check-web | import React from 'react';
import SvgIcon from '@material-ui/core/SvgIcon';
// From: https://line.me/en/logo
const LineIcon = props => (
<SvgIcon {...props}>
<path
d="m 11.259604,20.385794 c -0.07816,-0.111586 -0.07918,-0.232589 -0.0055,-0.650453 0.25632,-1.4537 0.153152,-1.651105 -0.965429,-1.847309 C 9.... |
app/components/Footer/index.js | daicas/react-boilerplate-examp | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from 'components/A';
import LocaleToggle from 'containers/LocaleToggle';
import Wrapper from './Wrapper';
import messages from './messages';
function Footer() {
return (
<Wrapper>
<section>
<FormattedMessage {...mes... |
ajax/libs/rxjs/2.3.18/rx.all.compat.js | WebReflection/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false... |
src/index.js | muiter/lumo | import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/App'
ReactDOM.render(<App />, document.getElementById('root'))
|
docs/src/app/components/pages/components/List/Page.js | igorbt/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import listReadmeText from './README';
import listExampleSimpleCode from '!raw!.... |
assets/js/pages/homePage.js | 3dcauldron/repo-to-rename-2 | import React from 'react';
import ReactDOM from 'react-dom';
import HomePageContainer from '../containers/HomePageContainer';
ReactDOM.render(<HomePageContainer />, document.getElementById('react-app'));
|
src/helpers/__tests__/getDataDependencies-test.js | dmitrif/react-redux-universal-hot-example | import { expect } from 'chai';
import React from 'react';
import { div } from 'react-dom';
import getDataDependencies from '../getDataDependencies';
describe('getDataDependencies', () => {
let getState;
let dispatch;
let location;
let params;
let CompWithFetchData;
let CompWithNoData;
let CompWithFetchDa... |
dist/1.11.1/jquery-ajax-dimensions.js | eric-seekas/jquery-builder | /*!
* jQuery JavaScript Library v1.11.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-dimensions
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and ot... |
.eslintrc.js | owencm/material-ui | module.exports = {
// So parent files don't get applied
root: true,
env: {
es6: true,
browser: true,
node: true,
},
extends: 'eslint:recommended',
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 7,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
experimentalObjec... |
src/components/AddToCart.js | zeachco/rockplusinc.com | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {addToCart} from '../store/actions/cart';
import CartIcon from 'react-icons/lib/fa/cart-plus';
function formatOptions(options) {
return Object.keys(options)
.reduce((acc, key) => {
if (key !== '_data'... |
src/components/Table/cell_content.js | hungtruongquoc/shipper_front | import React, { Component } from 'react';
class ContentCell extends Component {
render() {
return (<td className={this.props.className}>{this.props.children}</td>);
}
}
export default ContentCell;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.