path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
challenge6/finished/node_modules/browserify-middleware/node_modules/browserify/node_modules/derequire/node_modules/esprima-six/test/3rdparty/jquery-1.6.4.js | rgrewalucsb/node-workshop | /*!
* jQuery JavaScript Library v1.6.4
* 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... |
__tests__/components/WorldMap-test.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import WorldMap from '../../src/js/components/WorldMap';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('WorldMap', ()... |
src/addons/link/__tests__/ReactLinkPropTypes-test.js | JedWatson/react | /**
* Copyright 2013-2014 Facebook, Inc.
*
* 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 law or agree... |
html.js | frontendyteam/www.frontendy.com | import React from 'react'
import DocumentTitle from 'react-document-title'
import { prefixLink } from 'gatsby-helpers'
import { TypographyStyle, GoogleFont } from 'react-typography'
import typography from './utils/typography'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
propTypes ()... |
node_modules/react-icons/fa/file-powerpoint-o.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaFilePowerpointO = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35.8 8.5q0.6 0.6 1 1.7t0.5 1.9v25.8q0 0.8-0.6 1.5t-1.6 0.6h-30q-0.9 0-1.5-0.6t-0.6-1.5v-35.8q0-0.8 0.6-1.5t1.5-0.6h20q0.9 0 2 0.4t1.7 1.1z m-9.9-5.5v8.4h8.4q... |
packages/icons/src/md/maps/LocalGroceryStore.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdLocalGroceryStore(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M16 36c-2.21 0-3.98 1.79-3.98 4s1.77 4 3.98 4 4-1.79 4-4-1.79-4-4-4zM4 4v4h4l7.19 15.17-2.7 4.9c-.31.58-.49 1.23-.49 1.93 0 2.21 1.79 4 4 4... |
packages/react-client/src/forks/ReactFlightClientHostConfig.dom-relay.js | trueadm/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
*/
export * from 'react-server-dom-relay/src/ReactFlightDOMRelayClientHostConfig';
export * from '../ReactFlightClientHos... |
ajax/libs/material-ui/4.9.4/esm/utils/useControlled.js | cdnjs/cdnjs | /* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */
import React from 'react';
export default function useControlled(_ref) {
var controlled = _ref.controlled,
defaultProp = _ref.default,
name = _ref.name;
var _React$useRef = React.useRef(controlled !== undefined),
isContr... |
frontend/src/components/App/index.js | googleinterns/SLURP | import React from 'react';
import {BrowserRouter as Router, Switch, Route} from 'react-router-dom';
import { AuthProvider, PrivateRoute } from '../Auth';
import { AuthUtilsConsumer } from '../AuthUtils';
import '../IconLibrary';
import LandingPage from '../Landing';
import SignInPage from '../SignIn'
import ViewActivi... |
src/components/Contact.js | holmesal/hire-alonso | import React, {
Component,
Image,
PropTypes,
StyleSheet,
Text,
TouchableOpacity,
View
} from 'react-native';
import { Prose, SectionHeader, H2 } from '../type';
import openTab from '../utils/openTab';
import { mail } from '../images';
export default class Contact extends Component {
static propTypes = {};
s... |
src/components/login/login-modal.js | JamesHageman/rangle-elm-starter | import React from 'react';
import { Modal, ModalContent } from '../modal';
import LoginForm from './login-form';
function LoginModal({ isVisible, isPending, hasError, onSubmit }) {
return (
<Modal testid="login-form" isVisible={ isVisible }>
<ModalContent>
<h1 data-testid="login-header" className=... |
src/index.js | jedwards1211/frcs-notes | 'use strict';
import React from 'react';
import Router from 'react-router';
import {Route, DefaultRoute, RouteHandler} from 'react-router';
import App from './App';
import TripStore from './TripStore';
// window.tripSummaries is provided by an auto-generated JS script
// included in index.html
window.tripSummaries.f... |
src/Main/Fight.js | enragednuke/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SkullIcon from 'Icons/Skull';
import CancelIcon from 'Icons/Cancel';
import DIFFICULTIES from 'common/DIFFICULTIES';
import ProgressBar from './ProgressBar';
const formatDuration = (duration) => {
const seconds = Math.floor(duration % 60);
re... |
Libraries/Components/Slider/Slider.js | dikaiosune/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
node_modules/rs-theme/src/views/message.js | labibramadhan/hybrid-apps-development | import React from 'react';
import Reflux from 'reflux';
import {withRouter} from 'react-router';
import Snackbar from 'material-ui/Snackbar';
import _ from 'underscore';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import {TodoActions, Tod... |
ajax/libs/forerunnerdb/1.3.434/fdb-legacy.min.js | dhenson02/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
packages/core/src/icons/components/HeaderNext.js | iCHEF/gypcrete | import React from 'react';
export default function SvgHeaderNext(props) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
viewBox="0 0 32 32"
{...props}
>
<path
data-name="\u9577\u65B9\u5F62 2 \u306E\u30B3\u30D4\u30FC 31"
d="M21.7 ... |
examples/js/manipulation/custom-btn-text-table.js | rolandsusans/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-alert: 0 */
/* eslint guard-for-in: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const... |
main.js | Madadata/MDDropDownMenu | import React from 'react';
import ReactDom from 'react-dom';
import App from './App';
ReactDom.render(
<App />,
document.getElementById('app')
);
|
ajax/libs/redux-form/3.0.6/redux-form.min.js | rlugojr/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].expor... |
node_modules/react-icons/md/add-alert.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdAddAlert = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m26.6 21.7v-3.3h-5v-5h-3.2v5h-5v3.3h5v5h3.2v-5h5z m4.9 6.3l3.5 3.6v1.8h-30v-1.8l3.5-3.6v-9.6c0-5.4 3.8-10 8.8-11.2v-1.2c0-1.5 1.2-2.6 2.7-2.6s2.7 1.1 2.7 2.6v1.2c5 1... |
wp-content/plugins/form-lightbox/admin/js/jquery.js | alvinchettiar/hautebrides | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
LABs/Lab - 4/lab-4/src/Error404.js | harshjk/CS-554-Web-Programming-2 | /******************************************
* Author : Harsh Jagdishbhai Kevadia
* Created On : Mon Oct 16 2017
* File : 404.js
*******************************************/
import React, { Component } from 'react';
import {
BrowserRouter as Router,
Route,
Link,
Switch,
Redirect
} from "react-router-... |
src/svg-icons/image/details.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageDetails = (props) => (
<SvgIcon {...props}>
<path d="M3 4l9 16 9-16H3zm3.38 2h11.25L12 16 6.38 6z"/>
</SvgIcon>
);
ImageDetails = pure(ImageDetails);
ImageDetails.displayName = 'ImageDetails';
ImageDetai... |
src/client/lib/provideState.js | sljuka/bucka-portfolio | import React from 'react'
import {appState} from '../state'
import shallowEqual from 'react/lib/shallowEqual'
export default function provideState(stateInfo) {
const decoratorFunction = function(Component) {
const klass = class extends React.Component {
static displayName = `${Component.name}StateProvide... |
src/test/componentsSpec/Header.spec.js | badT/Chatson | import React from 'react';
import { Provider } from 'react-redux';
import { mount } from 'enzyme';
import chai, { expect } from 'chai';
import chaiEnzyme from 'chai-enzyme';
chai.use(chaiEnzyme());
import configureStore from '../../store/configureStore';
import { Header } from '../../components/Header/index';
descri... |
packages/material-ui-icons/src/FlightLandSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M2.5 19h19v2h-19v-2zm16.84-3.15c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2.32-1.45-.39v5.17l16.57 4.44z" />
, 'FlightLandSharp');
|
ajax/libs/react-data-grid/2.0.63/react-data-grid.js | BenjaminVanRyseghem/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
examples/sidebar/app.js | nkatsaros/react-router | var React = require('react');
var Router = require('react-router');
var { Route, DefaultRoute, RouteHandler, Link } = Router;
var data = require('./data');
var CategoryNav = React.createClass({
getInitialState: function () {
return { isOpen: this.props.defaultIsOpen};
},
getDefaultProps: function () {
r... |
ajax/libs/extjs/4.2.1/src/AbstractComponent.js | paleozogt/cdnjs | /*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
ajax/libs/jQRangeSlider/4.2.4/jQRangeSliderBar.min.js | hasantayyar/cdnjs | (function(a,b){a.widget("ui.rangeSliderBar",a.ui.rangeSliderDraggable,{options:{leftHandle:null,rightHandle:null,bounds:{min:0,max:100},type:"rangeSliderHandle",range:false,drag:function(){},stop:function(){},values:{min:0,max:20},wheelSpeed:4,wheelMode:null},_values:{min:0,max:20},_waitingToInit:2,_wheelTimeout:false,... |
src/svg-icons/image/wb-incandescent.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageWbIncandescent = (props) => (
<SvgIcon {...props}>
<path d="M3.55 18.54l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8zM11 22.45h2V19.5h-2v2.95zM4 10.5H1v2h3v-2zm11-4.19V1.5H9v4.81C7.21 7.35 6 9.28 6 11.5c0 3.31 2.... |
packages/material-ui-icons/src/SingleBed.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20 12c0-1.1-.9-2-2-2V7c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3c-1.1 0-2 .9-2 2v5h1.33L6 19h1l.67-2h8.67l.66 2h1l.67-2H20v-5zm-4-2h-3V7h3v3zM8 7h3v3H8V7zm-2 5h12v3H6v-3z" />
, 'SingleBed');
|
src/routes/Home/main.js | kanitsharma/general-js | /* eslint max-len: ["error", { "ignoreStrings": true }] */
import React from 'react'
import PropTypes from 'prop-types'
import Hheader from '../../components/hover-header'
import Swiftscroll from '../../components/swift-scroll'
import Landingsection from '../../components/landingsection'
import HeadingHero from '../../... |
tests/layouts/PageLayout.spec.js | trujunzhang/IEATTA-web | import React from 'react'
import PageLayout from 'layouts/PageLayout/PageLayout'
import { shallow } from 'enzyme'
describe('(Layout) PageLayout', () => {
it('renders as a <div>', () => {
shallow(<PageLayout />).should.have.tagName('div')
})
it('renders a project title', () => {
shallow(<PageLayout />).f... |
docs/src/pages/styles/basics/AdaptingStyledComponents.js | kybarg/material-ui | import React from 'react';
import { styled } from '@material-ui/styles';
import Button from '@material-ui/core/Button';
const MyButton = styled(({ color, ...other }) => <Button {...other} />)({
background: props =>
props.color === 'red'
? 'linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)'
: 'linear-g... |
parking/client/src/components/Place.js | GurovAnton/GurovAnton.github.io | import React from 'react';
const Place = ({id, free, zoneId, onChangePlaceStatus=f=>f}) => {
const red = free? 'card place text-white bg-success':'card place text-white bg-danger';
return (
<div key={id} className={red} onClick={()=>onChangePlaceStatus(id, zoneId)}>
<div classNa... |
frontend/modules/browse/components/Pagination.js | RyanNoelk/OpenEats | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { Link } from 'react-router-dom'
const Pagination = ({ offset, limit, count, buildUrl }) => {
offset = offset ? parseInt(offset) : 0;
limit = limit ? parseInt(limit) : 0;
count = count ? parseInt(count) : 0;
... |
lib/components/Login/Login.js | christielynam/do-you | import React, { Component } from 'react';
import fetchContainer from "../../containers/fetch-container";
import { Link } from 'react-router-dom';
import { Redirect } from 'react-router';
import Controls from '../Controls/Controls';
import './Login.css';
class Login extends Component {
constructor() {
super()
... |
src/svg-icons/av/volume-off.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVolumeOff = (props) => (
<SvgIcon {...props}>
<path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86... |
test/specs/elements/Icon/IconGroup-test.js | ben174/Semantic-UI-React | import React from 'react'
import IconGroup from 'src/elements/Icon/IconGroup'
import * as common from 'test/specs/commonTests'
describe('IconGroup', () => {
common.isConformant(IconGroup)
common.rendersChildren(IconGroup)
it('renders as an <i> by default', () => {
shallow(<IconGroup />)
.should.have.t... |
src/Menus/PitchToolBar.js | kevinleclair1/pitch_fx_visualizer | import React from 'react';
import PropTypes from 'prop-types';
import { ToolbarGroup } from 'material-ui/Toolbar';
import Toggle from 'material-ui/Toggle';
import createContainer from '../containers/GenericContainer.js';
import { createStructuredSelector } from 'reselect';
import {
selectors as sceneSelectors,
... |
packages/material-ui-icons/src/ZoomInSharp.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="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... |
packages/mineral-ui-icons/src/IconUpdate.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconUpdate(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>... |
src/view/DevTools.js | gejialun8888/shop-react | // 参考 https://github.com/gaearon/redux-devtools/blob/master/docs/Walkthrough.md
import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
// createDevTools takes a monitor and produces a DevTools c... |
app/routes/committee/posts/AddPost.js | phoenixmusical/web-client | import React, { Component } from 'react';
import Relay from 'react-relay';
import { Card, CardHeader, CardText, CardActions } from 'material-ui/Card';
import TextField from 'material-ui/TextField';
import FlatButton from 'material-ui/FlatButton';
import FloatingActionButton from 'material-ui/FloatingActionButton';
impo... |
RNCrashExamples/js/components/splashscreen/index.js | sytango-technologies/rn-crash-reporter | /**
* Powered by Systango
* http://www.systango.com
*/
'use strict';
import React, { Component } from 'react';
import { View, StyleSheet, StatusBar, Text, Image, Dimensions } from 'react-native';
import { replaceRoute } from '../../actions/route';
import { NavigationActions, StackActions } from 'react-navigation';... |
packages/cf-component-progress/src/Progress.js | mdno/mdno.github.io | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'cf-component-link';
import { createComponent } from 'cf-style-container';
import { clearFix } from 'polished';
const styles = () => ({
position: 'relative'
});
const Bar = createComponent(
({ theme }) => ({
display: 'block',
... |
node_modules/babel-core/lib/transformation/transformers/other/react.js | ibjohansen/acando-react-boilerplate-extended | "use strict";
exports.__esModule = true;
// istanbul ignore next
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj;... |
client/utils/checkAuth.js | andela-jmacharia/hati-DMS | import React from 'react';
import { connect } from 'react-redux';
export default function(ComposedComponent) {
class Authenticate extends React.Component {
componentWillMount() {
if (!this.props.isAuthenticated) {
this.context.router.push('/home');
}
}
componentWillUpdate(nextProps) ... |
node_modules/semantic-ui-react/dist/es/elements/Reveal/RevealContent.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { customPropTypes, getElementType, getUnhandledProps, META, useKeyOnly } from '../../lib';
/**
* A content sub-component for the Reveal.
*/
function RevealContent(... |
ajax/libs/aui/5.2-m6/js/aui-all.min.js | paleozogt/cdnjs | !function(a2,aB){var w,af,o=a2.document,aI=a2.location,d=a2.navigator,bg=a2.jQuery,I=a2.$,am=Array.prototype.push,a4=Array.prototype.slice,aK=Array.prototype.indexOf,z=Object.prototype.toString,V=Object.prototype.hasOwnProperty,aO=String.prototype.trim,bG=function(e,bZ){return new bG.fn.init(e,bZ,w)},bx=/[\-+]?(?:\d*\.... |
ajax/libs/yui/3.9.0pr2/event-focus/event-focus-debug.js | JimBobSquarePants/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() {
... |
docs/src/app/components/pages/components/Popover/ExampleConfigurable.js | rscnt/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import RadioButton from 'material-ui/RadioButton';
import Popover from 'material-ui/Popover/Popover';
import {Menu, MenuItem} from 'material-ui/Menu';
const styles = {
h3: {
marginTop: 20,
fontWeight: 400,
},
block: {
dis... |
src/ContentBlocks/BlockHero/BlockHeroForm.js | grommet/grommet-cms-content-blocks | // @flow
import React, { Component } from 'react';
import Box from 'grommet/components/Box';
import Button from 'grommet/components/Button';
import FormField from 'grommet/components/FormField';
import AddIcon from 'grommet/components/icons/base/Add';
import TrashIcon from 'grommet/components/icons/base/Trash';
import ... |
src/client.js | bshyong/trailerzoo-redux | import React from 'react';
import Router from 'react-router';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import routes from './views/routes';
import createRedux from './redux/create';
import { Provider } from 'redux/react';
import ApiClient from './ApiClient';
const history = new BrowserHistory();
c... |
docs/src/pages/premium-themes/onepirate/Terms.js | allanalexandre/material-ui | import withRoot from './modules/withRoot';
// --- Post bootstrap -----
import React from 'react';
import Container from '@material-ui/core/Container';
import Box from '@material-ui/core/Box';
import Markdown from './modules/components/Markdown';
import Typography from './modules/components/Typography';
import AppAppBar... |
app/components/navbar/login-modal/SubmitButton.js | OldFresco/web-app-kiwwi | import React, { Component } from 'react';
import FlatButton from 'material-ui/FlatButton';
class SubmitButton extends Component {
constructor(props) {
super(props);
this.muiName = 'FlatButton';
}
render() {
return (
<FlatButton
hoverColor = {'lavenderblush'} ... |
packages/material-ui-icons/src/VerticalAlignTopRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M9.21 11H11v9c0 .55.45 1 1 1s1-.45 1-1v-9h1.79c.45 0 .67-.54.35-.85l-2.79-2.79c-.2-.2-.51-.2-.71 0l-2.79 2.79c-.31.31-.09.85.36.85zM4 4c0 .55... |
files/backbonejs/1.2.1/backbone.js | cake654326/jsdelivr | // Backbone.js 1.2.1
// (c) 2010-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(factory) {
// Establish the root object, `window` (`se... |
12_ReactJS Fundamentals/04_routing/src/index.js | akkirilov/SoftUniProject | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<BrowserRouter><App /></BrowserRouter>, document.getElementById('root'));
registerSe... |
_site/search/backup/jquery.js | GreedTeam/greedteam.github.io | /*!
* 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 ... |
node_modules/react-router/es6/Redirect.js | 937aaron/reduxblog | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './PatternUtils';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.st... |
src/views/reminders/RemindersList.js | project-abigail/app | import React, { Component } from 'react';
import groupBy from 'lodash/groupBy';
import moment from 'moment';
import ReminderItem from './ReminderItem';
import './RemindersList.css';
class RemindersList extends Component {
constructor(props) {
super(props);
this.state = {
reminders: props.reminders,
... |
src/app/components/AppError/index.js | mike182uk/xbl-friends | import React from 'react'
import { Alert } from 'react-bootstrap'
export default function AppError (props) {
return (
<div>
<Alert bsStyle='danger'>{props.message}</Alert>
</div>
)
}
|
src/components/FacebookIcon/FacebookIcon.js | LiveTyping/android-colors | import React from 'react';
const FacebookIcon = () => (
<div aria-hidden="true">
<svg className="social-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path
// eslint-disable-next-line max-len
d="M18.77 7.46H14.5v-1.9c0-.9.6-1.1 1-1.1h3V.5h-4.33C10.24.5 9.5 3.44 9.5 5.32v2.15... |
src/pages/Profile.js | michaelfriedman/capstone-g40 | import React, { Component } from 'react';
import axios from 'axios';
import Moment from 'react-moment';
import { Image, Panel, Col, Well, Modal, Button, Glyphicon, Collapse } from 'react-bootstrap';
import GoogleMap from '../features/map/GoogleMap';
class Profile extends Component {
constructor(props) {
super(pr... |
src/components/rubymine/original-wordmark/RubymineOriginalWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './RubymineOriginalWordmark.svg'
/** RubymineOriginalWordmark */
function RubymineOriginalWordmark({ width, height, className }) {
return (
<SVGDeviconInline
classNa... |
src/components/SettingsSubOrder.js | rsimmons/voracious | import React, { Component } from 'react';
import './SettingsSubOrder.css';
export default class SettingsSubOrder extends Component {
constructor(props) {
super(props);
this.state = {
orderStr: props.subtitleOrder.toArray().join(','),
};
}
// Returns null if invalid
parseOrderStr = () => {
... |
fixtures/attribute-behavior/src/App.js | STRML/react | import React from 'react';
import {createElement} from 'glamor/react'; // eslint-disable-line
/* @jsx createElement */
import {MultiGrid, AutoSizer} from 'react-virtualized';
import 'react-virtualized/styles.css';
import FileSaver from 'file-saver';
import {
inject as injectErrorOverlay,
uninject as uninjectError... |
src/Filter.js | zanjs/react-ui | 'use strict'
import React from 'react'
import classnames from 'classnames'
//import { forEach } from '../utils/objects'
import Button from './Button'
import FilterItem from './FilterItem'
import clickAway from './higherorder/clickaway'
import { requireCss } from './themes'
requireCss('filter')
import {getLang, setLa... |
src/svg-icons/content/remove-circle-outline.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentRemoveCircleOutline = (props) => (
<SvgIcon {...props}>
<path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8... |
actor-apps/app-web/src/app/components/modals/Contacts.react.js | chengjunjian/actor-platform | //
// Deprecated
//
import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import ContactStore from 'stores/ContactStore';
import Modal from... |
js/jqwidgets/demos/react/app/listbox/multipleselection/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxListBox from '../../../jqwidgets-react/react_jqxlistbox.js';
class App extends React.Component {
componentDidMount() {
this.refs.myListBox.selectIndex(2);
this.refs.myListBox.selectIndex(5);
this.refs.myListBox.selectI... |
src/BlogPostTile.js | melaniebmn/peaktrails | import React, { Component } from 'react';
import styled from 'styled-components';
const PostTitle = styled.h3`
position: absolute;
bottom: 28px;
left: 25px;
width: calc(80% - 30px);
min-height: 92px;
font-size: 22px;
padding: 20px;
background: #fff;
transition: all .5s;
@media only screen and (max-... |
src/components/App.js | soyguijarro/magic-web | import React from 'react';
import Header from './Header';
import getLastChunkOfPath from '../utils/getLastChunkOfPath';
const App = ({ location, children }) => (
<div
className="app"
>
<Header
experimentId={getLastChunkOfPath(location.pathname)}
/>
{children}
</div>
);
export default App;... |
src/workflows/nwchem/common/steps/Introduction/index.js | Kitware/HPCCloud | import React from 'react';
import DocumentationHTML from '../../../../generic/components/steps/DocumentationHTML';
import staticContent from './content.html';
export default (props) => <DocumentationHTML staticContent={staticContent} />;
|
js/vendor/jquery-1.11.2.min.js | kimkaralekas/dynamic_Dashboard_chartJS | /*! jQuery v1.11.2 | (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... |
src/Button.js | LayGit/layui | import React from 'react'
import classnames from 'classnames'
class Group extends React.Component {
render () {
const activeIndex = this.props.activeIndex
const buttons = React.Children.map(this.props.children, (item, i)=>{
return activeIndex == i ? React.cloneElement(item, { active: true }) : item
... |
ajax/libs/jquery/1.4.4/jquery.min.js | sufuf3/cdnjs | /*!
* 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.
... |
ajax/libs/yui/3.18.0/event-focus/event-focus-debug.js | amoyeh/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() {
... |
src/index.js | TheGigabots/gigabots-dashboard | // @flow
import React from 'react';
import { render } from 'react-dom';
import Index from './pages/index';
const rootElement = document.querySelector('#root');
if (rootElement) {
render(<Index />, rootElement);
}
|
client/src/javascript/components/sidebar/SidebarActions.js | jfurrow/flood | import React from 'react';
class SidebarActions extends React.Component {
render() {
return <div className="sidebar__actions">{this.props.children}</div>;
}
}
export default SidebarActions;
|
ui/src/components/template/TemplateRow.js | yahoo/athenz | /*
* Copyright 2020 Verizon Media
*
* 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 law or agreed t... |
shared/container/DevTools/DevTools.js | cookiecooker/beaconSeed | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w"
>
<LogMonitor />
<... |
src/articles/2017-10-21-DiscordBot/index.js | FaideWW/WoWAnalyzer | import React from 'react';
import { Zerotorescue } from 'CONTRIBUTORS';
import DiscordLogo from 'interface/images/Discord-Logo+Wordmark-White.svg';
import RegularArticle from 'interface/news/RegularArticle';
import DiscordBotGif from './discord-bot.gif';
export default (
<RegularArticle
title="The WoWAnalyzer ... |
ajax/libs/forerunnerdb/1.3.763/fdb-core+persist.min.js | joeyparrish/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/svg-icons/communication/mail-outline.js | skarnecki/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>
)... |
test/integration/image-component/asset-prefix/pages/index.js | azukaru/next.js | import React from 'react'
import Image from 'next/image'
import img from '../public/test.jpg'
const Page = () => {
return (
<div>
<p>Asset Prefix</p>
<Image id="test1" src={img} placeholder="blur"></Image>
</div>
)
}
export default Page
|
ajax/libs/primereact/8.1.0/card/card.min.js | cdnjs/cdnjs | this.primereact=this.primereact||{},this.primereact.card=function(e,t,r){"use strict";function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:functi... |
src/routes.js | skeskinen/redux-project-template | /* @flow */
import { Route, IndexRoute} from 'react-router';
import App from './containers/App';
import Counter from './containers/Counter';
import React from 'react';
const routes = (
<Route path='/' component={App}>
<IndexRoute component={Counter} />
</Route>
);
export default routes;
|
components/table/TableRow.js | KerenChandran/react-toolbox | import React from 'react';
import ClassNames from 'classnames';
import Checkbox from '../checkbox';
import utils from '../utils/utils';
import style from './style';
class TableRow extends React.Component {
static propTypes = {
data: React.PropTypes.object,
index: React.PropTypes.number,
model: React.Prop... |
app/javascript/mastodon/components/modal_root.js | theoria24/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import 'wicg-inert';
import { createBrowserHistory } from 'history';
import { multiply } from 'color-blend';
export default class ModalRoot extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
... |
ajax/libs/extjs/4.2.1/src/data/proxy/Ajax.js | DDMAL/cdnjs | /*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
src/components/Organize/product/qrcode.js | yiweimatou/doctor-antd | import React, { Component } from 'react'
import { Form, Table, Button, Input, Row, InputNumber, Col, Modal, DatePicker, Select, message, Spin } from 'antd'
import RefereeSelect from '../person/referee_select'
import organize_products from '../../../services/organize_products'
import { downloadURI } from '../../../utils... |
src/components/hero.js | basvandriel/WWW | import React from 'react';
import { Link } from 'gatsby';
import { Container, Button } from 'react-bootstrap';
import styled from 'styled-components';
import theme from '../theme';
import media from '../media';
import { Fade } from "react-awesome-reveal";
const TITLE_SIZE = '72px';
const StyledSection = styled.se... |
pyqt/resource/qml/lib/jquery/jquery.min.js | iclosure/carmonitor | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
src/components/NotFoundPage.js | hofnarwillie/weather-demo | import React from 'react';
import {Link} from 'react-router';
export default () => {
return (
<div>
<h4>
404 Page Not Found
</h4>
<Link to="/"> Go back to homepage </Link>
</div>
);
};
|
src/svg-icons/maps/local-offer.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalOffer = (props) => (
<SvgIcon {...props}>
<path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86... |
ajax/libs/video.js/5.0.0-rc.67/video.js | amoyeh/cdnjs | /**
* @license
* Video.js 5.0.0-rc.67 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.