path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/DeleteDialog.js | cfouant/katello | import React from 'react';
import PropTypes from 'prop-types';
import { MessageDialog } from 'patternfly-react';
import { sprintf } from 'foremanReact/common/I18n';
const DeleteDialog = ({
show, selectedRows, onDeleteSubscriptions, onSubscriptionDeleteModalClose,
}) => (
<MessageDialog
show={show}
title={_... |
examples/js/expandRow/manage-expanding.js | AllenFang/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-console: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
produ... |
ajax/libs/rxjs/3.1.0/rx.lite.extras.compat.js | dakshshah96/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'function': true,
'object': true
};
var
freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports... |
app/javascript/mastodon/features/report/components/option.js | Ryanaka/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Check from 'mastodon/components/check';
export default class Option extends React.PureComponent {
static propTypes = {
name: PropTypes.string.isRequired,
value: PropTypes.string.isRequired,
checked... |
step4-router/app/js/App.js | jintoppy/react-training | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, hashHistory } from 'react-router';
import routes from './config/routes';
ReactDOM.render(
<Router history={hashHistory}>
{ routes }
< /Router>,
document.getElementById('app')
);
|
Cordial/app/components/settings-button.js | AwesomePossum446/Cordial | import React from 'react';
import {
View,
Text,
Switch,
StyleSheet,
} from 'react-native';
export default SettingsItem = ({ onPress, value, text }) => {
return (
<View style={styles.itemContainer}>
<Switch value={value} onValueChange={onPress}/>
<Text style={styles.text}>{text}</Text>
</V... |
routes.js | m4n3z40/fluxone | import React from 'react';
import { Route, DefaultRoute } from 'react-router';
import RootComponent from 'components/RootComponent.js';
import AppComponent from 'components/AppComponent.js';
export default function getRoutes() {
return (
<Route name="app" path="/" handler={RootComponent}>
<Defa... |
client/components/FlassCommon/AppBar/Badge/Badge.js | Nexters/flass | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import _ from 'lodash';
import styled from 'styled-components';
import BadgeIcon from './images/appbar-badge.png';
import BadgeHistory from './BadgeHistory';
import {
FETCH_BADGE_HISTORY,
TOGGLE_BAD... |
imports/startup/client/index.js | baiyalong/score |
import { Meteor } from 'meteor/meteor';
import React, { Component } from 'react';
import { render } from 'react-dom';
import { renderRoutes } from './routes.js';
import { Session } from 'meteor/session';
import Wx from '../../ui/Wx';
Meteor.startup(() => {
if (isWx())
render(<Wx />, document.getEl... |
test/ListGroupSpec.js | omerts/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ListGroup from '../src/ListGroup';
import ListGroupItem from '../src/ListGroupItem';
describe('ListGroup', function () {
it('Should output a "div" with the class "list-group"', function () {
let instance = ReactTestUtils.re... |
src/components/utils/Gutters.js | jckfa/img.silly.graphics | import React from 'react'
import styled from 'styled-components'
import media from './media'
import { spacing } from '../config/vars'
const Container = styled.div`
padding-left: ${spacing.gutter}em;
padding-right: ${spacing.gutter}em;
${media.s`
padding-left: ${spacing.gutter * 2}em;
padding-right: ${... |
packages/react-router-native/examples/NoMatch.js | d-oliveros/react-router | import React from 'react'
import { StyleSheet, Text, View, AppRegistry } from 'react-native'
import { NativeRouter, Route, Link, Switch, Redirect } from 'react-router-native'
const Home = () => (
<Text style={styles.header}>
A <Switch> renders the
first child <Route> that
matches. A <Route> with... |
src/Pin/macOs/index.js | gabrielbull/react-desktop | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import TextInput from '../../TextInput/macOs';
import Hidden, { hiddenPropTypes } from '../../style/hidden';
import Margin, { marginPropTypes, removeMarginProps } from '../../style/margin';
@Hidden()
@Margin... |
src/svg-icons/hardware/keyboard-tab.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardTab = (props) => (
<SvgIcon {...props}>
<path d="M11.59 7.41L15.17 11H1v2h14.17l-3.59 3.59L13 18l6-6-6-6-1.41 1.41zM20 6v12h2V6h-2z"/>
</SvgIcon>
);
HardwareKeyboardTab = pure(HardwareKeyboard... |
src/index.js | medipass/react-health-card | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styled from 'styled-components';
import _get from 'lodash/get';
import _padEnd from 'lodash/padEnd';
import images from './card-images';
const Attribute = styled.div`
${props => props.attributeS... |
introToBackbone/examples/code/snapshot06/backbone.js | nathan-j-brenner/screencasts | // Backbone.js 1.1.2
// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(root, factory) {
// Set up Backbone appropriately for ... |
examples/redirect-using-index/app.js | dalexand/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
{this.props.children}
</div>
);
}
});
var Index = React.createClass({
render () {
return (
<div>
<h1>You should not se... |
client/modules/ResourceType/components/Select/ResourceTypes.js | b3j0f/lechangement | import './ResourceTypes.css';
import React, { Component } from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import ResourceType from '../Item/ResourceType';
class ResourceTypes extends Component {
constructor(props) {
super(props);
this... |
ajax/libs/yasr/2.4.5/yasr.bundled.min.js | svenanders/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
src/components/Category.js | nickeblewis/walkapp | /**
* Component that displays one category item
*/
import React from 'react'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
class Category extends React.Component {
static propTypes = {
category: React.PropTypes.object,
mutate: React.PropTypes.func,
refresh: React.PropTypes.func,... |
files/core-js/0.9.13/library.js | ManrajGrover/jsdelivr | /**
* Core.js 0.9.13
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/*****... |
files/jquery.localscroll/1.2.7/jquery.localscroll-1.2.7.js | algolia/jsdelivr | /**
* jQuery.LocalScroll
* Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
* Dual licensed under MIT and GPL.
* Date: 3/11/2009
*
* @projectDescription Animated scrolling navigation, using anchors.
* http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.h... |
ajax/libs/onsen/2.0.0-alpha.6/js/angular-onsenui.js | maruilian11/cdnjs | /*! angular-onsenui.js for onsenui - v2.0.0-alpha.6 - 2015-10-22 */
(function(module) {
try { module = angular.module('templates-main'); }
catch(err) { module = angular.module('templates-main', []); }
module.run(['$templateCache', function($templateCache) {
'use strict';
$templateCache.put('templates/sliding_menu.t... |
packages/wix-style-react/src/StarsRatingBar/docs/index.story.js | wix/wix-style-react | import React from 'react';
import {
header,
tabs,
tab,
description,
importExample,
title,
divider,
example,
playground,
api,
testkit,
} from 'wix-storybook-utils/Sections';
import { storySettings } from '../test/storySettings';
import * as examples from './examples';
import StarsRatingBar from ... |
files/rxjs/2.3.0/rx.lite.js | moay/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... |
ajax/libs/rxjs/2.3.25/rx.compat.js | mitsuruog/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
};
... |
src/utils/childUtils.js | ichiohta/material-ui | import React from 'react';
import createFragment from '../ReactFragment/ReactFragment';
export function createChildFragment(fragments) {
const newFragments = {};
let validChildrenCount = 0;
let firstKey;
// Only create non-empty key fragments
for (const key in fragments) {
const currentChild = fragments... |
examples/slackbutton_bot.js | michaesw/botkit | /* Uses the slack button feature to offer a real time bot to multiple teams */
var Botkit = require('../lib/Botkit.js');
if (!process.env.clientId || !process.env.clientSecret || !process.env.port) {
console.log('Error: Specify clientId clientSecret and port in environment');
process.exit(1);
}
var controller = ... |
__tests__/components/DateTime-test.js | codeswan/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react/lib/ReactTestRenderer';
import DateTime from '../../src/js/components/DateTime';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('DateT... |
local-cli/templates/HelloWorld/index.ios.js | formatlos/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class HelloWorld extends Component {
render() {
return (
<View style={styles.containe... |
packages/mineral-ui-icons/src/IconMovie.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconMovie(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
src/Controls/ControlNumber.js | rpominov/react-demo | import React from 'react'
import createReactClass from 'create-react-class'
import T from 'prop-types'
import Group from './Group'
import InputNumber from './InputNumber'
export default createReactClass({
displayName: 'Demo.Controls.ControlNumber',
propTypes: {
name: T.string.isRequired,
value: T.number.... |
sites/default/files/js/js_dmxQl2UqCx8a4hhLitFCWMpE1quzREIqTaT8rNYLmKM.js | tushar-faichi/3blMediaMigrate | /*! jQuery v2.2.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,fun... |
src/routes/catalog/Catalog.js | fkenk/Majsternia | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Header from '../../co... |
ajax/libs/forerunnerdb/1.3.432/fdb-core.min.js | Amomo/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... |
packages/material-ui/src/ListItemIcon/ListItemIcon.js | allanalexandre/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
export const styles = theme => ({
/* Styles applied to the root element. */
root: {
minWidth: 56,
color: theme.palette.action.active,
flexShrink: 0,
display: 'inlin... |
node_modules/material-ui/lib/svg-icons/hardware/keyboard-capslock.js | fernando-jascovich/vagrant-manager | 'use strict';
var React = require('react');
var PureRenderMixin = require('react-addons-pure-render-mixin');
var SvgIcon = require('../../svg-icon');
var HardwareKeyboardCapslock = React.createClass({
displayName: 'HardwareKeyboardCapslock',
mixins: [PureRenderMixin],
render: function render() {
return Re... |
src/svg-icons/notification/time-to-leave.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationTimeToLeave = (props) => (
<SvgIcon {...props}>
<path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.... |
src/components/Header.js | twhite96/checkyoself | /*jshint ignore: start */
import React from 'react';
import { Hero, Title, SubTitle, Container } from 'reactbulma';
import '../smde-editor.css';
class Header extends React.Component {
render() {
return (
<Hero className="change-header">
<Hero.Body>
<Container>
<Title classNa... |
ajax/libs/vue/2.3.1/vue.js | jonobr1/cdnjs | /*!
* Vue.js v2.3.1
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Vue = factory());
}(this, (function ()... |
node_modules/semantic-ui-react/dist/es/views/Feed/FeedDate.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import _isNil from 'lodash/isNil';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
/**
* An event or an event summary can contain a ... |
fields/types/location/LocationColumn.js | Ftonso/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
const SUB_FIELDS = ['street1', 'suburb', 'state', 'postcode', 'country'];
var LocationColumn = React.createClass({
displayName: 'Loc... |
gmatgamefrontend/src/ProfileButtons/EditButton.js | decodeMERV/GMATgameFE | import React from 'react';
export default (props) => (
<i className="fa fa-pencil-square-o fa-2x" onClick={this.onClick}/>
);
|
react/FlagVNIcon/FlagVNIcon.js | seekinternational/seek-asia-style-guide | import svgMarkup from './FlagVNIcon.svg';
import React from 'react';
import Icon from '../private/Icon/Icon';
export default function FlagVNIcon(props) {
return <Icon markup={svgMarkup} {...props} />;
}
FlagVNIcon.displayName = 'FlagVNIcon';
|
src/svg-icons/image/hdr-strong.js | igorbt/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/forerunnerdb/1.3.770/fdb-legacy.js | maruilian11/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
ajax/libs/analytics.js/2.3.5/analytics.min.js | djavaui/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... |
ajax/libs/6to5/3.0.0/browser.js | NameFILIP/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... |
docs/snippets/plugin-no-config.js | zapier/formatic | //CUT
import React from 'react';
import Formatic from 'formatic';
const fields = [];
//CUT
React.render(<Formatic fields={fields} />, document.body);
|
libraries/react-native/beginner/index.ios.js | vivaxy/course | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import { AppRegistry, StyleSheet, Text, View } from 'react-native';
export default class beginner extends Component {
render() {
return (
<View style={styles.container}>
... |
files/jquery.handsontable/0.10.3/jquery.handsontable.full.js | yaplas/jsdelivr | /**
* Handsontable 0.10.3
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright 2012, Marcin Warpechowski
* Licensed under the MIT license.
* http://handsontable.com/
*
* Date: Mon Feb 10 2014 14:15:11 GMT+0100 (CET)
*/
/*jslin... |
ajax/libs/react-native-web/0.17.1/exports/RefreshControl/index.js | cdnjs/cdnjs | function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
/**
* Copy... |
web/js/jquery-1.5.1.min.js | WACREN/IDPPublic | /*!
* jQuery JavaScript Library v1.5.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/TimePicker/TimePicker.spec.js | mmrtnz/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import TimePicker from './TimePicker';
import {addHours, formatTime} from './timeUtils';
import getMuiTheme from '../styles/getMuiTheme';
import TextField from '../TextField';
describe('<TimePicker />', () =... |
src/components/Ads/FeaturedTerms/index.js | topguru/React-Equiaction | import React, { Component } from 'react';
import {
Text,
View,
ScrollView,
TouchableHighlight
} from 'react-native';
import styles from './style';
import { images, metrics } from '../../../theme';
import Icon from 'react-native-vector-icons/FontAwesome';
import { Actions } from 'react-native-router-flux';
co... |
app/components/packages/actions/index.js | rvpanoz/luna | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from '@material-ui/core/IconButton';
import Tooltip from '@material-ui/core/Tooltip';
import ClearIcon from '@material-ui/icons/Clear';
import RefreshIcon from '@material-ui/icons/Refresh';
import FilterListIcon from '@material-ui/icons/Fi... |
definitions/npm/react-select_v1.x.x/test_react-select_v1.x.x.js | echenley/flow-typed | import React from 'react';
import { default as SelectComponent } from 'react-select';
import type Select from 'react-select';
const ArrowRenderer = (props: { onMouseDown: Event }): React$Element<*> => <span>Arrow</span>;
const ClearRenderer = (): React$Element<*> => <span />;
const filterOption = (option: Object, filt... |
ajax/libs/react-swipe/2.0.11/react-swipe.js | pombredanne/cdnjs | (function (root, factory) {
if (typeof module !== 'undefined' && module.exports) {
module.exports = factory(
require('react/addons'),
require('swipe-js-iso')
);
} else {
root.ReactSwipe = factory(
root.React,
root.Swipe
);
}
})(this, function (React, Swipe) {
var styles =... |
WebNceeMVC/packages/jQuery.1.10.2/Content/Scripts/jquery-1.10.2.js | JulienMinato/WxNcee | /* NUGET: BEGIN LICENSE TEXT
*
* 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 or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
webapp/app/components/EditGroup/Form/GroupRights/SaveRestoreMode/index.js | EIP-SAM/SAM-Solution-Node-js | //
// Component save & restore mode group rights form edit group
//
import React from 'react';
import { FormGroup, FormControl, ControlLabel } from 'react-bootstrap';
import styles from 'components/EditGroup/styles.css';
/* eslint-disable react/prefer-stateless-function */
export default class EditGroupFormGroupRight... |
app/javascript/mastodon/features/ui/components/block_modal.js | d6rkaiz/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import { makeGetAccount } from '../../../selectors';
import Button from '../../../components/button';
import { closeModal } from '../../../actions/modal';
impo... |
packages/material-ui-icons/src/VolumeDown.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z" /></g>
, 'VolumeDown');
|
mlflow/server/js/src/experiment-tracking/components/ParallelCoordinatesPlotControls.js | mlflow/mlflow | import React from 'react';
import PropTypes from 'prop-types';
import { Button } from '../../shared/building_blocks/Button';
import { TreeSelect } from 'antd';
import { FormattedMessage } from 'react-intl';
export class ParallelCoordinatesPlotControls extends React.Component {
static propTypes = {
// An array of... |
webapp/app/components/Login/Form/index.js | EIP-SAM/SAM-Solution-Node-js | //
// Component form page login
//
import React from 'react';
import Username from 'containers/Login/Form/Username';
import Password from 'containers/Login/Form/Password';
import Buttons from 'containers/Login/Form/Buttons';
import styles from './styles.css';
/* eslint-disable react/prefer-stateless-function */
expor... |
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js | bradparks/actor-platform___im_client_cross_platform | import _ from 'lodash';
import React from 'react';
import { Styles, RaisedButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ContactStore from 'stores/ContactStore';
import ContactActionCreators from 'actions/ContactActionCreators';
import AddContactStore from 'stores/AddContactStore'... |
stories/DragNDrop/CustomImageEditor/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import {
convertFromRaw,
EditorState,
} from 'draft-js';
import Editor, { composeDecorators } from 'draft-js-plugins-editor';
import createImagePlugin from 'draft-js-image-plugin';
import createFocusPlugin from 'draft-js-focus-plugin';
import createBlockDndPlugin from 'draf... |
ajax/libs/material-ui/5.0.0-alpha.15/modern/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... |
ajax/libs/react-intl/1.1.0-rc-1/react-intl-with-locales.min.js | wout/cdnjs | (function(){"use strict";function a(a){var b,c,d,e,f=Array.prototype.slice.call(arguments,1);for(b=0,c=f.length;c>b;b+=1)if(d=f[b])for(e in d)q.call(d,e)&&(a[e]=d[e]);return a}function b(a,b,c){this.locales=a,this.formats=b,this.pluralFn=c}function c(a){this.id=a}function d(a,b,c,d){this.id=a,this.offset=b,this.options... |
packages/material-ui-icons/src/ChildFriendly.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ChildFriendly = props =>
<SvgIcon {...props}>
<path d="M13 2v8h8c0-4.42-3.58-8-8-8zm6.32 13.89C20.37 14.54 21 12.84 21 11H6.44l-.95-2H2v2h2.22s1.89 4.07 2.12 4.42c-1.1.59-1.84 1.75-1.84 3.08C4.5 20.43 6.0... |
imports/ui/components/events/EventExpenses.js | KyneSilverhide/expense-manager | /* eslint-disable max-len, no-return-assign */
import React from 'react';
import List, { ListItem, ListItemText, ListItemSecondaryAction } from 'material-ui/List';
import Dialog, { DialogActions, DialogTitle } from 'material-ui/Dialog';
import FontAwesome from 'react-fontawesome';
import Slide from 'material-ui/transi... |
src/components/HomeContent.js | rksaxena/wedding | import React from 'react';
import config from '../data/config.js'
export default class HomeContent extends React.Component{
constructor(props, context){
super(props, context);
this.state = {};
}
render() {
let homeTitle = config.homeTitle;
let homeContent = config.homeContent... |
src/components/common/svg-icons/action/trending-up.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTrendingUp = (props) => (
<SvgIcon {...props}>
<path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/>
</SvgIcon>
);
ActionTrendingUp = pure(ActionTrendingUp);
ActionTrending... |
clients/packages/admin-client/src/pages/admin/mobilizations/settings/metrics/page.js | nossas/bonde-client | import React from 'react';
// import { MetricsMobilization } from '../../../../../components/metrics'
import { Title } from '../../../../../components/title';
const MobilizationsSettingsMetricsPage = () => (
<React.Fragment>
<Title>Métricas</Title>
<h3>Override MetricsMobilization</h3>
{/* <MetricsMobili... |
docs/src/routes/home/Home.js | bmatthews/haze-lea | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
docs/src/app/components/pages/components/Tabs/Page.js | hwo411/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import tabsReadmeText from './README';
import tabsExampleSimpleCode from '!raw!.... |
app/components/analytics/analytics.js | imankit/dashboard-ui | /**
* Created by Darkstar on 11/29/2016.
*/
import React from 'react';
import {connect} from 'react-redux';
import Toolbar from '../toolbar/toolbar.js';
import FlatButton from 'material-ui/FlatButton';
import StorageIcon from 'material-ui/svg-icons/device/sd-storage';
import APIIcon from 'material-ui/svg-icons/action... |
client/src/js/components/rooms/NewChatroomForm.js | abitlog/retube | import React from 'react';
import NewChatroomFormTags from './NewChatroomFormTags';
import NewChatroomErrorNotifier from './NewChatroomErrorNotifier';
import { validateNewRoomCreation } from '../../utils/validations';
class NewChatroomForm extends React.Component {
static propTypes = {
formOnSubmit: React.Prop... |
ajax/libs/rxjs/2.2.25/rx.all.compat.js | LostCrew/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... |
lib/yuilib/3.17.2/datatable-body/datatable-body-debug.js | msoni11/moodle | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base... |
internals/webpack/webpack.base.babel.js | easingthemes/berlinmap | /**
* COMMON WEBPACK CONFIGURATION
*/
const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = (options) => ({
entry: options.entry,
output: Object.assign({ // Compile into js/build.js
path: path.resolve(process.cwd(... |
plugin-babel.js | systemjs/plugin-babel | var babel = require('systemjs-babel-build').babel;
// the SystemJS babel build includes standard presets
var es2015 = require('systemjs-babel-build').presetES2015;
var es2015Register = require('systemjs-babel-build').presetES2015Register;
var modulesRegister = require('systemjs-babel-build').modulesRegister;
var stage... |
app/hybrid/components/LotteryMessage/index.js | Princess310/antd-demo | import React from 'react';
import styled from 'styled-components';
import FlexRowContentCenter from 'components/FlexRowContentCenter';
const MessageItem = styled.span`
margin-right: 0.15rem;
counter-increment: msg-counter;
&:before {
margin-right: 0.04rem;
display: inline-block;
content: counter(msg... |
frontend/src/js/index.js | TornikeNatsvlishvili/writing.skivri.ge | import React from 'react'
import { render } from 'react-dom'
import ReactGA from 'react-ga';
import Main from './components/Main'
import Header from './components/Header'
require('../style/index.scss')
ReactGA.initialize(process.env.REACT_APP_GOOGLE_ID)
const App = () => (
<div className="app">
<a href="h... |
example/src/components/NewItem.js | nheyn/react-async-dispatcher | /*
* @flow
*/
import React from 'react';
import enhanceNewItem from '../containers/enhanceNewItem';
type Props = {
label: string,
onUpdateNewItem: (label: string) => void,
onAddItem: (label: string) => void,
};
function NewItem({ label, onUpdateNewItem, onAddItem, ...otherProps }: Props): React.Element<*> {
... |
frontend/src/Settings/Notifications/Notifications/AddNotificationItem.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Button from 'Components/Link/Button';
import Link from 'Components/Link/Link';
import Menu from 'Components/Menu/Menu';
import MenuContent from 'Components/Menu/MenuContent';
import { sizes } from 'Helpers/Props';
import translate from... |
web/src/RouteHandlers/root/index.js | mletunov/SmartOffice | import React, { Component } from 'react';
import { connect } from "react-redux"
import { Provider } from "react-redux";
import store from "../../store";
//import NavLink from "./components/navLink";
import "../../assets/styles/index.scss";
import "bootstrap/dist/css/bootstrap.css";
import { FormattedMessage } from 're... |
CompositeUi/src/views/component/__tests__/CardExtended.js | kreta-io/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import React from 'react';
import {shallo... |
ajax/libs/6to5/1.12.23/browser.js | 2947721120/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... |
frontend/pages/swe/ethics.js | souvik1997/website | import React from 'react';
import Link from 'next/link';
import Head from '../../components/head';
import BlogPost, { CodeBlock } from '../../components/swe-blog';
import { Container, Nav, NavItem, NavLink, Row, Col } from 'reactstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
const answer = (
<div>
<p>... |
C/mongoose/examples/html/jquery.js | kristopolous/apophnia | /*!
* jQuery JavaScript Library v1.4.2
* 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.
... |
lib/codemod/src/transforms/__testfixtures__/storiesof-to-csf/story-decorators.input.js | storybooks/react-storybook | import React from 'react';
import Button from './Button';
storiesOf('Some.Button', module)
.add('with story params and decorators', () => <Button label="The Button" />, {
bar: 1,
decorators: [withKnobs, storyFn => <div className="foo">{storyFn}</div>],
})
.add('with story decorators', () => <Button label... |
console/react/src/overview/dataSources/logsData.js | irinabov/debian-qpid-dispatch | /*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this f... |
docs/src/app/components/pages/components/DatePicker/ExampleSimple.js | tan-jerene/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
/**
* The Date Picker defaults to a portrait dialog. The `mode` property can be set to `landscape`.
* You can also disable the Dialog passing `true` to the `disabled` property.
*/
const DatePickerExampleSimple = () => (
<div>
<DatePic... |
src/routes/Semester/components/Semester.js | piu130/react-redux-gpa-app | import React from 'react'
import { connect } from 'react-redux'
import { Form, Field, reduxForm } from 'redux-form'
import { FormGroup, ControlLabel, Button } from 'react-bootstrap'
import { mode } from '../../Semesters/modules/semestersMainView'
import { browserHistory } from 'react-router'
import { updateSucceed, upd... |
admin/src/components/Lightbox.js | geminiyellow/keystone | import React from 'react';
import blacklist from 'blacklist';
import Portal from './Portal';
const Transition = React.addons.CSSTransitionGroup;
const BODY = document.getElementsByTagName('body')[0];
var Lightbox = React.createClass({
displayName: 'Lightbox',
propTypes: {
backdropClosesModal: React.PropTypes.bool... |
react/features/app/components/App.web.js | jitsi/jitsi-meet | // @flow
import { AtlasKitThemeProvider } from '@atlaskit/theme';
import React from 'react';
import { DialogContainer } from '../../base/dialog';
import GlobalStyles from '../../base/ui/components/GlobalStyles';
import JitsiThemeProvider from '../../base/ui/components/JitsiThemeProvider';
import { ChromeExtensionBann... |
packages/material-ui-icons/src/WavesSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M17 16.99c-1.35 0-2.2.42-2.95.8-.65.33-1.18.6-2.05.6-.9 0-1.4-.25-2.05-.6-.75-.38-1.57-.8-2.95-.8s-2.2.42-2.95.8c-.65.33-1.17.6-2.05.6v1.95c1.35 0 2.2-.42 2.95-.8.65-.33 1.17-.6 2.05-.6s1.4.25 2.05.6c... |
src/routes/Home/components/HomeView.js | miyanokomiya/b-net | import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
import { IndexLink, Link } from 'react-router'
export const HomeView = () => (
<div>
<h4>Welcome!</h4>
<img alt='This is a duck, because Redux!' className='duck' src={DuckImage} />
<Link to='/room'>
Let's ... |
docs/pages/blog/2020-q3-update.js | lgollut/material-ui | import React from 'react';
import TopLayoutBlog from 'docs/src/modules/components/TopLayoutBlog';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'blog/2020-q3-update';
const requireRaw = require.context('!raw-loader!./', false, /2020-q3-update\.md$/);
export default funct... |
tests/format/flow-repo/react/createElement_string.js | jlongster/prettier | // @flow
import React from 'react';
class Bar extends React.Component {}
class Foo extends React.Component {
render() {
const Cmp = Math.random() < 0.5 ? 'div' : Bar;
return (<Cmp/>);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.