path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src-example/components/atoms/LogoImage/index.stories.js | SIB-Colombia/biodiversity_catalogue_v2_frontend | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import LogoImage from '.'
storiesOf('LogoImage', module)
.add('default', () => (
<LogoImage width={200} />
))
|
ajax/libs/mobx/2.5.2/mobx.min.js | him2him2/cdnjs | /** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */
"use strict";function e(e,n,r,o){return 1===arguments.length&&"function"==typeof e?P(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof n?P(e,n):1===arguments.length&&"string"==typeof e?t(e):t(n).apply(null,arguments)}function t(e){return... |
packages/reactor-kitchensink/src/examples/FormFields/CheckBoxField/CheckBoxField.js | markbrocato/extjs-reactor | import React from 'react';
import { FormPanel, CheckBoxField } from '@extjs/ext-react';
export default function CheckBoxFieldExample() {
return (
<FormPanel shadow layout={{type: 'vbox', align: 'left'}} bodyPadding="10">
<CheckBoxField boxLabel="Unchecked"/>
<CheckBoxField boxLabel=... |
src/js/Inks/__tests__/InkContainer.js | lwhitlock/grow-tracker | /* eslint-env jest */
jest.unmock('../InkContainer');
import React from 'react';
import { findDOMNode } from 'react-dom';
import { renderIntoDocument } from 'react-dom/test-utils';
import InkContainer from '../InkContainer';
describe('InkContainer', () => {
it('merges className and style', () => {
const props ... |
Web/src/modules/Home/Home.js | lepsalex/Mansplaining | // @flow
import React from 'react'
import { string, bool, func, shape } from 'prop-types'
import { withRouter } from 'react-router-dom'
import { connect } from 'react-redux'
import Helmet from 'react-helmet'
import { newGame, getGameManagerState } from './redux'
export const Home = (props: Object) => {
const styles... |
app/addons/setup/components/FirstStepController.js | apache/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
rezervi/libs/jquery/jquery-1.12.4.min.js | utilo-web-app-development/REZERVI | /*! jQuery v1.12.4 | (c) jQuery Foundation | 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 window?window:this,fu... |
client/src/app/app.js | FrontSmith/FSFramework | /* global require */
//load CSS assets first
require( '../assets/main.css' );
import React from 'react';
import ReactDOM from 'react-dom';
import { Router } from 'react-router';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import routes from './routes';
import Debug from 'debug';
import 'utils/... |
ajax/libs/ember-data.js/1.0.0-beta.19/ember-data.prod.js | perdona/cdnjs | (function() {
"use strict";
var ember$data$lib$system$model$errors$invalid$$create = Ember.create;
var ember$data$lib$system$model$errors$invalid$$EmberError = Ember.Error;
/**
A `DS.InvalidError` is used by an adapter to signal the external API
was unable to process a request because the c... |
src/containers/LoginMenuContainer.js | jtak93/phaser-practice | import React, { Component } from 'react';
import LoginMenu from '../components/LoginMenu';
import axios from 'axios';
class LoginMenuContainer extends Component {
constructor(props) {
super(props)
this.handleUsernameChange = this.handleUsernameChange.bind(this);
this.handlePasswordChange = this... |
components/App.js | suprsidr/technical-review | import React from 'react';
import {render} from 'react-dom';
import { Router, browserHistory } from 'react-router'
import routes from '../config/routes';
render(
<Router history={browserHistory}>{routes}</Router>,
document.getElementById('main-container')
); |
src/svg-icons/action/loyalty.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLoyalty = (props) => (
<SvgIcon {...props}>
<path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.... |
packages/material-ui-icons/src/SmsOutlined.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 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12z" /><path d="M7 9h2v2H7zM15 9h2v2h-2zM11 9h2v2h-... |
src/__tests__/Slider-test.js | Graf009/react-mdl | /* eslint-env mocha */
import expect from 'expect';
import React from 'react';
import { render } from './render';
import Slider from '../Slider';
describe('Slider', () => {
it('should render an input with the slider css classes', () => {
const output = render(<Slider value={1} />);
expect(output.t... |
app/javascript/mastodon/features/compose/components/upload_button.js | 8796n/mastodon | import React from 'react';
import IconButton from '../../../components/icon_button';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
const messages = defineMessages({
upload: { id: 'upload_button.label', defaultMessage: 'Add media' }... |
test/helpers/shallowRenderHelper.js | EasonAndLily/ImagesManager | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/Row.js | laran/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Row = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: CustomPropTypes.elementType
},
getDefaultProps() {
re... |
src/containers/search-page.js | daphnevisser/Upnotes | import React, { Component } from 'react';
import FontAwesome from 'react-fontawesome';
import { connect } from 'react-redux';
import { searchAlbums, searchArtists, searchTracks, clearResults, setTrack, addTrack } from '../actions/index';
import SearchResults from '../components/search-results';
import _ from 'lodash';
... |
webpack/move_to_foreman/components/common/table/formatters/collapseableAndSelectionCellFormatter.js | jlsherrill/katello | import React from 'react';
import selectionCellFormatter from './selectionCellFormatter';
import CollapseSubscriptionGroupButton from '../components/CollapseSubscriptionGroupButton';
export default (collapseableController, selectionController, additionalData) => {
const shouldShowCollapseButton = collapseableControl... |
react-router-es6-example/node_modules/react-router/lib/Lifecycle.js | akhilaantony/React-Stylisted | 'use strict';
exports.__esModule = true;
var _routerWarning = require('./routerWarning');
var _routerWarning2 = _interopRequireDefault(_routerWarning);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _invariant = require('invariant');
var _invariant2 = _interopRequireDefault(_inv... |
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/SplitToggle.js | jmanday/Master | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import DropdownToggle fr... |
ajax/libs/shariff/1.7.4/shariff.complete.js | melvinsembrano/cdnjs |
/*!
* shariff - v1.7.4 - 26.02.2015
* https://github.com/heiseonline/shariff
* Copyright (c) 2015 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli
* Licensed under the MIT <http://www.opensource.org/licenses/mit-license.php> license
*/
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o])... |
ajax/libs/handsontable/0.11.0-beta2/jquery.handsontable.full.js | humbletim/cdnjs | /**
* Handsontable 0.11.0-beta2
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright 2012-2014 Marcin Warpechowski
* Licensed under the MIT license.
* http://handsontable.com/
*
* Date: Thu Jul 24 2014 13:18:23 GMT+0200 (CEST)
... |
public/src/questions/components/IterateQuestions.js | thomasjosephgreco/rejection | import React from 'react'
import SingleQuestion from './SingleQuestion';
const questionListStyles = {
listStyleType: 'none',
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-around',
alignItems: 'center'
};
const IterateQuestions = ({questions}) => {
return (
<ul style={{...questionListStyles}... |
Examples/UIExplorer/ListViewExample.js | wangziqiang/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,
... |
frontend/src/Components/Modal/ModalFooter.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './ModalFooter.css';
class ModalFooter extends Component {
//
// Render
render() {
const {
children,
...otherProps
} = this.props;
return (
<div
className={styles.modalFooter}... |
packages/material-ui-icons/src/ViewQuiltOutlined.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="M4 5v13h17V5H4zm2 11V7h3v9H6zm5 0v-3.5h3V16h-3zm8 0h-3v-3.5h3V16zm-8-5.5V7h8v3.5h-8z" /></g></React.Fragment>
, 'ViewQuiltOutlined');
|
admin/client/App/App.js | danielmahon/keystone | /**
* The App component is the component that is rendered around all views, and
* contains common things like navigation, footer, etc.
*/
import React from 'react';
import { Container } from './elemental';
import { Link } from 'react-router';
import { css } from 'glamor';
import MobileNavigation from './components... |
src/containers/DevTools/DevTools.js | fiTTrail/fiTTrail | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-H"
changePositionKey="ctrl-Q">
<LogMonitor /... |
packages/mui-icons-material/lib/ClosedCaptionOffSharp.js | oliviertassinari/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
app/containers/D3/index.js | activedecay/musical-meme | /*
*
* D3
*
*/
import React from 'react';
import { connect } from 'react-redux';
import selectD3 from './selectors';
import {
// main component
Chart,
// graphs
Bars, Dots, Lines, Transform, Cloud,
// Labels, Pies, RadialLines, Ticks, Title,
// wrappers
// Layer, Animate, Handlers,
// helpers
//... |
demo/src/basic.js | bringking/react-web-animation | import React, { Component } from 'react';
import { Animated } from 'react-web-animation';
export default class Basic extends Component {
constructor() {
super();
this.state = {
currentTime: 0,
playState: 'running',
};
}
onPlay() {
console.log('Basic example: Play event');
}
onFi... |
src/app/components/team/Statuses/EditStatusDialog.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { makeStyles } from '@material-ui/core/styles';
import Box from '@material-ui/core/Box';
import Button from '@material-ui/core/Button';
import Checkbox from '@material-ui/core/Checkbox';
import FormContr... |
app/components/asides/OpenSourceProjects.js | tbmelabs/tbmelabs.ch | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import Aside from '../common/Aside';
import Button from 'react-bootstrap/lib/Button';
require('bootstrap/dist/css/bootstrap.css');
class OpenSourceProjects extends React.Component {
render() {
const {openSourceProjects} = this.props... |
examples/cherry-pick/app/screens/application/screens/repo/screens/commits/index.js | QubitProducts/cherrytree | import './commits.css'
import React from 'react'
import R from 'ramda'
import * as github from 'github'
export default React.createClass({
statics: {
fetchData: function (params) {
return {
commits: github.commits(params.org + '/' + params.repo)
}
}
},
propTypes: {
commits: React... |
files/rxjs/2.3.25/rx.all.compat.js | firulais/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... |
src/modules/auth/components/Logout/Logout.js | cltk/cltk_frontend | import React from 'react';
import PropTypes from 'prop-types';
import './Logout.css';
class Logout extends React.Component {
static propTypes = {
logoutMethod: PropTypes.func.isRequired,
}
render() {
const { logoutMethod } = this.props;
return (
<div className="at-form">
<h3 style={{color: '#000'}... |
src/App.js | ivmarcos/react-hot-boilerplate | import React, { Component } from 'react';
import Home from './Home';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import {blue600} from 'material-ui/styles/colors';
const muiTheme = getMuiTheme({
palette: {
textColor: blue600,
},
... |
vendor/jquery-1.10.2.js | hafriedlander/jquery.entwine | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
example/src/reduxapp.js | zordius/reservice | import React from 'react'
import { render } from 'react-dom'
import PropTypes from 'prop-types'
import { applyMiddleware, createStore, compose } from 'redux'
import { Provider } from 'react-redux'
import reduxLogger from 'redux-logger'
import reducer from './reducers/index'
import middlewares from './middlewares/index... |
example/examples/CachedMap.js | lelandrichardson/react-native-maps | import React from 'react';
import {
Text,
View,
Dimensions,
StyleSheet,
ListView,
TouchableOpacity,
} from 'react-native';
import MapView, { ProviderPropType, Marker } from 'react-native-maps';
import flagImg from './assets/flag-blue.png';
const HORIZONTAL_PADDING = 12;
const VERTICAL_PADDING = 6;
class ... |
app/react-icons/fa/laptop.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaLaptop extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m8.6 28q-1.3 0-2.3-1t-1-2.3v-14.7q0-1.3 1-2.3t2.3-1h22.6q1.4 0 2.4 1t1 2.3v14... |
ajax/libs/material-ui/5.0.0-alpha.13/styles/useTheme.js | cdnjs/cdnjs | import { useTheme as useThemeWithoutDefault } from '@material-ui/styles';
import React from 'react';
import defaultTheme from './defaultTheme';
export default function useTheme() {
const theme = useThemeWithoutDefault() || defaultTheme;
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line r... |
packages/material-ui-icons/src/SignalWifi4BarRounded.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="M23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l10.08 12.56c.8 1 2.32 1 3.12 0L23.64 7z" /></g></React.Fragment>
, 'SignalWifi4BarRound... |
src/components/Lookup.js | seripap/wedding.seripap.com | import React from 'react';
import Page from './Page';
import ls from 'local-storage';
import axios from 'axios';
import { browserHistory, Link } from 'react-router'
import classNames from 'classnames';
export default class Lookup extends React.Component {
constructor(props) {
super(props);
this.state = {
... |
js/components/developer/my-jobs-screen/myJobsTab.js | justarrived/p2p-client | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { ListView } from 'react-native';
import { Container, Content } from 'native-base';
import moment from 'moment';
import AvatarListItem from '../../common/avatar-list-item/avatarListItem';
import ListSectionHeader from '../../common/... |
src/navigations/Profile.js | anhtuank7c/simple-chat | import React from 'react';
import { Image } from 'react-native';
import { StackNavigator } from 'react-navigation';
import ProfileScreen from '../screens/authorized/Profile';
const Profile = StackNavigator({
Profile: { screen: ProfileScreen }
}, {
navigationOptions: {
drawer: {
... |
ajax/libs/yui/3.7.3/event-focus/event-focus-min.js | amitabhaghosh197/cdnjs | YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(... |
public/assets/javascript/og/jquery.min.js | yanlingling/xnjs | /*! 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... |
ajax/libs/6to5/3.1.0/browser.js | akiran/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.to5=e()}}(function(){var define,module,exports;return... |
src/svg-icons/file/create-new-folder.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCreateNewFolder = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"/>
</Svg... |
files/rxjs/2.5.2/rx.js | labsvisual/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... |
packages/api/src/hooks/useVoiceSelector.js | billba/botchat | import { useCallback } from 'react';
import useWebChatAPIContext from './internal/useWebChatAPIContext';
export default function useVoiceSelector(activity) {
const context = useWebChatAPIContext();
return useCallback(voices => context.selectVoice(voices, activity), [activity, context]);
}
|
ajax/libs/angular-data/0.9.0/angular-data.js | JimBobSquarePants/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 0.9.0 - Homepage <http://angular-data.codetrain.io/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Data store for Angular.js.
... |
src/svg-icons/action/view-agenda.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewAgenda = (props) => (
<SvgIcon {...props}>
<path d="M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.5... |
ajax/libs/jquery/1.4.1/jquery.min.js | alejandroiglesias/cdnjs | /*!
* jQuery JavaScript Library v1.4.1
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
example/components/custom-component.js | boromisp/react-leaflet | import React, { Component } from 'react';
import { Map, TileLayer, Marker, Popup } from '../../src';
const MyPopupMarker = ({ map, position, children }) => (
<Marker map={map} position={position}>
<Popup>
<span>{children}</span>
</Popup>
</Marker>
);
const MyMarkersList = ({ map, markers }) => {
c... |
app/components/common/loader/Loader.js | rvpanoz/luna | import React from 'react';
import {
array,
bool,
symbol,
objectOf,
node,
oneOfType,
string,
} from 'prop-types';
import cn from 'classnames';
import { withStyles } from '@material-ui/core/styles';
import CircularProgress from '@material-ui/core/CircularProgress';
import { Typography } from '@material-ui/c... |
app/assets/javascripts/components/story/select_user/SelectUser.js | Codeminer42/cm42-central | import React from 'react';
import PropTypes from 'prop-types';
const SelectUser = ({ selectedUserId, onEdit, disabled, users }) => (
<select
value={selectedUserId || ''}
className="form-control input-sm"
onChange={(event) => onEdit(event.target.value)}
disabled={disabled}
>
<option value=''>
... |
node_modules/gulp-react/node_modules/react-tools/src/browser/ui/ReactDOMComponent.js | khwang/plum | /**
* 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 ... |
packages/reactor-kitchensink/src/examples/Charts/Gauge/BasicGauge/BasicGauge.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Panel } from '@extjs/ext-react';
import { Polar } from '@extjs/ext-react-charts';
import createData from './createData';
import ChartToolbar from '../../ChartToolbar';
Ext.require([
'Ext.chart.series.Gauge'
]);
export default class BasicGaugeChartExample extends ... |
src/weather/index.js | jimboslicethat/rpi-home-dashboard | import { startCase, toLower } from 'lodash'
import React from 'react'
import CssModules from 'react-css-modules'
import * as actions from './actions'
import connect from '../common/store/connect'
import Error from '../common/components/error'
import * as locationActions from '../location/actions'
import { selector as ... |
src/SingleValue.js | intelie/react-select | var React = require('react');
var SingleValue = React.createClass({
propTypes: {
placeholder: React.PropTypes.string, // this is default value provided by React-Select based component
value: React.PropTypes.object // selected option
},
render: function() {
return (
<div className="Select... |
tests/routes/Home/components/HomeView.spec.js | j3dimaster/CircleCi-test | import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'
describe('(View) Home', () => {
let _component
beforeEach(() => {
_component = render(<HomeView />)
})
it('Renders a welcome message', () => {
const welcome = _component.find('h4')
... |
src/icons/SettingsPowerIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class SettingsPowerIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M14 48h4v-4h-4v4zm8 0h4v-4h-4v4zm4-44h-4v20h4V4zm7.13 4.87l-2.89 2.89C33.69 13.87 36 17.66 36 22c0 6... |
ajax/libs/analytics.js/1.3.6/analytics.js | dryajov/cdnjs | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... |
ajax/libs/video.js/5.0.0-rc.23/video.js | sympmarc/cdnjs | /**
* @license
* Video.js 5.0.0-rc.23 <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... |
test/test_helper.js | mdunnegan/ReduxDrumApp | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
app/javascript/mastodon/features/compose/components/character_counter.js | palon7/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { length } from 'stringz';
export default class CharacterCounter extends React.PureComponent {
static propTypes = {
text: PropTypes.string.isRequired,
max: PropTypes.number.isRequired,
};
checkRemainingText (diff) {
if (diff < 0)... |
src/@ui/Button/Button.tests.js | NewSpring/Apollos | import React from 'react';
import renderer from 'react-test-renderer';
import Providers from '@ui/TestProviders';
import { View } from 'react-native';
import Button from './';
describe('The Button component', () => {
it('should render', () => {
const tree = renderer.create(
<Providers>
<Button tit... |
frontend/src/app/containers/HomePage/HomePageWithAddon.js | chuckharmston/testpilot | /* eslint-disable */
// @flow
import classnames from 'classnames';
import { Localized } from 'fluent-react/compat';
import React from 'react';
import Banner from '../../components/Banner';
import Copter from '../../components/Copter';
import EmailDialog from '../../components/EmailDialog';
import ExperimentTourDialog ... |
src/shared/components/Tasks/AppShell.js | tarkalabs/material-todo-jsc2016 | import React from 'react';
import AppBar from 'material-ui/AppBar';
import navigateTo from '../../actions/path';
import { Tabs, Tab } from 'material-ui/Tabs';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import ContentAdd from 'material-ui/svg-icons/content/add';
class AppShell extends React.Co... |
test/integration/production-swcminify/pages/error-in-browser-render-status-code.js | azukaru/next.js | import React from 'react'
export default class ErrorInRenderPage extends React.Component {
render() {
if (typeof window !== 'undefined') {
const error = new Error('An Expected error occurred')
// This will be extracted by getInitialProps in the _error page,
// which will result in a different er... |
lib/treeview/component.js | landaujs/atom-landau-viewer | 'use babel';
import React from 'react';
class TreeView extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
treeContents: this.props.delegate.treeContents,
};
}
state: {
treeContents: null,
};
componentDidMount() {
this.props.delegate.onD... |
app/tests/components/MainSection-test.js | enderdickerson/pickmydinner | import React from 'react';
import expect from 'expect';
import { mount } from 'enzyme';
import MainSection from '../../components/MainSection';
import TopicItem from '../../components/TopicItem';
const emptyData = [];
const topicItemData = [{
text: '',
id: '',
index: 0,
onIncrement: () => {},
onDecrement: ()... |
app/components/CodeEditor.js | alihalabyah/fil | import React from 'react';
import AceEditor from 'react-ace';
import 'brace/mode/python';
import 'brace/mode/ruby';
import 'brace/theme/tomorrow_night';
import {getExtension} from 'helpers';
import {byExtension} from 'interpreters';
class CodeEditor extends React.Component {
constructor(props) {
super(props)
... |
src/status/StatusConnected.stories.js | ipfs/webui | import React from 'react'
import { storiesOf } from '@storybook/react'
import { checkA11y } from '@storybook/addon-a11y'
import i18n from '../i18n-decorator'
import { TranslatedStatusConnected as StatusConnected } from './StatusConnected.js'
storiesOf('StatusConnected', module)
.addDecorator(i18n)
.addDecorator(c... |
examples/todos-with-undo/components/Footer.js | tappleby/redux | import React from 'react'
import FilterLink from '../containers/FilterLink'
const Footer = () => (
<p>
Show:
{" "}
<FilterLink filter="SHOW_ALL">
All
</FilterLink>
{", "}
<FilterLink filter="SHOW_ACTIVE">
Active
</FilterLink>
{", "}
<FilterLink filter="SHOW_COMPLETED">... |
imports/ui/pages/FAQ.js | lizihan021/SAA-Website | import React from 'react';
import { Grid, Row, Col, FormGroup, ControlLabel, FormControl, Button, Thumbnail, Image} from 'react-bootstrap';
const FAQ= () => (
<div className="About">
<h2 className="page-header">Question 1:</h2>
<p className="mission">As the official student organization recognized by both univ... |
react-flux-mui/js/material-ui/src/svg-icons/av/queue-play-next.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvQueuePlayNext = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h2v-2H3V5h18v8h2V5c0-1.11-.9-2-2-2zm-8 7V7h-2v3H8v2h3v3h2v-3h3v-2h-3zm11 8l-4.5 4.5L18 21l3-3-3-3... |
packages/material-ui-icons/src/HotTubTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><circle cx="7" cy="6" r="2" /><path d="M17.42 7.21c.57.62.82 1.41.67 2.2l-.11.59h1.91l.06-.43c.21-1.36-.27-2.71-1.3-3.71l-.07-.07c-.57-.62-.82-1.41-.67-2... |
src/components/Event.js | codefordenver/encorelink | import PropTypes from 'prop-types';
import React from 'react';
import { Link } from 'react-router';
import { getFormattedDayAndTime } from '../utils/dateFormatting';
import GoogleMapEmbeded from './GoogleMapEmbeded';
import EventMusiciansContainer from '../containers/EventMusiciansContainer';
function Event({
data,
... |
src/components/Header/index.js | codex49/icon-generator | import React from 'react';
import MenuLeft from './components/MenuLeft';
import MenuItems from '../../main/mocks/Menu.mock.json';
const Header = () => (
<header>
<div className="other-links">
<p className="">Other links: </p>
<MenuLeft menu={MenuItems} />
</div>
<h1 className="logo">
Ap... |
app/components/Maintenance/index.js | medevelopment/UMA |
import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import axios from 'axios';
import * as toastify from '../../functions/Toastify';
import PWIcon from '../icons/PWIcon.jpg';
import { getBranchName } from '../../functions/BranchesFuncs';
import { isoToShortDate, fullDateToIsoDate,... |
src/components/Conversation/Conversation.js | AutoLab-collab/mono-v-ui | import React from 'react'
import {observer} from 'mobx-react'
import {css} from 'aphrodite'
import {styles} from './styles.css'
import marked from 'marked'
const Conversation = ({store}) => {
return <div className={css(styles.conversation)}>
{store.history.map((node,index) => <Entry key={`conversation${index}`} n... |
app/javascript/mastodon/features/community_timeline/index.js | salvadorpla/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader fro... |
app/components/CharacterList.js | firewenda/testwebsite | import React from 'react';
import {Link} from 'react-router';
import {isEqual} from 'underscore';
import CharacterListStore from '../stores/CharacterListStore';
import CharacterListActions from '../actions/CharacterListActions';
class CharacterList extends React.Component {
constructor(props) {
super(props);
... |
Realization/frontend/czechidm-core/src/content/role/RoleCompositionTable.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
//
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
import * as Utils from '../../utils';
import { RoleCompositionManager, RoleManager, DataManager } from '../../r... |
src/components/DragBox/DragBoxSelect.js | Bandwidth/shared-components | import React from 'react';
import PropTypes from 'prop-types';
/**
* **DragBoxSelect** is a specialized usage of [DragBox](#!/DragBox) that is also accessible via `DragBox.Select`. It is
* provided as a convenience as it is a commonly used group of components. All properties available in both
* [Selectable](#!/S... |
ajax/libs/mediaelement/2.20.0/jquery.js | nolsherry/cdnjs | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
orderflex/public/orderassets/AppUserdirectoryBundle/fontawesome/js-packages/@fortawesome/fontawesome-free/js/brands.js | victorbrodsky/order-lab | /*!
* Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2022 Fonticons, Inc.
*/
(function () {
'use strict';
var _WINDOW = {};
var _DOCUMENT = {};
try {
if (typeof win... |
vendor/jquery/jquery/jquery-1.11.1.js | lysafichot/ecommerce | /*!
* jQuery JavaScript Library v1.11.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:42Z
*/
(function( global, factory ) {
if ... |
ajax/libs/maple.js/1.0.3/maple.min.js | sashberd/cdnjs | !function t(e,r,n){function o(a,u){if(!r[a]){if(!e[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[a]={exports:{}};e[a][0].call(c.exports,function(t){var r=e[a][1][t];return o(r?r:t)},c,c.ex... |
src/svg-icons/image/filter-9.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter9 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM15 5h-2c-1.1 0-2 .89-2 2v... |
src/routes/index.js | recharts/recharts.org | import React, { Component } from 'react';
import { Route, IndexRoute, Redirect, IndexRedirect } from 'react-router';
import _ from 'lodash';
import { IndexView, GuideView, APIView, ExamplesView, BlogView } from '../views';
import Frame from '../layouts/Frame';
import Locale from '../locale';
const locales = Object.key... |
toilet/__tests__/App.js | xizhouhezai/react-app | import 'react-native';
import React from 'react';
import App from '../App';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<App />
);
});
|
ajax/libs/react-data-grid/0.14.21/react-data-grid.js | joeyparrish/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
src/components/EntryList/index.js | jackp/finance-tracker | /**
* <EntryList />
*/
import React from 'react';
import classNames from 'classnames';
import { connect } from 'react-redux';
const EntryList = ({ entries }) => (
<div className="ui list">
{ entries.map((entry, i) => {
const iconClass = classNames(
'thumbs outline icon',
{ 'up green': pa... |
ajax/libs/react-ios-switch/0.1.5-rc2/bundle.min.js | extend1994/cdnjs | !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:... |
myOne/APP/index.js | caopengxu/ReactNative-one | 'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
Dimensions,
} from 'react-native';
import LoginView from './login';
import MyScrollView from './scrollView'
import MyFlatList from './MyFlatList'
import MyListView from '../listView/myListView'
im... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.