path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/jquery.fancytree/2.10.1/jquery.fancytree-all.min.js | dhowe/cdnjs | /*! jQuery Fancytree Plugin - 2.10.1 - 2015-06-27T22:07
* https://github.com/mar10/fancytree
* Copyright (c) 2015 Martin Wendt; Licensed MIT */
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( [ "jquery" ], factory );
} else {
factory( jQuery );
}
}(function( $ ) {
!functio... |
src/components/Logo/Logo.js | neontribe/gbptm | import React from 'react';
import Box from '../Box';
import logo from './logo.svg';
const Logo = (props) => (
<Box
as="img"
src={logo}
alt="The Great British Toilet Map"
width={154}
{...props}
/>
);
export default Logo;
|
src/applications/static-pages/manage-va-debt/createManageVADebtCTA.js | department-of-veterans-affairs/vets-website | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
export default function createManageVADebtCTA(store, widgetType) {
const root = document.querySelector(`[data-widget-type="${widgetType}"]`);
if (root) {
import('./MangeVADebtCTA').then(module => {
const ... |
js-old/src/ui/ConfirmDialog/confirmDialog.spec.js | destenson/ethcore--parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
src/components/Navigation.js | seripap/wedding.seripap.com | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { IndexLink, Link } from 'react-router';
import classNames from 'classnames';
import MobileMenu from './MobileMenu';
export default class Navigation extends Component {
constructor(props) {
super(props);
this.state = {
... |
src/parser/druid/feral/modules/combopoints/ComboPointBreakdown.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import { TooltipElement } from 'common/Tooltip';
// Copied from core breakdown, but with support for 'max CP casts' in spenders display
class ResourceBreakdown ext... |
packages/react-dom/src/server/ReactPartialRenderer.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 {ThreadID} from './ReactThreadIDAllocator';
import type {ReactElement} from 'shared/ReactElementType';
imp... |
components/Table/Holders/Buttons/Buttons.js | mattbajorek/blackJackReact | import React, { Component } from 'react';
import './Buttons.scss';
import random from '../random.js';
import actions from '../../../../redux/actions';
class Buttons extends Component {
handlePlaceClick(e) {
// Add random card to player array
this.props.dispatch(actions.placeBet(random()));
}
handleClearClick(... |
webapp/src/Congratulation.js | ggerbaud/go-dart | import React from 'react';
const Congratulation = ({game, player}) => {
if (game.Ongoing == 4) {
return (
<div className="card horizontal">
<div className="card-stacked">
<div className="card-content">
Congratulations {player.Name}
... |
ajax/libs/rxjs/2.3.2/rx.all.js | aaqibrasheed/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... |
node_modules/react-bootstrap/es/ToggleButton.js | superKaigon/TheCave | 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 ... |
ajax/libs/yui/3.3.0pr3/loader/loader-base-debug.js | bootcdn/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSI... |
app/scripts/main.js | Angelwang51/react-fireblog | import React from 'react';
import Router from 'react-router';
import routes from './routes';
Router.run(routes, Handler => React.render(<Handler />, document.body)); |
src/svg-icons/action/speaker-notes-off.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSpeakerNotesOff = (props) => (
<SvgIcon {...props}>
<path d="M10.54 11l-.54-.54L7.54 8 6 6.46 2.38 2.84 1.27 1.73 0 3l2.01 2.01L2 22l4-4h9l5.73 5.73L22 22.46 17.54 18l-7-7zM8 14H6v-2h2v2zm-2-3V9l2 2H6zm14... |
ajax/libs/es6-shim/0.26.0/es6-shim.js | hasantayyar/cdnjs | /*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
* es6-shim: v0.26.0
* see https://github.com/paulmillr/es6-shim/blob/0.26.0/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-... |
server/sonar-web/src/main/js/apps/overview/components/timeline-chart.js | joansmith/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
packages/icons/src/md/image/SlideShow.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdSlideShow(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M20 16v16l10-8-10-8zM38 6c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H10c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4h28zm0 32V10H10v28h28z" />
</IconBas... |
examples/real-world/containers/DevTools.js | leoasis/redux | 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 />
... |
index.ios.js | tedsf/tiptap | import React, { Component } from 'react';
import { AppRegistry, Navigator } from 'react-native';
import Main from './main';
import Registration from './registration';
import Active from './active';
class TipTap extends Component {
render() {
return (
<Navigator
initialRoute={{name:'main'}}
... |
src/js/ui/search-bar.js | SpaceHexagon/pylon | import React from 'react';
import Icon from './icon.js';
import Card from './card.js';
import FileContextMenu from './file-context-menu.js';
export default class SearchBar extends React.Component {
constructor() {
super();
// Initial state of the component
this.state = {
visible: false,
results:... |
docs/src/pages/components/use-media-query/SimpleMediaQuery.js | lgollut/material-ui | import React from 'react';
import useMediaQuery from '@material-ui/core/useMediaQuery';
export default function SimpleMediaQuery() {
const matches = useMediaQuery('(min-width:600px)');
return <span>{`(min-width:600px) matches: ${matches}`}</span>;
}
|
new-lamassu-admin/src/index.js | naconner/lamassu-server | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import * as serviceWorker from './serviceWorker'
function checkBuildTarget() {
const buildTarget = process.env.REACT_APP_BUILD_TARGET
if (buildTarget !== 'LAMASSU' && buildTarget !== 'PAZUZ') {
return Promise.reject(
new... |
webapp/src/NewPlayerButton.js | ggerbaud/go-dart | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import {Input} from 'react-materialize';
import {FormattedMessage} from 'react-intl';
class NewPlayerButton extends Component {
constructor(props) {
super(props)
this.state = {
boards: []
}
this.handleB... |
Example/Example.js | egpast/react-native-camera | import React from 'react';
import {
Image,
StatusBar,
StyleSheet,
TouchableOpacity,
View,
} from 'react-native';
import Camera from 'react-native-camera';
const styles = StyleSheet.create({
container: {
flex: 1,
},
preview: {
flex: 1,
justifyContent: 'flex-end',
alignItems: 'center',
... |
ajax/libs/yui/3.0.0beta1m1/yui/yui.js | upgle/cdnjs | /**
* YUI core
* @module yui
*/
(function() {
var _instances = {}, _startTime = new Date().getTime(), Y, p, i,
// @TODO: this needs to be created at build time from module metadata
_APPLY_TO_WHITE_LIST = {
'io.xdrReady': 1,
'io.start': 1,
'io.success': 1,
... |
src/svg-icons/action/event.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEvent = (props) => (
<SvgIcon {...props}>
<path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/>
</SvgIcon>
... |
11-route-with-subroutes/components/Drinks.js | nodeyu/jason-react-router-demos-v4 | import React from 'react';
import { Link } from 'react-router-dom';
import RouteWithSubRoutes from './RouteWithSubRoutes';
const Drinks = ({ routes }) => (
<div>
<h2>Drinks</h2>
<ul>
<li><Link to="/drinks/coke">Coke</Link></li>
<li><Link to="/drinks/juice">Juice</Link></li>
... |
app/js/components/ui/components/logos/index.js | blockstack/blockstack-portal | import React from 'react'
import styled from 'styled-components'
import PropTypes from 'prop-types'
const StyledBug = styled.svg`
display: block;
width: ${({ size }) => size}px;
height: ${({ size }) => size}px;
`
const logoRatio = 0.118387909
const getHeight = width => Math.floor(width * logoRatio)
const Logo ... |
docs/src/app/components/pages/components/Menu/ExampleIcons.js | barakmitz/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
import RemoveRedEye from 'material-ui/svg-icons/image/remove-red-eye';
import PersonAdd from 'material-ui/svg-icons/social/person-add';
import ContentLink from 'material-ui... |
src/Tab.js | HorizonXP/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const Tab = React.createClass({
propTypes: {
/**
* @private
*/
active: React.PropTypes.bool,
animation: React.PropTypes.bool,
/**
* It is used by 'Tab... |
packages/material-ui-icons/src/SwapVertRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M16 17.01V11c0-.55-.45-1-1-1s-1 .45-1 1v6.01h-1.79c-.45 0-.67.54-.35.85l2.79 2.78c.2.19.51.19.71 0l2.79-2.78c.32-.31.09-.85-.35-.85H16zM8.65 3.35L5.86 6.14c-.32.31-.1.85.35.85H8V13c0 .55.45 1 1 1s1-.4... |
src/components/App/_tests_/App.spec.js | believer/react-starter | import chai from 'chai';
let expect = chai.expect;
import React from 'react';
import sd from 'skin-deep';
import proxyquire from 'proxyquire';
let File, { App } = proxyquire('../App', {
'react-css-modules': function () { return function () {} },
'./App.css': {}
})
describe('App', () => {
var tree, vdom;
befor... |
layout/explore/explore-datasets/list/list-item/component.js | resource-watch/resource-watch | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Link from 'next/link';
import { withRouter } from 'next/router';
// components
import WidgetChart from 'components/charts/widget-chart';
import MapThumbnail from 'components/map/thumbnail';
import PlaceholderChar... |
packages/veritone-widgets/src/widgets/FormBuilder/TemplateListPage.js | veritone/veritone-sdk | import React from 'react';
import { arrayOf, shape, number, func, string } from 'prop-types';
import Container from '@material-ui/core/Container';
import Typography from '@material-ui/core/Typography';
import FormTable from './FormTable';
export default function TemplateListPage({
templates,
page,
rowsPerPage,... |
tests/routes/UserManagement/components/CreateUser.spec.js | vijayasankar/ML2.0 | import React from 'react'
import { expect } from 'chai'
import { shallow, mount } from 'enzyme'
import ReduxFormStub from '../../../ReduxFormStub'
import CreateUserReduxForm, { CreateUser } from 'routes/UserManagement/components/CreateUser'
describe('(Component) RequestPreApproval/ProcedureCost - shallow', () => {
... |
examples/with-monorepo/basic-1/src/server.js | jaredpalmer/razzle | import path from 'path';
import App from './App';
import React from 'react';
import express from 'express';
import { renderToString } from 'react-dom/server';
const assets = require(process.env.RAZZLE_ASSETS_MANIFEST);
const cssLinksFromAssets = (assets, entrypoint) => {
return assets[entrypoint] ? assets[entrypoin... |
front/age/dob.js | RalphSleigh/bookings | import React from 'react'
import DateTimePicker from 'react-widgets/lib/DateTimePicker'
import {
Col,
Label
} from 'reactstrap';
import W from "../../shared/woodcraft";
import Moment from "moment/moment";
const moment = require("moment");
/*
indvidual age widgets
*/
export default {
BookingFormWidget:... |
example/Links/index.js | antonKalinin/react-json-graph | import React from 'react';
import styles from './links.css';
const url = 'https://github.com/antonKalinin/react-json-graph';
const GithubIcon = () => (
<svg width='20' height='20' fill='#fff' viewBox='0 0 284 277'>
<g><path d='M141.888675,0.0234927555 C63.5359948,0.0234927555 0,63.5477395 0,141.912168 C0,... |
articles/article_saved_html/Nursing student sues school that dismissed her for questioning unethical, immoral and illegal vaccine bullying tactics - NaturalNews.com_files/common.bundle.536cf202f0e5fab40eb6ae4861fb6562.js | gloriakang/vax-sentiment | define("core/utils/object/has",[],function(){"use strict";return function(a,b){return Object.prototype.hasOwnProperty.call(a,b)}}),define("core/utils/collection/each",["core/utils/object/has"],function(a){"use strict";return function(b,c){var d=b.length,e=Array.prototype.forEach;if(isNaN(d))for(var f in b)a(b,f)&&c(b[f... |
src/cms/preview-templates/post-preview.js | Amine-H/Amine-H.github.io | // @flow strict
import React from 'react';
import type { Entry, WidgetFor } from '../../types';
type Props = {
entry: Entry,
widgetFor: WidgetFor
};
const PostPreview = ({ entry, widgetFor }: Props) => {
const body = widgetFor('body');
const title = entry.getIn(['data', 'title']);
return (
<div classNa... |
scripts/publish-npm.js | tadeuzagallo/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.
*/
'use strict... |
node_modules/react-icons/md/local-library.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdLocalLibrary = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 13.4c-2.7 0-5-2.3-5-5s2.3-5 5-5 5 2.2 5 5-2.3 5-5 5z m0 5.8c3.9-3.7 9.2-5.8 15-5.8v18.2c-5.8 0-11.1 2.3-15 6-3.9-3.7-9.2-6-15-6v-18.2c5.8 0 11.1 2.1 15 5.8z"... |
src/docs/apiExamples/ScatterChart.js | recharts/recharts.org | import React from 'react';
import { ScatterChart, Scatter, XAxis, YAxis, ZAxis, CartesianGrid, Tooltip, Legend } from 'recharts';
const data01 = [
{ x: 100, y: 200, z: 200 },
{ x: 120, y: 100, z: 260 },
{ x: 170, y: 300, z: 400 },
{ x: 140, y: 250, z: 280 },
{ x: 150, y: 400, z: 500 },
{ x: 110, y: 280, z:... |
packages/material-ui-icons/src/VoiceChatTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M4 17.17L5.17 16H20V4H4v13.17zM7 7h7v2.4L17 7v6l-3-2.4V13H7V7z" opacity=".3" /><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16... |
src/Thumbnail.js | HorizonXP/react-bootstrap | import React from 'react';
import classSet from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import SafeAnchor from './SafeAnchor';
const Thumbnail = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
alt: React.PropTypes.string,
href: React.PropTypes.string,
src: React.PropTyp... |
docs/app/Examples/modules/Progress/States/ProgressExampleDisabled.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Progress } from 'semantic-ui-react'
const ProgressExampleDisabled = () => (
<Progress percent={60} disabled>
Disabled
</Progress>
)
export default ProgressExampleDisabled
|
ajax/libs/knockout-kendo/0.9.4/knockout-kendo.js | pvnr0082t/cdnjs | /*
* knockout-kendo 0.9.4
* Copyright © 2015 Ryan Niemeyer & Telerik
*
* 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 b... |
src/routes/Library/components/Library.js | altarit/cloudpolis-react | import React from 'react'
import PropTypes from 'prop-types'
import {Link} from 'react-router-dom'
import './Library.scss'
export class Library extends React.Component {
static propTypes = {
libraryName: PropTypes.string,
// fetching: PropTypes.bool,
compilations: PropTypes.arrayOf(PropTypes.object).isR... |
packages/material-ui-icons/src/Crop.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z" /></g>
, 'Crop');
|
src/components/pages/organize/EditView.js | yiweimatou/yishenghoutai | import React from 'react'
import { Field } from 'redux-form'
import { MenuItem, RaisedButton } from 'material-ui'
import TextField from '../../ReduxForm/TextField'
import SelectField from '../../ReduxForm/SelectField'
import ImageUpload from '../../ImageUpload'
const styles = {
form:{
display:'flex',
... |
webpack/ForemanTasks/Routes/ForemanTasksRouter.js | adamruzicka/foreman-tasks | import React from 'react';
import { Switch, Route } from 'react-router-dom';
import routes from './ForemanTasksRoutes';
const ForemanTasksRouter = () => (
<Switch>
{Object.entries(routes).map(([key, props]) => (
<Route key={key} {...props} />
))}
</Switch>
);
export default ForemanTasksRouter;
|
desktop-application/node_modules/rx/dist/rx.all.js | santosh-surya/pcb-cnc-machine | // 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/app/App.js | cityofasheville/simplicity2 | import React from 'react';
import firebase from 'firebase';
import firebaseui from 'firebaseui';
import PropTypes from 'prop-types';
import { graphql, compose, withApollo } from 'react-apollo';
import { updateUser } from '../utilities/auth/graphql/authMutations';
import { getUser } from '../utilities/auth/graphql/authQ... |
docs/app/Examples/elements/Image/Variations/ImageExampleCentered.js | koenvg/Semantic-UI-React | import React from 'react'
import { Segment, Image } from 'semantic-ui-react'
const src1 = '/assets/images/wireframe/image.png'
const src2 = '/assets/images/wireframe/image-text.png'
const ImageExampleCentered = () => (
<Segment>
<Image src={src1} size='medium' centered />
<p>
Te eum doming eirmod, nom... |
wp-content/themes/ilite/js/jquery.min.js | ocapoch/wordpress | /*! jQuery v1.7.2 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 cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
ajax/libs/mediaelement/2.1.6/jquery.js | Timbioz/cdnjs | /*!
* jQuery JavaScript Library v1.6.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/packages/@ncigdc/components/Links/ManageSetsLink.js | NCI-GDC/portal-ui | /* @flow */
import React from 'react';
import Link from './Link';
type TProps = {
children?: mixed,
style?: Object,
activeStyle?: Object,
onClick?: Function,
};
export default ({ children, ...props }: TProps) => (
<Link pathname="/manage-sets" {...props}>
{children || 'Manage Sets'}
</Link>
);
|
packages/material-ui-icons/src/HotTub.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let HotTub = props =>
<SvgIcon {...props}>
<circle cx="7" cy="6" r="2" /><path d="M11.15 12c-.31-.22-.59-.46-.82-.72l-1.4-1.55c-.19-.21-.43-.38-.69-.5-.29-.14-.62-.23-.96-.23h-.03C6.01 9 5 10.01 5 11.25V12H2v... |
client/containers/users/email-enrollment-form.js | ShannChiang/meteor-react-redux-base | import React from 'react';
import {useDeps} from 'react-simple-di';
import {composeAll, withTracker} from 'react-komposer-plus';
import EmailEnrollmentForm from '../../components/users/email-enrollment-form';
function composer({context}, onData) {
onData(null, {
loggingIn: context.Meteor.loggingIn(),
logge... |
packages/showcase/misc/gradient-example.js | uber-common/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
_demo_/__tests__/index.ios.js | shoplinksys/react-native-scandit | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
ajax/libs/clappr/0.0.19/clappr.js | Sneezry/cdnjs | 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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]... |
ajax/libs/material-ui/5.0.0-alpha.33/node/AccordionDetails/AccordionDetails.js | cdnjs/cdnjs | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _extends2 = _interopRequireDefaul... |
packages/material-ui-icons/src/BorderLeftSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M11 21h2v-2h-2v2zm0-4h2v-2h-2v2zm0-12h2V3h-2v2zm0 4h2V7h-2v2zm0 4h2v-2h-2v2zm-4 8h2v-2H7v2zM7 5h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2V3H3v18zM19 9h2V7h-2v2zm-4 12h2v-2h-2v2zm4-4h2v-2h-2v2zm0-1... |
src/components/Calculator.js | ariel-zplinux/simple-calculator | import React, { Component } from 'react';
import '../style/Calculator.css';
import {API_SERVER_HOST, API_SERVER_PORT} from '../config/config.js'
import Button from './Button.js';
import Display from './Display.js';
class Calculator extends Component {
constructor(props) {
super(props);
// initia... |
src/svg-icons/navigation/subdirectory-arrow-right.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationSubdirectoryArrowRight = (props) => (
<SvgIcon {...props}>
<path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"/>
</SvgIcon>
);
NavigationSubdirectoryArrowRight = pure(Navigat... |
fixtures/packaging/systemjs-builder/dev/input.js | mosoft521/react | import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
React.createElement('h1', null, 'Hello World!'),
document.getElementById('container')
);
|
node_modules/react-bootstrap/es/MediaBody.js | skinsshark/skinsshark.github.io | 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 ... |
blueocean-dashboard/src/test/js/run-description-spec.js | kzantow/blueocean-plugin | import React from 'react';
import { assert, expect } from 'chai';
import { render } from 'enzyme';
import RunDescription from '../../main/js/components/karaoke/components/RunDescription';
const t = (m) => { return m; };
describe('RunDescription', () => {
it('displays description', () => {
const run = { de... |
files/videojs/5.0.0-rc.86/video.js | cake654326/jsdelivr | /**
* @license
* Video.js 5.0.0-rc.86 <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... |
docs/app/Examples/modules/Modal/Types/ModalExampleBasic.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Button, Header, Icon, Modal } from 'semantic-ui-react'
const ModalBasicExample = () => (
<Modal trigger={<Button>Basic Modal</Button>} basic size='small'>
<Header icon='archive' content='Archive Old Messages' />
<Modal.Content>
<p>Your inbox is getting full, would you... |
Scripts/angular-scenario.js | Developer-Autodesk/integration-sap-view.and.data.api | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
ajax/libs/core-js/0.3.0/core.js | cdnjs/cdnjs | /**
* Core.js 0.3.0
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2014 Denis Pushkarev
*/
!function(returnThis, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
ajax/libs/yasgui/1.0.13/yasgui.min.js | billybonz1/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/client/components/Edit.js | gearz-lab/hypersonic | import _ from 'underscore';
import React from 'react';
import { AutoForm, DefaultEditComponentFactory } from 'redux-autoform';
import { Alert, ButtonToolbar, Button } from 'react-bootstrap';
import EditButtonToolbar from './EditButtonToolbar';
var Edit = React.createClass({
propTypes: {
params: React.Pro... |
ajax/libs/F2/1.3.2/f2.min.js | TerryMooreII/cdnjs | /*! F2 - v1.3.2 - 11-18-2013 - See below for copyright and license */
(function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obta... |
docs/app/Examples/views/Item/Variations/Alignment.js | ben174/Semantic-UI-React | import React from 'react'
import { Item } from 'semantic-ui-react'
const { Content, Group, Header, Image } = Item
const Alignment = () => (
<Group>
<Item>
<Image size='small' src='http://semantic-ui.com/images/wireframe/image.png' />
<Content verticalAlign='top'>
<Header>Top Aligned</Header... |
pootle/static/js/user/app.js | r-o-b-b-i-e/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import ReactDOM from 'react-dom... |
client/app/components/card.js | dat2/hanabi-clone-web | import React from 'react'
class Card extends React.Component {
constructor() {
super()
this.onClick = this.onClick.bind(this)
this.onRightClick = this.onRightClick.bind(this)
}
onClick(e) {
}
onRightClick(e) {
// e.preventDefault()
}
render() {
const { card: { colour, colourKnow... |
WebServer/POC/sandbox/application_save.js | Tofull/share.me | import React from 'react';
import { Button, IconButton } from 'react-toolbox/lib/button';
/**
* Class for application.
*
* Head of components
*/
class Application extends React.Component {
/**
* Constructs the object.
*
* @param {<type>} props The properties
*/
constructor(props... |
ajax/libs/rxjs/2.5.3/rx.compat.js | amoyeh/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
};
... |
client/index.js | karuppiah7890/Mail-for-Good | /* eslint-disable import/default */
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { browserHistory } from 'react-router';
import RouterConfig from './routes';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tell webpack to... |
packages/material-ui-icons/src/SignalWifi0BarRounded.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path fillOpacity=".3" d="M23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l10.08 12.56c.8 1 2.32 1 3.12 0L23.64 7z" />
, 'SignalWifi0BarRounded');
|
hybrid/test/ForcePluginsTest/build/intermediates/assets/release/www/dependencies/react/JSXTransformer.js | kchitalia/android-travis | /**
* JSXTransformer v0.12.0
*/
!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.JSXTransformer=e()}... |
__tests__/index.android.js | calvinchengcc/busnapper | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/svg-icons/device/access-alarm.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessAlarm = (props) => (
<SvgIcon {...props}>
<path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-... |
docs/src/pages/system/display/Hiding.js | kybarg/material-ui | import React from 'react';
import Box from '@material-ui/core/Box';
export default function Hiding() {
return (
<div style={{ width: '100%' }}>
<Box display={{ xs: 'block', md: 'none' }} m={1}>
hide on screens wider than md
</Box>
<Box display={{ xs: 'none', md: 'block' }} m={1}>
... |
web/src/content/projects/fare-alert/FareAlertStories.js | ajmalafif/ajmalafif.com | import React from 'react'
import Stories from 'react-insta-stories'
import { getImage, GatsbyImage } from 'gatsby-plugin-image'
import tw, { css, theme } from 'twin.macro'
export const FareAlertStories = (props) => {
const figure1 = <GatsbyImage alt="Fare Alert exploration A" image={getImage(props.assets[0])} />
... |
ajax/libs/yasgui/0.0.9/yasgui.min.js | Mrkebubun/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... |
node_modules/react-icons/md/keyboard-tab.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdKeyboardTab = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m33.4 10h3.2v20h-3.2v-20z m-14.1 2.3l2.3-2.3 10 10-10 10-2.3-2.3 6-6.1h-23.7v-3.2h23.7z"/></g>
</Icon>
)
export default MdKeyboardTab
|
__tests__/components/taskCard-test.js | TedForV/ProjectManagement | jest.unmock('../../dev/components/TaskCard');
jest.unmock('immutable');
import TaskCard from '../../dev/components/TaskCard';
import {mount} from 'enzyme';
import Immutable from 'immutable';
import React from 'react';
var taskInfo = {
title: 'Unit test',
tags: ['Holly', 'Shit', 'Babe', 'just a test tag']
}
d... |
src/containers/Home/Home.js | yomolify/cc_material | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
import config from '../../config';
import Helmet from 'react-helmet';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// req... |
src/routes/error/ErrorPage.js | bigearth/www.clone.earth |
import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './ErrorPage.css';
class ErrorPage extends React.Component {
static propTypes = {
error: PropTypes.shape({
name: PropTypes.string.isRequired,
message: PropTyp... |
fields/types/datetime/DatetimeField.js | kumo/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/SparklinesReferenceLine.js | timoxley/react-sparklines | import React from 'react';
import DataProcessor from './DataProcessor';
export default class SparklinesReferenceLine extends React.Component {
static propTypes = {
type: React.PropTypes.oneOf(['max', 'min', 'mean', 'avg', 'median']),
style: React.PropTypes.object
};
static defaultProps = ... |
examples/ui/index.js | paularmstrong/react-component-benchmark | import Benchmark, { BenchmarkType } from 'react-component-benchmark';
import React, { Component } from 'react';
import { string } from 'prop-types';
class MyComponent extends Component {
static propTypes = {
title: string
};
render() {
return <div>{/* ... */}</div>;
}
}
export default class MyCompone... |
ajax/libs/forerunnerdb/1.3.824/fdb-all.js | dakshshah96/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... |
catalog/app/website/components/Illustration.js | quiltdata/quilt-compiler | import * as React from 'react'
import { Box } from '@material-ui/core'
import { styled } from '@material-ui/styles'
import img2x from 'utils/img2x'
export default styled(
({ srcs, dir, offset, centerOffset, width, alwaysAbsolute, boxProps, ...props }) => (
<Box position="relative" {...props} {...boxProps}>
... |
docs/app/Components/ComponentDoc/ComponentControls/ComponentControlsToolTip.js | shengnian/shengnian-ui-react | import PropTypes from 'prop-types'
import React from 'react'
import { Popup } from 'shengnian-ui-react'
const toolTipStyle = {
padding: '0.5em',
textAlign: 'center',
width: 100,
}
const ComponentControlsToolTip = ({ children, content }) => (
<Popup
content={content}
inverted
mouseEnterDelay={800}
... |
examples/real-world/index.js | kingland/redux | import 'babel-core/polyfill';
import React from 'react';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import configureStore from './store/configureStore';
import App from './containers/App';
import UserPage fro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.