path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
build/tmp/expandedArchives/OnlineNounResources-1.0.0-SNAPSHOT.war_6umft816k1ag7mfpp7xxaxhh0/src/node_modules/react/lib/ReactUpdateQueue.js | azibit/noun | /**
* Copyright 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule React... |
src/BistroFiftyTwo.UI/material-recipes-app/src/App.js | myfamilycooks/recipemanager | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welco... |
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:... |
src/svg-icons/av/radio.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRadio = (props) => (
<SvgIcon {...props}>
<path d="M3.24 6.15C2.51 6.43 2 7.17 2 8v12c0 1.1.89 2 2 2h16c1.11 0 2-.9 2-2V8c0-1.11-.89-2-2-2H8.3l8.26-3.34L15.88 1 3.24 6.15zM7 20c-1.66 0-3-1.34-3-3s1.34-3 3-3 3... |
src/svg-icons/image/flash-off.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlashOff = (props) => (
<SvgIcon {...props}>
<path d="M3.27 3L2 4.27l5 5V13h3v9l3.58-6.14L17.73 20 19 18.73 3.27 3zM17 10h-4l4-8H7v2.18l8.46 8.46L17 10z"/>
</SvgIcon>
);
ImageFlashOff = pure(ImageFlashOf... |
examples/full-width-resizable-table-grid-layout/src/index.js | react-tools/react-table | import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
ReactDOM.render(<App />, document.getElementById('root'))
|
templates/frontOffice/modern/components/React/AddCoupon/index.js | Lucanis/thelia | import Alert from '../Alert';
import Error from '../Error';
import Input from '../Input';
import React from 'react';
import SubmitButton from '../SubmitButton';
import { useCouponCreate } from '@js/api';
import { useForm } from 'react-hook-form';
import { useIntl } from 'react-intl';
export default function AddCoupon(... |
ajax/libs/riot/2.3.0/riot+compiler.js | menuka94/cdnjs | /* Riot v2.3.0, @license MIT, (c) 2015 Muut Inc. + contributors */
;(function(window, undefined) {
'use strict';
var riot = { version: 'v2.3.0', settings: {} },
// be aware, internal usage
// ATTENTION: prefix the global dynamic variables with `__`
// counter to give a unique id to all the Tag instances
__u... |
srcForIOS/components/ButtonCircle.js | designrad/Jotunheimen-tracking | import React, { Component } from 'react';
import ReactNative from 'react-native';
const {
StyleSheet,
Text,
View,
TouchableOpacity,
Image
} = ReactNative;
/**
* ButtonCircle component
*/
export default class ButtonCircle extends Component {
/**
* Render a ButtonCircle
* @return {jsxresult} resu... |
ajax/libs/extjs/4.2.1/src/AbstractComponent.js | emmy41124/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... |
node_modules/react-native-form-generator/src/lib/PickerComponent.android.js | paulunits/tiptap | 'use strict';
import React from 'react';
import ReactNative from 'react-native';
let { View, StyleSheet, TextInput, Text, Picker} = ReactNative;
import {Field} from '../lib/Field';
var PickerItem = Picker.Item;
export class PickerComponent extends React.Component{
constructor(props){
super(props);
... |
ajax/libs/rxjs/2.2.25/rx.js | leecrossley/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
};
v... |
src/examples/list.js | JiaoJian1221/react-mdc-web | import React from 'react';
import {
Elevation, ListGroup, List, ListItem, ListItemIcon, ListItemText, ListDivider, ListGroupSubheader
} from '../components'
export class ListTest extends React.Component {
render() {
return (
<div>
<Elevation z={3} style={{padding: 5, width: '40%'}}>
<Li... |
actor-apps/app-web/src/app/components/modals/Contacts.react.js | fengchenlianlian/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... |
ajax/libs/forerunnerdb/1.3.769/fdb-core.min.js | dc-js/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/action/timeline.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTimeline = (props) => (
<SvgIcon {...props}>
<path d="M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07... |
app/pages/organization/stats/components/BarChart/components/Graph.spec.js | zooniverse/Panoptes-Front-End | /* eslint func-names: off, prefer-arrow-callback: off */
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import Graph from './Graph';
const mockData = [
{
label: '2019-12-28T00:00:00Z',
value: 10
},
{
label: '2019-12-29T00:00:00Z',
value: 20
},
{
... |
docs/src/app/components/pages/components/TextField/ExampleDisabled.js | matthewoates/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
const TextFieldExampleDisabled = () => (
<div>
<TextField
disabled={true}
hintText="Disabled Hint Text"
/><br />
<TextField
disabled={true}
id="text-field-disabled"
defaultValue="Disabled Value"
/>... |
src/svg-icons/maps/transfer-within-a-station.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTransferWithinAStation = (props) => (
<SvgIcon {...props}>
<path d="M16.49 15.5v-1.75L14 16.25l2.49 2.5V17H22v-1.5zm3.02 4.25H14v1.5h5.51V23L22 20.5 19.51 18zM9.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 ... |
web/src/components/ProgressBar.js | jaemk/transfer | import React from 'react';
import BSProgressBar from 'react-bootstrap/lib/ProgressBar';
const ProgressBar = ({title, active, progress}) => {
return (
<div>
<h4> {title} </h4>
<BSProgressBar
striped
animated={active}
variant={(progress >= 100)? 'success' : 'warning'}
n... |
O3658/02 Managing site settings using add-in model/Completed Projects/JavaScriptInjection/JavaScriptInjectionWeb/Scripts/jquery-1.9.1.js | VesaJuvonen/TrainingContent | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
web/node_modules/react-router/es6/Lifecycle.js | Jorginho211/TFG | import warning from './routerWarning';
import React from 'react';
import invariant from 'invariant';
var object = React.PropTypes.object;
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation.
*
* On stan... |
src/components/theme-legacy/error404.js | MoveOnOrg/mop-frontend | import React from 'react'
// See /docs/EXPLANATION--error-handling.md for how errors can be shown
export const Error404 = () => (
<div className='container background-moveon-white bump-top-1'>
<div className='row'>
<div className='span6 offset3'>
<div className='well'>
<h1 className='lege... |
client/src/index.js | Velocies/raptor-ads | import React from 'react';
import { render } from 'react-dom';
import Root from './components/Root';
const appElement = document.getElementById('app');
render(
<Root />
, appElement,
);
|
examples/with-cxs/pages/index.js | arunoda/next.js | import React from 'react'
import cxs from 'cxs/lite'
// Using cxs/lite on both the server and client,
// the styles will need to be rehydrated.
if (typeof window !== 'undefined') {
const styleTag = document.getElementById('cxs-style')
const serverCss = styleTag.innerHTML
cxs.rehydrate(serverCss)
}
export defaul... |
src/routes.js | szekelyadam/react-books-store | import React from 'react';
import {Route, IndexRoute} from 'react-router';
import Home from './components/common/HomePage';
import About from './components/common/AboutPage';
import Book from './components/book/BookPage';
import App from './components/App';
export default (
<Route path="/" component={App}>
<Inde... |
src/svg-icons/maps/directions-car.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsCar = (props) => (
<SvgIcon {...props}>
<path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1... |
src/components/InteriorLeftNav/InteriorLeftNav-story.js | jzhang300/carbon-components-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import InteriorLeftNav from '../InteriorLeftNav';
import InteriorLeftNavItem from '../InteriorLeftNavItem';
import InteriorLeftNavList from '../InteriorLeftNavList';
storiesOf('InteriorLeftNav', module).addWithInfo(
'Default',
`
Interio... |
ajax/libs/react-router/0.8.0/react-router.js | mgoldsborough/cdnjs | !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.ReactRouter=e()}}(function(){var define,module,export... |
UI/test/containers/CounterPage.spec.js | Acheron-VAF/Acheron | import React from 'react';
import Enzyme, { mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import { Provider } from 'react-redux';
import { createBrowserHistory } from 'history';
import { ConnectedRouter } from 'react-router-redux';
import CounterPage from '../../app/containers/CounterPage';
impo... |
src/screens/App/shared/components/PaperCustom.js | savitri/savitri-web | import Paper from 'material-ui/lib/paper';
import React from 'react';
import Breadcrumbs from './Breadcrumbs';
const styles = {
paper: {
padding: 20
}
};
export default function PaperCustom(props) {
const { breadcrumbs, children } = props;
return (
<Paper style={ styles.paper } >... |
test/A11yMain-test.js | hampshirecollege/a11y-eval-tool | /**
* External dependencies
*/
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
/**
* Internal dependencies
*/
import A11yMain from '../src/containers/A11yMain.jsx';
import { ScanForm, SummaryTable, DetailedPanel } from '../src/components';
describe('<A11yMain />', () =>... |
packages/react-ui-core/src/Button/__tests__/CancelButton-tests.js | rentpath/react-ui | import React from 'react'
import { shallow } from 'enzyme'
import Button from '../Button'
import ThemedCancelButton from '../CancelButton'
const CancelButton = ThemedCancelButton.WrappedComponent
describe('ag/Buttons/CancelButton', () => {
it('does not render a button with no onClick function', () => {
const w... |
frontend-web-v2/src/containers/MasterContainer.js | ClubCedille/jardiniot | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Master from '../components/Master';
class MasterContainer extends Component {
render() {
return (
<Master>
<div className="page-content">
{this.props.children}
</div>
</Master>
);
}... |
docs/src/pages/demos/selection-controls/RadioButtons.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import green from '@material-ui/core/colors/green';
import Radio from '@material-ui/core/Radio';
import RadioButtonUncheckedIcon from '@material-ui/icons/RadioButtonUnchecked';
import RadioButtonChecked... |
src/components/Switch/demo/basic/index.js | lebra/lebra-components | import React, { Component } from 'react';
import Switch from '../../index';
import { render } from 'react-dom';
import './index.less';
export default class SwitchDemo extends Component{
handleChange = (e) => {
alert("切换")
}
render() {
return (
<div className="switch-demo">
... |
src/ui/components/Images.js | dartelvis/zf3 |
import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
const styleDiv = {
textAlign: "left",
padding: "20px"
};
const styleImg = {
maxWidth: "120px",
maxHeight: "100px",
opacity: ".8"
};
class Images extends React.Component
{
constructor(props)
{... |
sites/all/libraries/wvega-timepicker/external/jquery-1.6.2.min.js | baiqj/ybzx | /*!
* jQuery JavaScript Library v1.6.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.
... |
extensions/amp-video/1.0/autoplay.jss.js | prateekbh/amphtml | /**
* Copyright 2020 The AMP HTML Authors. All Rights Reserved.
*
* 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 require... |
src/List.js | siiptuo/tiima-spa | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { fetchActivities } from './actions';
import { parseInput, propType as activityPropType } from './activity';
import ActivitySummary from './ActivitySummary';
import { date } from './filters';
function getStart... |
src/svg-icons/device/battery-charging-60.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging60 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h3.87L13 7v4h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9l1... |
js/App/Components/PreLoginNavigator.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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
*... |
frontend/src/InteractiveImport/Folder/InteractiveImportSelectFolderModalContentConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import * as commandNames from 'Commands/commandNames';
import { executeCommand } from 'Store/Actions/commandActions';
import { addRecentFolder, removeRecentFold... |
test/NavbarBrandSpec.js | HPate-Riptide/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import ReactDOM from 'react-dom';
import NavbarBrand from '../src/NavbarBrand';
describe('<Navbar.Brand>', () => {
it('Should create NavbarBrand SPAN element', () => {
const instance = ReactTestUtils.renderIntoDocument(
<Nav... |
app/components/ListTitle/index.js | brentvatne/react-conf-app | // @flow
import React from 'react';
import { PixelRatio, Text, View } from 'react-native';
import theme from '../../theme';
type Props = {
bordered?: boolean,
text: string,
};
export default function ListTitle({ bordered, text }: Props) {
const styles = {
text: {
color: theme.color.text,
fontSi... |
src/svg-icons/image/blur-on.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBlurOn = (props) => (
<SvgIcon {...props}>
<path d="M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-... |
WebContent/resources/js/vendor/jquery-1.10.2.min.js | mpi2/PhenotypeArchive | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
code/web/node_modules/react-bootstrap/es/NavbarHeader.js | zyxcambridge/RecordExistence | 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 ... |
packages/material-ui-icons/src/BatteryChargingFullRounded.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.67 4H14V3c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.34 22h7.32c.74 0 1.34-.6 1.34-1.33V5.33C17 ... |
packages/material-ui/src/Tab/Tab.js | Kagami/material-ui | // @inheritedComponent ButtonBase
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import ButtonBase from '../ButtonBase';
import { capitalize } from '../utils/helpers';
import unsupportedProp from '../utils/unsupportedPr... |
src/constants/ActionTypes.js | royriojas/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import keyMirror from 'fbjs/lib/keyMirror';
export default keyMirror({
});
|
web/src/main/webapp_source/src/components/components/CategoriesTable.js | mschvarc/PB138-Inventory-Management | import React, { Component } from 'react';
import {Link} from 'react-router';
class CategoriesTable extends Component {
render() {
var categories = this.props.categories;
return <table className="dashboard-table">
<colgroup>
<col width="200" />
</colgroup>
<thead>
<tr>
... |
src/svg-icons/image/hdr-strong.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrStrong = (props) => (
<SvgIcon {...props}>
<path d="M17 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zM5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 ... |
ajax/libs/angular.js/2.0.0-alpha.41/http.min.js | drewfreyling/cdnjs | "use strict";var Reflect;!function(e){function t(e,t,r,s){if(g(s)){if(g(r)){if(!w(e))throw new TypeError;if(!S(t))throw new TypeError;return f(e,t)}if(!w(e))throw new TypeError;if(!O(t))throw new TypeError;return r=T(r),p(e,t,r)}if(!w(e))throw new TypeError;if(!O(t))throw new TypeError;if(g(r))throw new TypeError;if(!O... |
web/js/jquery-1.11.3.js | TIXI24/sfitixi | /*!
* jQuery JavaScript Library v1.11.3
* 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: 2015-04-28T16:19Z
*/
(function( global, factory ) {
if ... |
src/components/ui/Alerts.js | BrownEPTech/brown-ep-startup-ideas-app | /**
* Alerts - Status/Success/Error Messages
*
<Alerts
error={'Error hey'}
success={'Hello Success'}
status={'Something\'s happening...'}
/>
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import PropTypes from 'prop-types'... |
src/page/LabelPage.js | jerryshew/react-uikits | import React, { Component } from 'react';
import {CN, TitleBlock} from '../util/tools';
import {NS, COLORS} from '../constant';
import CodeView from './CodeView';
const makeSizeLabels = (cn='') => {
return <div className={CN(`${cn} icon label`)}>
<i className="icon">person</i>
<span... |
lib/preview/containers/EnqueteDetailApp.js | jirokun/survey-designer-js | /* eslint-env browser */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import S from 'string';
import classNames from 'classnames';
import Page from '../../runtime/components/Page';
import Finisher from '../../runtime/components/Finisher';
import BranchEditor from '../../editor/compon... |
packages/material-ui-icons/src/CheckSharp.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z" /></React.Fragment>
, 'CheckSharp');
|
packages/material-ui-icons/src/TableChartOutlined.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="M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z" /... |
src/views/containers/pages/repo_detail_page/repo_detail_page.js | michaelBenin/react-ssr-spa | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import withRouter from 'react-router/withRouter';
import get from 'lodash/get';
import loadData from './repo_detail_page_data_fetch';
import Footer from './../../../components/footer/footer';
class Re... |
packages/material-ui/src/internal/svg-icons/Warning.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './createSvgIcon';
/**
* @ignore - internal component.
*/
export default createSvgIcon(
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" />,
'Warning',
);
|
fixtures/ssr/src/components/Chrome.js | flipactual/react | import React, { Component } from 'react';
import './Chrome.css';
export default class Chrome extends Component {
render() {
const assets = this.props.assets;
return (
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial... |
fixtures/kitchensink/src/features/env/FileEnvVariables.js | altiore/webpack-react | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
export default () => (
<span>
<span id="feature-file-env-original-1">
{process.env.REACT_APP_ORI... |
packages/reactive-var/reactive-var.js | alphanso/meteor | /*
* ## [new] ReactiveVar(initialValue, [equalsFunc])
*
* A ReactiveVar holds a single value that can be get and set,
* such that calling `set` will invalidate any Computations that
* called `get`, according to the usual contract for reactive
* data sources.
*
* A ReactiveVar is much like a Session variable -- ... |
test/DropdownMenuSpec.js | mcraiganthony/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import DropdownMenu from '../src/DropdownMenu';
import MenuItem from '../src/MenuItem';
describe('DropdownMenu', function () {
it('Should render menu correctly', function () {
let Parent = React.createClass({
render(){
... |
react-redux-tutorial/redux-examples/real-world/index.js | react-scott/react-learn | import 'babel-core/polyfill'
import React from 'react'
import { render } from 'react-dom'
import Root from './containers/Root'
import configureStore from './store/configureStore'
const store = configureStore()
render(
<Root store={store} />,
document.getElementById('root')
)
|
Libraries/JavaScriptAppEngine/Initialization/ExceptionsManager.js | garrows/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... |
vendor/maximebf/debugbar/src/DebugBar/Resources/vendor/jquery/dist/jquery.min.js | pro-memoria/providence | /*! jQuery v1.11.3 | (c) 2005, 2015 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/public/js/src/RegisterPage/RegisterPage.js | pvorotnikov/open-home-ui | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { withRouter } from 'react-router'
import { Link } from 'react-router-dom'
import { connect } from 'react-redux'
import { Segment, Form, Header, Button, Label, Input } from 'semantic-ui-react'
import { userActions } from '../_actions'
... |
analysis/monkmistweaver/src/modules/talents/ChiBurst.js | yajinni/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { SpellLink } from 'interface';
import { formatPercentage } from 'common/format';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Combatants from 'parser/shared/modules/Combatants';
import Events from 'parser/core/Events';
... |
src/index.js | cdanhowell/electron-starter-kit | import 'babel-polyfill'
import React from 'react'
import { render as renderReact } from 'react-dom'
import debounce from 'debounce'
import configureStore from './store/configureStore'
const state = JSON.parse(window.localStorage.getItem('state'))
const store = configureStore(state || {})
let App = require('./componen... |
ajax/libs/angular-azure-mobile-service/1.0.2/angular-azure-mobile-service.min.js | sitic/cdnjs | "use strict";angular.module("azure-mobile-service.module",[]).service("Azureservice",function(e){var r="https://<AZURE_APP_NAME>.azure-mobile.net/",n="<AZURE_APP_API_KEY>",o=["google","twitter","facebook","windowsaccount","windowsazureactivedirectory"],t=WindowsAzure.MobileServiceClient,i=new t(r,n),u=function(){sessio... |
react-boilerplate/app/components/ToggleOption/index.js | Sakuyakun/Yorha-Experiment | /**
*
* ToggleOption
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
ToggleOption.propTypes = {
va... |
test/FadeMixinSpec.js | pivotal-cf/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import FadeMixin from '../src/FadeMixin';
let Component;
describe('FadeMixin', function () {
beforeEach(function() {
Component = React.createClass({
mixins: [ FadeMixin ],
render() {
return (
<div {.... |
src/components/Notifications/index.js | ASIX-ALS/asix-final-project-frontend | import React from 'react';
import NotificationSystem from 'react-notification-system';
import store from 'store';
import { notificationClear } from 'actions/NotificationActions';
export default class NotificationContainer extends React.Component {
componentDidMount() {
this.unsubscribe = store.subscribe(() => t... |
src/components/footer.js | mesqfel/react-blog | import React from 'react';
import { Link } from 'react-router';
const Footer = (props) => {
return (
<footer>
<div className="container">
<div className="row">
<div className="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<ul c... |
react-flux-mui/js/material-ui/src/svg-icons/maps/streetview.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsStreetview = (props) => (
<SvgIcon {...props}>
<path d="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z"/><circle cx="18" cy="6" r="5"/><path d... |
admin/client/App/shared/Popout/PopoutPane.js | sendyhalim/keystone | /**
* Render a popout pane, calls props.onLayout when the component mounts
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutPane = React.createClass({
displayName: 'PopoutPane',
propTypes: {
children: React.PropTypes.node.isRequired,
className: Re... |
client/test/components/user/UserView.spec.js | andela-eefekemo/DMS | /* global expect jest test */
import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import UserView from '../../../components/user/UserView';
jest.dontMock('../../../components/user/UserView');
describe('UserView Component', () => {
test('should match the user view snapsh... |
EventEmitter.Client/src/components/EventList/EventList.js | Stelmashenko-A/EventEmitter | import React from 'react'
import './EventList.scss'
import Event from '../Event/Event'
import Button from './../../components/Button'
function renderEvent (event, i) {
if (event != null) {
return <Event
key={i}
owner={event.Author}
start={event.Start}
duration={event.Duration}
price... |
MyWeibo/node_modules/react/lib/ReactUpdates.js | alucardlockon/LearnCode | /**
* Copyright 2013-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.
*
* @providesModu... |
src/svg-icons/av/replay-10.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay10 = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.1 11H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0 .6-.1.... |
ajax/libs/yui/3.12.0/event-focus/event-focus.js | liubo404/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
ajax/libs/preact-compat/1.7.0/preact-compat.js | joeyparrish/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('proptypes'), require('preact-svg'), require('preact')) :
typeof define === 'function' && define.amd ? define(['exports', 'proptypes', 'preact-svg', 'preact'], factory) :
(factory((global.preactCompa... |
components/app/myrw/widgets/WidgetsTab.js | resource-watch/resource-watch | import React from 'react';
import PropTypes from 'prop-types';
// Redux
import { connect } from 'react-redux';
// Components
import WidgetsIndex from 'components/app/myrw/widgets/tabs/list';
import MyRWWidgetEditTab from 'components/app/myrw/widgets/tabs/edit';
import MyRWWidgetNewTab from 'components/app/myrw/widget... |
lib/KeyboardShortcutsModal/tests/KeyboardShortcutsModal-test.js | folio-org/stripes-components | /**
* KeyboardShortcutsModal tests
*/
import React from 'react';
import { describe, beforeEach, it } from 'mocha';
import { expect } from 'chai';
import sinon from 'sinon';
import { mountWithContext } from '../../../tests/helpers';
import KeyboardShortcutsModal from '../KeyboardShortcutsModal';
import KeyboardShor... |
inc/option_fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/color/picker.js | wpexpertsio/WP-Secure-Maintainance | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import onClickOutside from 'react-onclickoutside';
import { SketchPicker } from 'react-color';
import { compose, withHandlers } from 'recompose';
/**
* Render a colorpicker popover.
*
* @param {Object} props... |
src/client/node_modules/react/lib/ReactInputSelection.js | LarsMq73/Greenfield | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... |
src/MultiSelect/InputWithTags.js | nirhart/wix-style-react | import React, {PropTypes} from 'react';
import Tag from '../Tag/Tag';
import Input from '../Input/Input';
import styles from './InputWithTags.scss';
import omit from 'lodash.omit';
import classNames from 'classnames';
class InputWithTags extends React.Component {
constructor(props) {
super(props);
this.focus... |
docs/app/Examples/collections/Grid/ResponsiveVariations/GridResponsiveWidthExamples.js | jcarbo/stardust | import React from 'react'
import { Image, Grid } from 'stardust'
const { Column } = Grid
const image = <Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
const GridResponsiveWidthExamples = () => (
<div>
<Grid>
<Column mobile={16} tablet={8} computer={4}>{image}</Column>
<Column m... |
app/javascript/mastodon/features/ui/components/modal_loading.js | SerCom-KC/mastodon | import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
// Keep the markup in sync with <BundleModalError />
// (make sure they have the same dimensions)
const ModalLoading = () => (
<div className='modal-root__modal error-modal'>
<div className='error-modal__body'>
... |
index.ios.js | Proyoyo/LynxReact---RN-0.20 | // 'use strict';
//
// var React = require('react-native');
// var GeoEncoding = require('./app/index');
//
// var {
// AppRegistry
// } = React;
//
//
// AppRegistry.registerComponent('GeoEncoding', () => GeoEncoding);
'use strict';
import React from 'react-native';
import App from './app/containers/app';
var {
... |
app/js/components/ContactListItem.react.js | n3tr/Contact-Manager | import React from 'react'
import { Link } from 'react-router'
import ContactListItemAvatar from './ContactListItemAvatar.react'
import ContactListItemInfo from './ContactListItemInfo.react'
const Contact = ({ contact }) => {
return (
<li className="contact-list-item">
<Link
to={"/contact/" + contac... |
src/svg-icons/hardware/headset.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareHeadset = (props) => (
<SvgIcon {...props}>
<path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9z"/>
</SvgIcon>
... |
test/PortalSpec.js | yickli/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Portal from '../src/Portal';
describe('Portal', function () {
let instance;
let Overlay = React.createClass({
render() {
return (
<div>
<Portal ref='p' {...this.props}>{this.props.overlay}</Portal>... |
client/src/app/routes/settings/containers/Subjects/SubjectsPage.js | zraees/sms-project | /**
* Created by griga on 11/30/15.
*/
import React from 'react'
import axios from 'axios'
import {SubmissionError} from 'redux-form'
import {connect} from 'react-redux'
import moment from 'moment'
//import moment from 'moment'
import Loader, {Visibility as LoaderVisibility} from '../../../../components/Loader/Lo... |
app/scripts/footer.js | winsan-zhang/website-test | import React from 'react';
import ReactDOM from 'react-dom';
import '../styles/footer.css';
class Footer extends React.Component{
render(){
return (
<footer className="footer">
<div className="container">
<div className="footer-wrap">
... |
lib/ui/components/Mocks/CodeEditor.js | 500tech/mimic | import PropTypes from 'prop-types';
import React from 'react';
import Frame from 'react-frame-component';
import styled from 'styled-components';
import get from 'lodash/get';
import MocksState from 'ui/states/MocksState';
import { getContentType } from 'ui/utils/string';
import CSS from '!!raw-loader!codemirror/lib/co... |
modules/field_ui/field_ui.js | eduoda/partoempauta | /**
* @file
* Attaches the behaviors for the Field UI module.
*/
(function($) {
Drupal.behaviors.fieldUIFieldOverview = {
attach: function (context, settings) {
$('table#field-overview', context).once('field-overview', function () {
Drupal.fieldUIFieldOverview.attachUpdateSelects(this, settings);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.