path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
app/src/index.js | alpcanaydin/heygidi | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import App from './components/App';
import Home from './components/Home';
import Year from './components/Year';
import './index.css';
const Root = () => (
<Router history={hashHistory... |
src/containers/show_categories.js | jorisknulst/Swapi | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchCategories } from '../actions/index';
class ShowCategories extends Component {
constructor(props) { // constructor initializes state
super(props);
this.state = ... |
ajax/libs/react-native-web/0.0.0-b096cd2d/exports/useWindowDimensions/index.js | cdnjs/cdnjs | /**
* 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.
*
* @format
*
*/
'use strict';
import Dimensions from '../Dimensions';
import { useEffect, useState } from 'react';
export defaul... |
src/icons/IosArrowThinLeft.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosArrowThinLeft extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M189.8,349.7c3.1-3.1,3-8,0-11.3L123.4,264H408c4.4,0,8-3.6,8-8c0-4.4-3.6-8-8-8H123.4l66.3-74.4c2.9-3.4,3.2-8.1,0.... |
js/components/taskList/taskListRow.js | bsusta/HelpdeskAppTemplate |
import React, { Component } from 'react';
import { Icon, Text, Right, Body, ListItem, Item, Container} from 'native-base';
import { Actions } from 'react-native-router-flux';
import styles from './styles';
import I18n from '../../translations/';
class TaskListRow extends Component {
render() {
return (
<L... |
docs/src/PageFooter.js | xiaoking/react-bootstrap | import React from 'react';
import packageJSON from '../../package.json';
let version = packageJSON.version;
if (/docs/.test(version)) {
version = version.split('-')[0];
}
const PageHeader = React.createClass({
render() {
return (
<footer className="bs-docs-footer" role="contentinfo">
<div c... |
src/components/profile.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, o... |
docs/app/Examples/elements/Segment/Variations/SegmentExampleClearing.js | shengnian/shengnian-ui-react | import React from 'react'
import { Button, Segment } from 'shengnian-ui-react'
const SegmentExampleClearing = () => (
<Segment clearing>
<Button floated='right'>
floated
</Button>
</Segment>
)
export default SegmentExampleClearing
|
src/containers/NewCampaign/Amount/BuyItem.js | kingpowerclick/kpc-web-backend | import React, { Component } from 'react';
import classNames from 'classnames';
import { Breadcrumb, NewCampaginMenu } from 'components';
import { SplitButton, MenuItem } from 'react-bootstrap';
export default class ByItem extends Component {
render() {
const styles = require('./newCampaign.scss');
retu... |
ajax/libs/yui/3.9.0pr1/event-custom-base/event-custom-base-coverage.js | gaearon/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
src/icons/PhoneLockedIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class PhoneLockedIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 31c-2.49 0-4.9-.4-7.14-1.14-.69-.22-1.48-.06-2.03.49l-4.4 4.41c-5.67-2.88-10.29-7.51-13.18-13.17l4... |
react-flux-mui/js/material-ui/src/svg-icons/file/cloud-circle.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudCircle = (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 2zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79... |
src/components/clients/clients.js | ahaditio/journal-frontend | import React, { Component } from 'react';
export default class Clients extends Component{
render(){
return (
<div>
Clients
</div>
);
};
} |
react-ui/src/components/Admin/Admin.js | civicparty/legitometer | import React, { Component } from 'react';
import {
Route,
BrowserRouter as Router,
} from 'react-router-dom';
import NewMission from './NewMission';
import Dashboard from './Dashboard';
import Mission from './Mission';
import CreateCollection from './CreateCollection';
import Articles from './Articles';
import Rev... |
__tests__/index.android.js | nb7123/RNapp | 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 />
);
});
|
test/CarouselSpec.js | pivotal-cf/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Carousel from '../src/Carousel';
import CarouselItem from '../src/CarouselItem';
describe('Carousel', function () {
it('Should show the correct item', function () {
let instance = ReactTestUtils.renderIntoDocument(
<C... |
packages/material-ui-icons/src/SignalCellular1BarRounded.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 fillOpacity=".3" d="M4.41 22H20c1.1 0 2-.9 2-2V4.41c0-.89-1.08-1.34-1.71-.71L3.71 20.29c-.63.63-.19 1.71.7 1.71z" /><path d="M12 12l-8.29 8.29c-... |
src/admin/client/modules/settings/checkoutFields/index.js | cezerin/cezerin | import { connect } from 'react-redux';
import { fetchCheckoutField, updateCheckoutField } from '../actions';
import Form from './components/form';
const mapStateToProps = (state, ownProps) => {
return {
initialValues: state.settings.checkoutField
};
};
const mapDispatchToProps = (dispatch, ownProps) => {
return ... |
src/svg-icons/action/perm-data-setting.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermDataSetting = (props) => (
<SvgIcon {...props}>
<path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.0... |
src/controllers/Gain.js | raiss/music-web-api | import './Gain.css';
import React, { Component } from 'react';
import { DragSource } from 'react-dnd';
// import { GainService } from '../audioServices/SimpleGain.service';
import { GenericButton } from '../components/GenericButton';
import { Fader } from './Fader';
import { Controller } from './Controller';
cons... |
packages/@vega/feature-due-date/src/EditDateField.js | VegaPublish/vega-studio | // @flow
// Connects the FormBuilder with various lyra roles
import React from 'react'
import Button from 'part:@lyra/components/buttons/default'
import {FormBuilderInput} from 'part:@lyra/form-builder'
import PatchEvent, {unset} from 'part:@lyra/form-builder/patch-event'
export default class EditDate extends React.Pu... |
src/svg-icons/device/battery-charging-full.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryChargingFull = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM11 20v-5.5H... |
packages/icons/story.js | ancestorcloud/trace-ui | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import {Row} from '../Layout'
import {CelebrateIcon, AlertIcon, CloseIcon, WordMark, LogoMark} from './index'
storiesOf('icons', module)
.add('CelebrateIcon', () => (
<Row p='0'>
<CelebrateIcon size={100} />
<CelebrateIcon size={... |
src/Modal.js | zanjs/react-ui | 'use strict'
import classnames from 'classnames'
import React from 'react'
import PubSub from 'pubsub-js'
import Button from './Button'
import Overlay from './Overlay'
import { requireCss } from './themes'
requireCss('modal')
import {getLang, setLang} from './lang'
setLang('buttons')
const ADD_MODAL = 'id39hxqm'
co... |
ajax/libs/extjs/4.2.1/src/data/proxy/Ajax.js | NamPNQ/cdnjs | /*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
src/__tests__/index-test.js | Uber5/u5-forms | import React from 'react'
import { shallow, mount } from 'enzyme' // TODO: still want to use it?
import { createAddForm } from '../'
describe('createAddForm', () => {
// A somewhat pointless test, just to demonstrate we can use shallow rendering
it('with no options, renders a "RaisedButton"', () => {
const F... |
src/modules/BootTab/BootTabPane.js | shengnian/shengnian-ui-react | import React from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
import { mapToCssModules } from '../../lib/'
const propTypes = {
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
className: PropTypes.string,
cssModule: PropTypes.object,
tabId: PropTypes.any,
}
const defaul... |
packages/material-ui-icons/src/AccessibilityNewRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20.75 6.99c-.14-.55-.69-.87-1.24-.75-2.38.53-5.03.76-7.51.76s-5.13-.23-7.51-.76c-.55-.12-1.1.2-1.24.75-.14.56.2 1.13.75 1.26 1.61.36 3.35.61 5 .75v12c0 .55.45 1 1 1s1-.45 1-1v-5h2v5c0 .55.45 1 1 1s1-... |
packages/material-ui-icons/src/LeakAddTwoTone.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="M18 21h3v-3c-1.66 0-3 1.34-3 3zM3 14c6.08 0 11-4.93 11-11h-2c0 4.97-4.03 9-9 9v2zM14 21h2c0-2.76 2.24-5 5-5v-2c-3.87 0-7 3.13-7 7z" /><path d... |
node_modules/react-icons/md/local-taxi.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdLocalTaxi = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m8.4 18.4h23.2l-2.5-7.5h-18.2z m20.7 8.2c1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5-2.5 1.1-2.5 2.5 1.1 2.5 2.5 2.5z m-18.2 0c1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5-2.5... |
ajax/libs/react/0.12.2/react-with-addons.min.js | icco/cdnjs | /**
* React (with addons) v0.12.2
*
* Copyright 2013-2014, 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... |
ajax/libs/jquery/1.10.2/jquery.min.js | jimmybyrum/cdnjs | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.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=f.trim... |
client/index.js | yanigisawa/voting-tornado | import 'babel-polyfill';
import React from 'react';
import {render} from 'react-dom';
import App from './App';
import {loadEvents} from './actions/eventActions';
// import {loadAuthors} from './actions/authorActions';
import './styles/styles.css';
import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
// import... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/__tests__/Card.spec.js | GoogleCloudPlatform/prometheus-engine | import React from 'react';
import { shallow } from 'enzyme';
import { Card } from '../';
describe('Card', () => {
it('should render with "card" class', () => {
const wrapper = shallow(<Card>Yo!</Card>);
expect(wrapper.text()).toBe('Yo!');
expect(wrapper.hasClass('card')).toBe(true);
});
it('should ... |
lib/jquery-1.10.2.min.js | rafaelwmartins/meu-ponto | /*! 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... |
ajax/libs/forerunnerdb/1.3.376/fdb-legacy.min.js | redmunds/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... |
assets/js/jquery.min.js | jaxkodex/blog | /*! 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... |
app/javascript/mastodon/features/status/components/card.js | PlantsNetwork/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Immutable from 'immutable';
import ImmutablePropTypes from 'react-immutable-proptypes';
import punycode from 'punycode';
import classnames from 'classnames';
const IDNA_PREFIX = 'xn--';
const decodeIDNA = domain => {
return domain
.split('.')... |
fields/types/html/editor/base/editing-bt.js | nickhsine/keystone | import React from 'react';
export default ({ onClick }) => {
return (
<i className="fa fa-pencil-square-o" onClick={onClick} style={{
position: 'absolute',
fontSize: '50px',
top: 0,
bottom: 0,
left: 0,
right: 0,
width: '55px',
height: '50px',
margin: 'auto',
backgroundColor: '#FFF',
... |
demo/src/App.js | fckt/react-layer-stack | import React, { Component } from 'react';
import './App.css';
import { LayerStackProvider, LayerStackMountPoint } from 'react-layer-stack'
import Demo from './Demo'
class App extends Component {
render() {
return (
<LayerStackProvider>
<div>
<LayerStackMountPoint id="screen" elementType=... |
src/entypo/PaperPlane.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--PaperPlane';
let EntypoPaperPlane = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M18.64,2.634C18.296,2.755,1.319,8.738,0.984,8.856c-0.284,0.1-0.347,0.345-0.01,0.479c0.401,0.1... |
ajax/libs/material-ui/5.0.0-alpha.14/styles/ThemeProvider.js | cdnjs/cdnjs | import React from 'react';
import PropTypes from 'prop-types';
import { ThemeProvider as MuiThemeProvider } from '@material-ui/styles';
import { exactProp } from '@material-ui/utils';
import { ThemeContext as StyledEngineThemeContext } from '@material-ui/styled-engine';
import useTheme from './useTheme';
function Inne... |
src/svg-icons/action/perm-scan-wifi.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermScanWifi = (props) => (
<SvgIcon {...props}>
<path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/>
</SvgIcon>
);
ActionPermScanWifi = pure(A... |
src/ImgFigure.js | sdshaoda/gallery-by-react | import React from 'react';
class ImgFigure extends React.Component {
/**
* imgFigure的点击处理函数
*/
handleClick(e) {
e.stopPropagation();
e.preventDefault();
if (this.props.arrange && this.props.arrange.isCenter) {
// 如果点击的是中心图片,则翻转之
this.props.inverse();
} else {
// 如果不是中心图片,重新... |
app/client/src/components/ChangePasswordForm/ChangePasswordForm.js | uprisecampaigns/uprise-app | import PropTypes from 'prop-types';
import React from 'react';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import s from 'styles/Form.scss';
function OldPassword({ show, data, errors, handleInputChange, error }) {
if (show) {
return (
<div className=... |
docs/src/examples/modules/Progress/States/ProgressExampleWarning.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Progress } from 'semantic-ui-react'
const ProgressExampleWarning = () => (
<Progress percent={100} warning>
I am warning you
</Progress>
)
export default ProgressExampleWarning
|
src/index.js | kinseyost/immutable-redux | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, Route, browserHistory, IndexRoute } from 'react-router';
import store from './store';
import App from './App';
import Home from './components/SignUpForm.js';
import Users from 'components/ViewUsers.js';... |
wp-includes/js/jquery/jquery.js | kulan78/wp_design | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
*/
(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=f.trim,x=function(e,t){return new x.fn.ini... |
RNTester/js/ExampleTypes.js | frantic/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... |
src/svg-icons/action/lock-open.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLockOpen = (props) => (
<SvgIcon {...props}>
<path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 ... |
ajax/libs/yui/3.10.0/event-custom-base/event-custom-base.js | stevermeister/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
packages/app/app/components/HelpButton/index.js | nukeop/nuclear | import React from 'react';
import { Button, Icon } from 'semantic-ui-react';
import styles from './styles.scss';
const HelpButton = props => {
return (
<Button icon
data-testid='help-button'
className={styles.help_button}
{...props}
>
<Icon name='question circle outline'/>
</Butt... |
Libraries/Components/Touchable/TouchableOpacity.js | jeanblanchard/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... |
features/remote-poller-gwt/src/main/resources/org/opennms/features/poller/remote/gwt/public/openlayers/lib/OpenLayers/Control/Panel.js | roskens/opennms-pre-github | /* Copyright (c) 2006-2010 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the Clear BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Control.js
*/
/**
* Class: OpenLayers.... |
src/App.js | theCoolKidsJavaScriptMeetup/PeoriaHackathon | import React, { Component } from 'react';
import { BrowserRouter as Router } from 'react-router-dom'
import Firebase from 'firebase'
import Navigation from './components/Navigation';
import Footer from './components/Footer';
import Main from './components/Main';
import Sponsors from './components/Sponsors';
import Reg... |
lib/DropdownButton/DropdownButton.js | folio-org/stripes-components | import React from 'react';
import PropTypes from 'prop-types';
import Button from '../Button';
import Icon from '../Icon';
const DropdownButton = React.forwardRef(({ children, ...buttonProps }, ref) => {
const iconType = buttonProps['aria-expanded']
? 'triangle-up'
: 'triangle-down';
return (
<Butto... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js | cr101/create-react-app | /**
* 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.
*/
import Rea... |
react-semi-theme/examples/app.js | tsupol/semi-starter | import React from 'react';
import { render } from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
// import SemiForm from '../src/forms/SemiForm';
let formTemplate = {
values: {
test: ''
},
components: [
... |
server/sonar-web/src/main/js/apps/background-tasks/components/TaskStatus.js | Builders-SonarSource/sonarqube-bis | /*
* 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... |
ajax/libs/jquery/1.4.0/jquery.min.js | ZaValera/cdnjs | /*!
* jQuery JavaScript Library v1.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://docs.jquery.com/License
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL License... |
client/components/Canvas.js | orballo/gorgonzola | 'use strict'
import React from 'react'
import Loader from './Loader'
const Canvas = props => (
<Loader loaded={props.loaded}>
<div id='canvas-container'>
<canvas
id='canvas'
width='640'
height='640'
onMouseDown={props.handleMouseDown}
onMouseUp={props.ha... |
reactviews/src/ActionFlushIP.js | yvesago/dioc | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Button } from 'react-admin';
import { showNotification as showNotificationAction } from 'react-admin';
import { push as pushAction } from 'connected-react-router';
import request from 'superagen... |
staff/jquery-1.9.1.min.js | BenMcGrath/Quizzit | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
vendors/jqBootstrapValidation/libs/jquery/jquery-1.9.1.min.js | aduyng/travel-time-watcher-chrome-extension | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
ajax/libs/react-redux/0.3.0/react-redux.js | him2him2/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["ReactRedux"] = fact... |
docs/app/Examples/modules/Dropdown/States/DropdownExampleDisabledItem.js | clemensw/stardust | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleActive = () => (
<Dropdown text='Dropdown'>
<Dropdown.Menu>
<Dropdown.Item>Choice 1</Dropdown.Item>
<Dropdown.Item disabled>Choice 2</Dropdown.Item>
<Dropdown.Item>Choice 3</Dropdown.Item>
</Dropdown... |
examples/real-world/index.js | naoishii/ohk2016C | import 'babel-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')
)
|
src/container/mailinglist/index.js | hackform/nuke | import {lazy, Suspense, useContext} from 'react';
import {Routes, Route, Navigate, useHref} from 'react-router-dom';
import {MainContent, Section} from '@xorkevin/nuke';
import {GovUICtx} from '../../middleware';
const Manage = lazy(() => import('./manage'));
const List = lazy(() => import('./list'));
const MailingL... |
src/components/FolderLink.js | ericyd/gdrive-copy | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
const getDriveFolderURL = id => `https://drive.google.com/drive/folders/${id}`;
export default function FolderLink(props) {
return (
<a href={getDriveFolderURL(props.folderID)} target="_blank">
{props.name}
</a>
);
}
Fold... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-bricks-modal-body.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, ContentMixin} from '../common/common.js';
import './modal-body.less';
export default React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMixin,
ContentMixin
],
//@@viewOff:mixins
//@@viewOn:statics
statics: {
... |
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Hosting/js/components/announce.js | patel344/Mr.Miner | import React from 'react'
const AnnounceDialogModal = ({ announceAddress, actions }) => {
const handleSettingInput = (e) => actions.updateModal('announceAddress', e.target.value)
const hideAnnounceDialog = (address) => actions.hideAnnounceDialog(address)
const closeAnnounceDialog = () => hideAnnounceDialog('')
con... |
examples/wms/addwmslayer.js | jjmulenex/sdk | import React from 'react';
import PropTypes from 'prop-types';
/**
* Render a list of layers available on the WMS, and a button to add them to the map.
* @param {Object} props The properties config.
*
* @returns {ReactElement} Markup for the AddWMSLayer component.
*/
const AddWMSLayer = (props) => {
const child... |
ajax/libs/analytics.js/2.3.21/analytics.min.js | hanssens/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
src/svg-icons/device/battery-std.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryStd = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/>
</SvgIcon>
);
D... |
wrappers/html.js | nickroberts404/meadowlab | import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
render () {
const page = this.props.route.page.data
return (
<div>
<Helmet
ti... |
node_modules/babel-runtime/helpers/typeof-react-element.js | JGets/ProgrammaticBootstrap | "use strict";
var _Symbol = require("babel-runtime/core-js/symbol")["default"];
exports["default"] = typeof _Symbol === "function" && _Symbol."for" && _Symbol."for"("react.element") || 60103;
exports.__esModule = true; |
imports/ui/layouts/app.js | irvinlim/free4all | import React from 'react';
import MuiTheme from '../layouts/mui-theme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Header from '../components/header/header';
export const App = React.createClass({
propTypes: {
children: React.PropTypes.element.isRequired,
},
render() {
ret... |
frontend/src/components/organizationProfile/edit/tabsContainer.js | unicef/un-partner-portal | import R from 'ramda';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Paper from 'material-ui/Paper';
import { connect } from 'react-redux';
import { withStyles } from 'material-ui/styles';
import { browserHistory as history } from 'react-router';
import PartnerProfileIdentificatio... |
ajax/libs/material-ui/4.9.3/esm/Container/Container.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import wi... |
code/src/views/toolbarButtons.js | GreatDanton/Thesis | import React from 'react';
import ReactDOM from 'react-dom';
// import globalStorage
import GlobalStorage from '../scripts/globalStorage';
import { createMonthlyFlow, getExtremeFlow, createGraphData, getAverageData } from '../scripts/parseCsv';
import { ResultsView } from './resultsView';
// Renders button that is d... |
src/components/common/Button2.js | brianyamasaki/rideshare | import React from 'react';
import { Text, TouchableOpacity } from 'react-native';
const Button = (props) => {
const { buttonStyle, textStyle } = styles;
return (
<TouchableOpacity onPress={props.onPress} style={buttonStyle}>
<Text style={textStyle}>
{props.children}
</Text>
</Touchable... |
src/modules/Card/components/Multipler/Multipler.js | aos2006/tesDeploy | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import cx from 'classnames';
import s from './Multipler.css';
export const Multipler = ({ children, classnames }) => (
<div
className={cx({
[s.root]: true,
[classnames.root]: true,
})}
>
<span classN... |
packages/material-ui-icons/src/ForumTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M15 11V4H4v8.17L5.17 11H6z" opacity=".3" /><path d="M16 13c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10zm-12-.83V4h11v7H5.17L4 12.17zM22 7c0-.55-.45-1-1-1h-2v9H6v2c0 ... |
icon-builder/tpl/SvgIcon.js | tomrosier/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '{{{ muiRequireStmt }}}';
let {{className}} = (props) => (
<SvgIcon {...props}>
{{{paths}}}
</SvgIcon>
);
{{className}} = pure({{className}})
{{className}}.displayName = '{{className}}';
export default {{className}};
|
src/Pages/Tab_Pages/MyDevice/MyDevice.js | RoJoHub/SFKJ_ReactNative_App | /**
* 下午2:37
* 2017年6月29日
* Author : 罗浩 (Luo Hao)
* Company : 水粉科技 (SFKJ)
* GitHub : https://github.com/RoJoHub
* Blog : http://blog.csdn.net/mandmg
*/
import React, { Component, PureComponent } from 'react'
import { lhFetch, urls } from '../../../internet'
import FilterStateView from './Widget/FilterStateV... |
ajax/libs/yui/3.10.2/event-custom-base/event-custom-base-coverage.js | RoryStolzenberg/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-custom-base/event-custom-base.js']) {
__coverage__['build/event-custom-base/event-custom-base.js'] = {"path":"build/event-custom-base/event-custom-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,... |
examples/counter-with-redux/App.js | jhen0409/react-native-debugger | import React from 'react';
import { Provider } from 'react-redux';
import Counter from './src/containers/Counter';
import configureStore from './src/configureStore';
const store = configureStore();
export default () => (
<Provider store={store}>
<Counter />
</Provider>
);
|
stories/form/input.js | shulie/dh-component | import React from 'react';
import { Input } from '../../src';
export default class InputDemo extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="test-input">
<div className="test-input-eq ">
<Input value="1223" onChange={(e) => {conso... |
ajax/libs/flocks.js/1.0.1/flocks.min.js | featurist/cdnjs | if("undefined"===typeof React)var React=require("react");
(function(){function f(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){return"undefined"===typeof a}function u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===type... |
src/svg-icons/av/hd.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvHd = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-... |
examples/index.vr.js | Centroida/CentroUI | import React from 'react';
import {AppRegistry, View} from 'react-vr';
import CnContainer from '../components/core/container';
export default class Example extends React.Component {
render() {
return (
<View>
<CnContainer>
</CnContainer>
</View>
... |
ajax/libs/video.js/5.0.0-rc.86/video.js | dlueth/cdnjs | /**
* @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... |
client/src/javascript/components/general/filesystem/PriorityMeter.js | stephdewit/flood | import {injectIntl} from 'react-intl';
import React from 'react';
import PiorityLevels from '../../../constants/PriorityLevels';
const METHODS_TO_BIND = ['handleClick'];
class PriorityMeter extends React.Component {
constructor() {
super();
this.state = {
optimisticData: {
level: null,
... |
src/app/components/AvatarButton.js | lili668668/lili668668.github.io | import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
import { withStyles } from '@material-ui/core/styles'
import ButtonBase from '@material-ui/core/ButtonBase'
import grey from '@material-ui/core/colors/grey'
const styles = theme => ({
root: {
borderRadius: '50%',
... |
ajax/libs/react/0.13.1/JSXTransformer.js | Dervisevic/cdnjs | /**
* JSXTransformer v0.13.1
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g... |
plugins/react/frontend/components/controls/base/NumberControl/__test__/index.js | pure-ui/styleguide | import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { mount } from 'enzyme';
import NumberControl from '../index';
const label = 'integer-control';
const secondaryLabel = 'secondary';
const onUpdate = sinon.spy();
const value = 1;
let props;
let wrapper;
describe('<NumberContro... |
node_modules/rebass/src/Panel.js | HasanSa/hackathon |
import React from 'react'
import Base from './Base'
import config from './config'
/**
* Panel for containing small pieces of information
*/
const Panel = ({ theme, children, ...props }, { rebass }) => {
const { scale, colors, borderRadius } = { ...config, ...rebass }
const borderColor = colors[theme]
const ... |
source/accident1/web-app/js/OpenLayers-2.13.1/lib/OpenLayers/Control/Panel.js | yanaice/AllGrailsProject | /* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the 2-clause BSD license.
* See license.txt in the OpenLayers distribution or repository for the
* full text of the license. */
/**
* @requires OpenLayers/Control.js
* @requires OpenLayers/Even... |
src/js/App.js | TheoZimm/SaltyDashboard | import React from 'react';
import GrommetApp from 'grommet/components/App';
import '../scss/index.scss';
class App extends React.Component {
render() {
return (
<GrommetApp centered={false}>
{this.props.children}
</GrommetApp>
);
}
}
export default App;
|
src/components/streams/VoteButton.js | zebras-filming-videos/streamr-web | import React from 'react'
import cx from 'classnames'
export default ({
isSignedIn,
numVotes,
onClick,
userHasVoted,
onUpvote,
onUnvote
}) => {
return (
<div
className={cx('vote-button', { active: userHasVoted, disabled: !isSignedIn })}
onClick={(e) => isSignedIn && (userHasVoted ? onUnvo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.