path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
client/src/components/svg/UploaderIcon.js | Wiredcraft/jekyllpro-cms | import React from 'react';
export default props => {
return (
<svg
height="24"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M0 0h24v24H0z" fill="none" />
<path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z" />
</svg>
);
};
|
src/components/FormItem/FormItem-test.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { shallow } from 'enzyme';
import FormItem from '../FormItem';
describe('FormItem', () => {
it('should r... |
admin/client/App/shared/Popout/PopoutListItem.js | trentmillar/keystone | /**
* Render a popout list item
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutListItem = React.createClass({
displayName: 'PopoutListItem',
propTypes: {
icon: React.PropTypes.string,
iconHover: React.PropTypes.string,
isSelected: React.PropTy... |
media/jui/js/jquery.min.js | unrealprojects/flora-donna | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
app/components/IssueIcon/index.js | KraigWalker/frontendfriday | import React from 'react';
function IssueIcon(props) {
return (
<svg
height="1em"
width="0.875em"
className={props.className}
>
<path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v... |
frontend/src/App.js | generalelectrix/color_organist | import React from 'react';
import { ColorChain, GoboChain } from './Chain';
import './App.css'
// The websocket we'll use to communicate with the backend.
const socket = new WebSocket('ws://' + window.location.hostname + ':4321')
socket.onopen = _ => console.log("Opened websocket.")
socket.onmessage = event => consol... |
src/AutoComplete/index.js | reactivers/react-material-design | /**
* Created by Utku on 28/03/2017.
*/
import React from 'react';
import PropTypes from 'prop-types';
import '@material/menu/dist/mdc.menu.css'
import {MDCSimpleMenu} from '@material/menu/dist/mdc.menu';
import '../index.scss';
import TextField from '../TextField/index';
import generateId from '../utils/generateId';... |
ajax/libs/yui/3.11.0/event-focus/event-focus.js | AlicanC/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() {
... |
stories/LayerEditor.stories.js | maputnik/editor | import React from 'react';
import LayerEditor from '../src/components/LayerEditor';
import {action} from '@storybook/addon-actions';
import {withA11y} from '@storybook/addon-a11y';
import {latest} from '@mapbox/mapbox-gl-style-spec'
export default {
title: 'LayerEditor',
component: LayerEditor,
decorators: [wit... |
src/Button/components/Spacing.js | nkiateam/polestar-antd | import React from 'react';
import PropTypes from 'prop-types';
class Spacing extends React.Component {
static propTypes = {
spacing: PropTypes.number,
};
static defaultProps = {
spacing: 5,
};
constructor(props) {
super(props);
this.state = {};
}
renderChi... |
test/specs/views/Card/CardMeta-test.js | koenvg/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import CardMeta from 'src/views/Card/CardMeta'
import * as common from 'test/specs/commonTests'
describe('CardMeta', () => {
common.isConformant(CardMeta)
common.rendersChildren(CardMeta)
describe('description prop', () => {
it('renders child text', () =>... |
src/components/Content/ContextualInput.js | Phizzard/Reactbase-cms | import React, { Component } from 'react';
import {TextField, Toggle} from 'material-ui';
export default class ContextualInput extends Component {
constructor(props){
super(props);
this.state = {
id: '',
input: '',
label: '',
value: ''
}
... |
frontend/src/components/partners/profile/overview/verification/verificationContent.js | unicef/un-partner-portal | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { isEmpty } from 'ramda';
import { browserHistory as history } from 'react-router';
import { connect } from 'react-redux';
import {
selectMostRecentVerification,
selectPreviousVerificationCount,
selectPartnerVerifications,
} from... |
test/modal-test.js | knledg/react-blur-admin | /* eslint-disable no-console */
import React from 'react';
import sinon from 'sinon';
import {noop} from 'lodash';
import {expect} from 'chai';
import {shallow} from 'enzyme';
import { Modal } from '../src';
describe('<Modal/>', function() {
describe('With default properties', function() {
const component = sh... |
src/lib/plot/axis/y-axis.js | jameskraus/react-vis | // Copyright (c) 2016 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, merge... |
examples/js/pagination/icon-pagination-table.js | AllenFang/react-bootstrap-table | /* eslint max-len: 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 id = startId + i;
products.push({
id: id,
... |
ajax/libs/golden-layout/1.5.7/goldenlayout.js | brix/cdnjs | (function($){var lm={"config":{},"container":{},"controls":{},"errors":{},"items":{},"utils":{}};
lm.utils.F = function () {};
lm.utils.extend = function( subClass, superClass ) {
subClass.prototype = lm.utils.createObject( superClass.prototype );
subClass.prototype.contructor = subClass;
};
lm.utils.createObject... |
ajax/libs/yui/2.9.0/container/container_core.js | tomalec/cdnjs | /*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/
(function () {
/**
* Config is a utility used within an Object to allow the implementer to
* maintain a list of local configuration properties and liste... |
src/containers/FuelSavingsPage.spec.js | caviles/wflows | import React from 'react';
import {shallow} from 'enzyme';
import {FuelSavingsPage} from './FuelSavingsPage';
import FuelSavingsForm from '../components/FuelSavingsForm';
describe('<FuelSavingsPage />', () => {
it('should contain <FuelSavingsForm />', () => {
const actions = {
saveFuelSavings: () => { },
... |
ajax/libs/react-bootstrap-typeahead/0.9.1/react-bootstrap-typeahead.min.js | him2him2/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrapTypeahead=t(require("react"),require("react-dom")):e.ReactBootstrapTypeahead=t(e.R... |
src/Parser/MistweaverMonk/Modules/Traits/SoothingRemedies.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Module from 'Parser/Core/Module';
import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing';
i... |
src/components/NotFound.js | unikorp/king | import React from 'react';
const NotFound = () => (
<p>
Sorry, we cannot found this page.
</p>
);
export default NotFound;
|
app/index.js | OperationSpark/code-clash | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom'
import App from './App';
ReactDOM.render((
<BrowserRouter>
<App />
</BrowserRouter>
),
document.getElementById('app')
);
module.hot.accept();
|
packages/material-ui-icons/src/LoyaltySharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M11.83 2H2v9.83l10.99 11s1.05-1.05 1.41-1.42L22.82 13 11.83 2zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7zM13 19.54l-4.27-4.27C8.28 14.81 8 14.19 8 13.5c0-1.38 1.12-2.5 2.5-2.5.6... |
ajax/libs/react/0.3.3/JSXTransformer.js | peterwilli/cdnjs | /**
* JSXTransformer v0.3.3
*/
(function(e){if("function"==typeof bootstrap)bootstrap("jsxtransformer",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeJSXTransformer=e}else"undefined"!=typeof wi... |
app/javascript/mastodon/features/ui/components/boost_modal.js | corzntin/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from '../../../components/button';
import StatusContent from '../../../components/status_content';
import Av... |
lens-ui/app/components/SavedQueryPreviewComponent.js | RaghavendraSingh/lens | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... |
src/svg-icons/image/looks-two.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooksTwo = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 8c0 1.11-.9 2-2 2h-2v2h4v2H9v-4c0-1.11.9-2 2-2h2V9H9V7h4c1.1 0 2 .89 2 ... |
app/components/optionRowView.js | PPPatt/Lincroft | 'use strict'
import React from 'react'
import {View} from 'react-native'
const optionView = require('./optionView')
module.exports = (args) => {
let tempReturn = []
for (let opID in args.options) {
if(opID>0) {
tempReturn.push(optionView({...args, opID: opID}))
}
}
return (
<View
style ... |
test/ButtonSpec.js | Cellule/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Button from '../src/Button';
describe('Button', function () {
it('Should output a button', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Button>
Title
</Button>
);
assert.equal(... |
packages/material-ui-icons/src/BorderOuterSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M13 7h-2v2h2V7zm0 4h-2v2h2v-2zm4 0h-2v2h2v-2zM3 3v18h18V3H3zm16 16H5V5h14v14zm-6-4h-2v2h2v-2zm-4-4H7v2h2v-2z" />
, 'BorderOuterSharp');
|
ajax/libs/yui/3.10.1/datatable-core/datatable-core-coverage.js | wallin/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-core/datatable-core.js']) {
__coverage__['build/datatable-core/datatable-core.js'] = {"path":"build/datatable-core/datatable-core.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13"... |
pootle/static/js/shared/components/FormElement.js | pavels/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 FormCheckedInput from '... |
src/ChipsCatalog.js | material-components/material-components-web-catalog | import React, { Component } from 'react';
import ComponentCatalogPanel from './ComponentCatalogPanel.js';
import {MDCChipSet} from '@material/chips/index';
import './styles/ChipsCatalog.scss';
const ChipsCatalog = () => {
return (
<ComponentCatalogPanel
hero={<ChipsHero />}
title='Chips'
descr... |
docs/views/ReactDocContent.bak.js | tianyingchun/docs | import React, { Component } from 'react';
import UI from '../../shared/react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as DocActions from '../actions/DocActions';
import DocMenu from '../components/DocMenu';
import DemoList from '../../shared/react/components/demo';
i... |
ajax/libs/F2/1.3.0/f2.min.js | ram-nadella/cdnjs | /*! F2 - v1.3.0 - 09-16-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... |
app/javascript/mastodon/features/account_timeline/containers/header_container.js | increments/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import Header from '../components/header';
import {
followAccount,
unfollowAccount,
blockAccount,
unblockAccount,
unmuteAccount,
} from '../../../actions/accounts';
import { mentionCompose } ... |
Examples/UIExplorer/UIExplorerBlock.js | sghiassy/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
pootle/static/js/browser/components/Stats.js | iafan/zing | /*
* Copyright (C) Pootle contributors.
* Copyright (C) Zing contributors.
*
* This file is a part of the Zing 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... |
local-cli/templates/HelloWorld/index.android.js | Purii/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class HelloWorld extends Component {
render() {
return (
<View style={styles.containe... |
components/_routes/test.js | joeybaker/rachelandjoey | import test from 'tape'
import React from 'react'
import {addons} from 'react/addons'
import Routes from './index.jsx'
const {TestUtils} = addons
const {Simulate, renderIntoDocument, isElement, createRenderer} = TestUtils
const getReactNode = (dom, node) => TestUtils.findRenderedDOMComponentWithTag(dom, node)
const get... |
src/svg-icons/social/sentiment-dissatisfied.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentDissatisfied = (props) => (
<SvgIcon {...props}>
<circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 1... |
src/components/UIShell/__tests__/SideNavLink-test.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { mount } from 'enzyme';
import SideNavLink from '../SideNavLink';
describe('SideNavLink', () => {
let m... |
src/svg-icons/action/copyright.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCopyright = (props) => (
<SvgIcon {...props}>
<path d="M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-... |
project/react-redux/src/pages/index/containers/MainRouter.js | FFF-team/generator-earth | import React from 'react'
// bundleLoader
import BundleLoader from 'lm-bundle-loader'
import Home from "./Home";
import Site from './Site'
import {
Route,
Switch,
Redirect,
withRouter
} from 'react-router-dom'
// scrollToTop
import ScrollToTop from 'commons/ScrollToTop'
// 异步加载文件 参考文档 https://webpa... |
installer/frontend/trail.js | radhikapc/tectonic-installer | import _ from 'lodash';
import React from 'react';
import { Map as ImmutableMap, Set as ImmutableSet } from 'immutable';
import { commitPhases } from './actions';
import { PLATFORM_TYPE, DRY_RUN } from './cluster-config';
import { CertificateAuthority } from './components/certificate-authority';
import { ClusterType ... |
src/icons/Images.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Images extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<g>
<path d="M457.6,140.2l-82.5-4l-4.8-53.8c-1-11.3-11.1-19.2-22.9-18.3L51.4,88.4c-11.8,1-20.3,10.5-19.4,21.7l21.2,235.8
... |
docs/src/app/components/pages/components/IconButton/ExampleTouch.js | owencm/material-ui | import React from 'react';
import IconButton from 'material-ui/IconButton';
import ActionGrade from 'material-ui/svg-icons/action/grade';
const IconButtonExampleTouch = () => (
<div>
<IconButton tooltip="bottom-right" touch={true} tooltipPosition="bottom-right">
<ActionGrade />
</IconButton>
<IconB... |
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-... |
client/views/task_instructions.js | visipedia/annotation_tools | /**
* Generic task instructions:
* <title>
* <decription>
* <link to google slides with more instructions>
* <carousel of example photos>
* <start button>
*/
import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap';
export class TaskInstructions extends React.Component {
constructor(... |
app/containers/NotFoundPage/index.js | maxxafari/draftjs-comment-text | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
app/components/Notifications.js | nosplashurinal/order-management | import React from 'react';
import PropTypes from 'prop-types';
import styles from '../styles/app.scss';
import NotificationSearch from './NotificationSearch';
import NotificationTabs from './Tabination';
import BarcodeSearch from './BarcodeSearch';
const Notifications = ({ isOutgoingActive, onOutgoing }) =>
... |
src/demo.js | mother/react-files | import axios from 'axios'
import Blob from 'blob'
import FormData from 'form-data'
import React from 'react'
import ReactDOM from 'react-dom'
import Files from './'
class FilesDemo1 extends React.Component {
constructor (props) {
super(props)
this.state = {
files: []
}
}
onFilesChange = (files... |
client/src/containers/Course/index.js | qasim/what-class-is-this | import React, { Component } from 'react';
import PageHeader from './../../components/PageHeader';
import CourseSection from './../../components/CourseSection';
import fetch from './../../utils/fetch';
import { BASE_URL } from './../../utils/constants';
import loading from './../../static/images/loading-ring.svg';
impor... |
src/ButtonToolbar.js | albertojacini/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ButtonToolbar = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'button-toolbar'
};
},
render() {
let classes = this.getBsClassSet();
... |
ajax/libs/react-virtualized/2.6.1/react-virtualized.js | tonytomov/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["react-virtualized"]... |
fields/types/Field.js | magalhas/keystone | var _ = require('underscore');
var cx = require('classnames');
var evalDependsOn = require('../utils/evalDependsOn.js');
var React = require('react');
var Note = require('../components/Note');
function validateSpec(spec) {
if (!_.isObject(spec.supports)) {
spec.supports = {};
}
if (!spec.focusTargetRef) {
spec.... |
modules/__tests__/createRoutesFromReactChildren-test.js | whouses/react-router | /*eslint-env mocha */
/*eslint react/prop-types: 0*/
import expect from 'expect'
import React from 'react'
import { createRoutesFromReactChildren } from '../RouteUtils'
import IndexRoute from '../IndexRoute'
import Route from '../Route'
describe('createRoutesFromReactChildren', function () {
const Parent = React.cr... |
ajax/libs/forerunnerdb/1.3.550/fdb-core+views.min.js | emmy41124/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... |
YEAR 3/SEM 1/MOBILE/mobile_exam_prep/screens/Clerk/ClerkAddScreen.js | Zephyrrus/ubb | import React from 'react';
import {
Image,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
ActivityIndicator,
StatusBar,
InteractionManager,
} from 'react-native';
import { HeaderBackButton } from 'react-navigation';
import { WebBrowser } from 'expo';
import { Fo... |
admin/client/components/ListFiltersAdd.js | kumo/keystone | import React from 'react';
import Transition from 'react-addons-css-transition-group';
import classnames from 'classnames';
var CurrentListStore = require('../stores/CurrentListStore');
var ListFiltersAddForm = require('./ListFiltersAddForm');
var Popout = require('./Popout');
var PopoutList = require('./PopoutList');... |
ajax/libs/react/0.12.2/react-with-addons.js | joeylakay/cdnjs | /**
* React (with addons) v0.12.2
*/
!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()}}(fu... |
src/client/spinner.js | alessandrostone/hacker-menu | import React from 'react'
export default class Spinner extends React.Component {
render () {
return (
<div className='spinner'>
Loading...
</div>
)
}
}
|
packages/material-ui-icons/src/PhoneBluetoothSpeakerTwoTone.js | lgollut/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M15.2 18.21c1.21.41 2.48.67 3.8.76v-1.5c-.88-.07-1.75-.22-2.6-.45l-1.2 1.19zM6.54 5h-1.5c.09 1.32.34 2.58.75 3.79l1.2-1.21c-.24-.83-.39-1.7-.45-2.58z" opacity=".3" /><path d="M20 ... |
docs/src/app/components/pages/components/SvgIcon/ExampleIcons.js | ngbrown/material-ui | import React from 'react';
import ActionHome from 'material-ui/svg-icons/action/home';
import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff';
import FileCloudDownload from 'material-ui/svg-icons/file/cloud-download';
import HardwareVideogameAsset from 'material-ui/svg-icons/hardware/videogame-as... |
common/routes/Discussion/components/RightSideBar.js | Notist/front-end | import React, { Component } from 'react';
import { styles } from '../styles/styles';
export default class RightSideBar extends Component {
render() {
return (
<div id="rightSidebar" style={styles.rightSidebar}>
<p style={styles.rightSidebarText}>At a glance:</p>
<div className="iframeConta... |
ajax/libs/phaser/2.1.3/custom/p2.js | iskitz/cdnjs | /**
* The MIT License (MIT)
*
* Copyright (c) 2013 p2.js authors
*
* 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 ... |
src/higher-order-components/__tests__/keyboardNavigation.spec.js | danielsneijers/markslide | import React from 'react'
import { shallow } from 'enzyme'
import { KEY_CODES } from 'constants'
import keyboardNavigation from '../keyboardNavigation'
const DummyComponent = props => <div {...props}>foo</div>
const Enhanced = keyboardNavigation(DummyComponent)
let tree, instance, hocProps
describe('higher-order-com... |
ajax/libs/babel-core/6.1.6/browser.min.js | pvnr0082t/cdnjs |
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.babel=t()}}(function(){var t,e,n;return function r(t,... |
src/components/AboutPage.js | gregorysl/date-minder | import React from 'react';
import {Link} from 'react-router';
import '../styles/about-page.css';
// Since this component is simple and static, there's no parent container for it.
const AboutPage = () => {
return (
<div>
<h2 className="alt-header">About</h2>
<p>
This example app is part of the... |
blog/src/Menu/MenuItem.js | Robert2333/kilakila-react | import React from 'react'
import "./MenuItem.css"
const PropTypes=require('prop-types');
class MenuItem extends React.Component{
render(){
const{subId,id,children}=this.props;
const isClick=(this.context.menuActive[subId]===1&&this.context.itemActive===id.toString())? "active":"";
con... |
src/molecules/formfields/ToggleField/__tests__/toggle_field.spec.js | policygenius/athenaeum | import React from 'react';
import { expect } from 'chai';
import { mount } from 'enzyme';
import ToggleField, { toBoolean } from 'molecules/formfields/ToggleField';
describe('<ToggleField />', () => {
it('renders', () => {
const wrapper = mount(<ToggleField input={{}} />);
expect(wrapper.type()).to.equal(T... |
src/parser/warrior/fury/modules/Abilities.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import ITEMS from 'common/ITEMS';
import CoreAbilities from 'parser/core/modules/Abilities';
import ISSUE_IMPORTANCE from 'parser/core/ISSUE_IMPORTANCE';
class Abilities extends CoreAbilities {
spellbook() {
... |
files/yasr/2.5.4/yasr.bundled.min.js | Swatinem/jsdelivr | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
fields/types/location/LocationField.js | danielmahon/keystone | import _ from 'lodash';
import React from 'react';
import Field from '../Field';
import CollapsedFieldLabel from '../../components/CollapsedFieldLabel';
import NestedFormField from '../../components/NestedFormField';
import {
FormField,
FormInput,
FormNote,
Grid,
LabelledControl,
} from '../../../admin/client/App... |
ajax/libs/yasr/2.3.0/yasr.bundled.min.js | barcadictni/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
client/scripts/components/MapLegend.js | ahoarfrost/metaseek | import React from 'react';
var MapLegend = React.createClass({
getInitialState : function() {
return {
'fills': null,
'countRanges': null
}
},
renderRect : function(rgb, index) {
return (
<rect x='4' y={110+(30*index)} width='50' height='30' fill='rgb(66, 91, 161)' fillOpacity={rgb... |
src/datepicker/YearView.js | prometheusresearch/react-datetimepicker | /**
* @copyright 2014 Quri, Loïc CHOLLIER
* @copyright 2015-present Prometheus Research, LLC
*/
import React from 'react';
import chunk from 'lodash/chunk';
import moment from 'moment';
import {Paginator} from '../ui';
import Year from './Year';
export default class YearView extends React.Component {
static pr... |
src/components/SearchResults.spec.js | kmcarter/karaoke-song-lister | import React from 'react';
import { shallow } from 'enzyme';
import SearchResults from './SearchResults';
import SongTitleList from './common/SongTitleList';
describe('<SearchResults />', () => {
it('should display <SongTitleList />', () => {
const props = {
searchTerm: "abc"
};
const wrapper = sh... |
packages/material-ui-icons/src/EventSeatSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M4 21h3v-3h10v3h3v-6H4v6zm15-11h3v3h-3v-3zM2 10h3v3H2v-3zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z" />
, 'EventSeatSharp');
|
node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-function-name/node_modules/babel-helper-function-name/node_modules/babel-traverse/lib/path/lib/hoister.js | Jerrrrry/vuedo_blog | "use strict";
exports.__esModule = true;
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _getIterator2 = require("babel-runtime/core-js/get-iterator");
var _getIterator3 = _interopRequireDefault(_getIterator2);
var _babel... |
__tests__/components/Section-test.js | codeswan/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react/lib/ReactTestRenderer';
import Section from '../../src/js/components/Section';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('Section... |
docs/src/Root.js | Terminux/react-bootstrap | import React from 'react';
const Root = React.createClass({
statics: {
/**
* Get the list of pages that are renderable
*
* @returns {Array}
*/
getPages() {
return [
'index.html',
'introduction.html',
'getting-started.html',
'components.html',
... |
wp-includes/js/jquery/jquery.js | Yarov/dave-site | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
test/ListGroupSpec.js | victorzhang17/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ListGroup from '../src/ListGroup';
import ListGroupItem from '../src/ListGroupItem';
describe('ListGroup', () => {
it('Should output a "div" with the class "list-group"', () => {
let instance = ReactTestUtils.renderIntoDocu... |
src/parser/priest/holy/modules/talents/15/EnduringRenewal.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox';
import SPELLS from 'common/SPELLS/index';
import Analyzer from 'parser/core/Analyzer';
import ItemHealingDone from 'interface/ItemHealingDone';
import { ABILITIES_THAT_TRIGGER_ENDURING_RENEWAL } from ... |
dist/dashboard.46fd74be3196f3532ba8.js | china2008qyj/DVA-DEMO | webpackJsonp([0],{6:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.isChildrenEqual=t.isSingleChildEqual=t.filterSvgElements=t.isSsr=t.validateWidthHeight=t.filterEventsOfChild=t.filterEventAttributes=t.getPresentationAttributes=t.withou... |
app/javascript/mastodon/features/ui/components/video_modal.js | Nyoho/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Footer from 'mastodon/features/picture_in_picture/components/footer';
import... |
files/rxjs/2.3.24/rx.all.compat.js | abishekrsrikaanth/jsdelivr | // 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
};
v... |
test/basic/jspm_packages/es6-module-loader.js | pauldijou/outdated | /*
* es6-module-loader v0.16.6
* https://github.com/ModuleLoader/es6-module-loader
* Copyright (c) 2015 Guy Bedford, Luke Hoban, Addy Osmani; Licensed MIT
*/
!function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.Promise=a():"un... |
client/app/mentor/Training/index.js | prilutskiy/hackathon | import React, { Component } from 'react';
import TrainingInfo from './TrainingInfo';
import TrainingMenu from "./TrainingMenu";
import { createContainer } from 'meteor/react-meteor-data';
class TrainingPage extends Component {
constructor(props) {
super(props);
}
render() {
return (
... |
src/parser/demonhunter/vengeance/modules/features/Checklist/Module.js | fyruna/WoWAnalyzer | import React from 'react';
import BaseModule from 'parser/shared/modules/features/Checklist/Module';
import CastEfficiency from 'parser/shared/modules/CastEfficiency';
import Combatants from 'parser/shared/modules/Combatants';
import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist/PreparationRul... |
src/svg-icons/action/help.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHelp = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83... |
src/components/Landing.js | opsukka/fantasy-map | import React from 'react';
const LandingPage = () =>
<div className="landing">
<div className="landing-content">
<h1>Home for old world map</h1>
<br></br>
<p>New one under construction and should be ready soon™</p>
</div>
</div>
export default LandingPage;
|
src/views/target/Timeline.js | airloy/objective | /**
* Created by Layman(http://github.com/anysome) on 16/3/16.
*/
import React from 'react';
import {StyleSheet, ScrollView, View, Text, ListView} from 'react-native';
import moment from 'moment';
import {analytics, styles, colors, px1, airloy, api, toast, L} from '../../app';
export default class Timeline extends ... |
app/components/MultipleInput/index.js | matteoterrinoni/portfolio | /**
*
* Input
*
*/
import React from 'react';
import { baseKey } from 'components/Editing/model';
import Input from 'components/Input';
import { clone } from 'ramda';
import './style.scss';
// import styled from 'styled-components';
class MultipleInput extends React.PureComponent {
// eslint-disable-line react/prefe... |
examples/src/Spinner.js | sambernard/react-preload | import React from 'react';
export default function Spinner() {
return (
<span
className="glyphicon glyphicon-refresh gly-ani"
style={{
fontSize: '40px',
left: '50%',
transform: 'translateX(-50%)'
... |
src/app/home/index.js | drivesense/server | 'use strict';
import React from 'react';
import {Route, IndexRoute} from 'react-router';
import Home from './Home';
import Profile from './Profile/redux';
export default function () {
return (
<Route>
<IndexRoute component={Home}/>
<Route path='profile' component={Profile}/>
</Route>
)
} |
ui/config/paths.js | ssadedin/seqr | /* eslint-disable */
'use strict';
const path = require('path');
const fs = require('fs');
const url = require('url');
// Make sure any symlinks in the project folder are resolved:
// https://github.com/facebookincubator/create-react-app/issues/637
const appDirectory = fs.realpathSync(process.cwd());
const resolveAp... |
src/views/header/__tests__/Header.js | BudIT/vclub | /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
/* eslint-env jest */
import React from 'react';
import { shallow } from 'enzyme';
import { shallowToJson } from 'enzyme-to-json';
import { HeaderComponent } from '../Header';
const currentRoomName = 'VIDEO';
const numberOfMembers =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.