path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/clincoded/static/libs/render_publish_status.js | ClinGen/clincoded | 'use strict';
import React from 'react';
import moment from 'moment';
import { sortListByDate } from './helpers/sort';
/**
* Method to render the publication status of a given GDM's classification
* @param {array} snapshots - List of snapshots associated with classification
* @param {boolean} stringOnly - Whether r... |
stories/index.js | alexspence/operationcode_frontend | import React from 'react';
import { storiesOf, action, linkTo } from '@kadira/storybook';
import Button from './Button';
import Welcome from './Welcome';
storiesOf('Welcome', module)
.add('to Storybook', () => (
<Welcome showApp={linkTo('Button')}/>
));
storiesOf('Button', module)
.add('with text', () => (
... |
demo05/src/App.js | lxlneo/reactdemo | import React from 'react'
import Nav from './components/nav'
import Home from './components/home'
import Account from './components/account'
import NoMatch from './components/noMatch'
import RecursivePaths from './components/recursivePaths'
import {
BrowserRouter as Router,
Route,
Link,
Switch
} from ... |
src/client/components/Shared/Modal.js | josh--newman/blog | import React from 'react';
import ReactModal from 'react-modal';
import Button from './Button';
import styles from './Modal.css';
class Modal extends React.Component {
state = { open: false, }
static propTypes = {
children: React.PropTypes.shape({
props: React.PropTypes.shape({
onClick: React.Pr... |
fabricext/scripts/jquery.js | hk41/fabric.ext | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
wp-content/uploads/spacker-cache/44e3d08f3d2399f694a834874d71f72a.js | ych622/tax1on1 | /*
Cache: jquery, my-ajax-request, login-with-ajax, admin-bar, smooth-scroll, toc-front, cookie, comment-reply
*/
/* jquery: (http://tax1on1.org/wp-includes/js/jquery/jquery.js) */
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.repl... |
app/javascript/mastodon/features/ui/components/upload_area.js | tootsuite/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { FormattedMessage } from 'react-intl';
export default class UploadArea extends React.PureComponent {
static propTypes = {
active: PropTypes.boo... |
renderer/components/UI/Spinner.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import styled, { keyframes } from 'styled-components'
import { Box } from 'rebass/styled-components'
import Spinner from 'components/Icon/Spinner'
const rotate360 = keyframes`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
... |
app/jsx/assignments_2/teacher/components/Overrides/OverrideDetail.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
ajax/libs/flat-ui/2.2.1/js/vendor/jquery.min.js | cgvarela/cdnjs | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
ajax/libs/rxjs/2.3.24/rx.compat.js | tkirda/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... |
app/components/PostSection/RowItem.js | j921216063/chenya | import styled from 'styled-components';
// import H3 from 'components/H3';
// import React from 'react';
// import Img from 'components/Img';
const RowItem = styled.section`
width: 50%;
clear: none;
margin-left: 0;
@media screen and (max-width: 840px) {
width: 100%;
}
`;
// const RowItem = (props... |
lib/dashboard/components/errors/Category.js | gmrutilus/rutilus-analytics-node-js | /**
* Rutilus
*
* @homepage https://gmrutilus.github.io
* @license Apache-2.0
*/
import React from 'react';
import { connect } from 'react-redux';
import { Panel } from 'react-bootstrap';
import Group from './Group';
import { errorActions } from '../../actions/actions';
// How many errors to load every time?
c... |
src/src/Dialogs/Error.js | ioBroker/ioBroker.javascript | import React from 'react';
import PropTypes from 'prop-types';
import {withStyles} from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/Dial... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/Progress.js | GoogleCloudPlatform/prometheus-engine | import _extends from "@babel/runtime/helpers/esm/extends";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _excluded = ["children", "className", "barClassName", "cssModule", "value", "min", ... |
components/OfficerCard.js | uclaacm/website | import Image from 'next/image';
import React from 'react';
import styles from '../styles/components/OfficerCard.module.scss';
function Officer({
name,
pronouns,
position,
/* eslint-disable-next-line no-unused-vars */
committee, // no officer card formats use committee yet
major,
year,
img,
alt,
bi... |
src/svg-icons/image/portrait.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePortrait = (props) => (
<SvgIcon {...props}>
<path d="M12 12.25c1.24 0 2.25-1.01 2.25-2.25S13.24 7.75 12 7.75 9.75 8.76 9.75 10s1.01 2.25 2.25 2.25zm4.5 4c0-1.5-3-2.25-4.5-2.25s-4.5.75-4.5 2.25V17h9v-.75zM... |
src/client/DevTools.js | lancetw/react-isomorphic-bundle | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
import SliderMonitor from 'redux-slider-monitor'
const DevTools = createDevTools(
<DockMonitor
defaultIsVisible={false}
changeM... |
src/SafeAnchor.js | xuorig/react-bootstrap | import React from 'react';
import createChainedFunction from './utils/createChainedFunction';
/**
* Note: This is intended as a stop-gap for accessibility concerns that the
* Bootstrap CSS does not address as they have styled anchors and not buttons
* in many cases.
*/
export default class SafeAnchor extends React... |
ajax/libs/react-instantsearch/5.3.1/Connectors.js | joeyparrish/cdnjs | /*! React InstantSearch 5.3.1 | ยฉ Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports',... |
node_modules/babel-core/lib/traversal/path/lib/hoister.js | chuntielin/Blog_Yeoman_Fullstack | "use strict";
exports.__esModule = true;
// istanbul ignore next
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj;... |
blueocean-material-icons/src/js/components/svg-icons/action/view-array.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionViewArray = (props) => (
<SvgIcon {...props}>
<path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"/>
</SvgIcon>
);
ActionViewArray.displayName = 'ActionViewArray';
ActionViewArray.muiName = 'SvgIcon';
export default ActionViewArra... |
app/javascript/mastodon/components/autosuggest_textarea.js | 5thfloor/ichiji-social | import React from 'react';
import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
import AutosuggestEmoji from './autosuggest_emoji';
import AutosuggestHashtag from './autosuggest_hashtag';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from... |
src/index.js | vandosant/fawn | import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import './styles/styles.scss'; //Yep, that's right. You can import SASS/CSS files too! Webpack will run the associated loader and ... |
ajax/libs/forerunnerdb/1.3.517/fdb-core+persist.min.js | wout/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... |
react-flux-mui/js/material-ui/src/svg-icons/content/add-circle.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentAddCircle = (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 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/>
</SvgIcon>
);
ContentAddCircle = pure(Cont... |
react-focus-within/components/Form.js | okonet/slides | import React from 'react';
import styled from 'styled-components'
import Stack from 'stack-styled'
const Form = styled(Stack)`
padding: 2rem;
&:focus-within {
background: yellow;
}
`;
export default Form |
examples/react-native/src/App.js | supasate/connected-react-router | /**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React from 'react';
import {SafeAreaView, StyleSheet, View} from 'react-native';
import {Provider} from 'react-redux';
import Router from './routes';
import configureStore from './configureStore';
const {histo... |
ajax/libs/jquery/1.9.0/jquery.min.js | Rich-Harris/cdnjs | /*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc... |
ajax/libs/ember-data.js/0.0.14/ember-data.js | gaearon/cdnjs | // Version: v0.14
// Last commit: d9cd270 (2013-08-31 17:12:14 -0700)
(function() {
var define, requireModule;
(function() {
var registry = {}, seen = {};
define = function(name, deps, callback) {
registry[name] = { deps: deps, callback: callback };
};
requireModule = function(name) {
if (seen[name... |
docs/src/pages/demos/dialogs/AlertDialog.js | Kagami/material-ui | import React from 'react';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogContentText';
import D... |
ui/scripts/main.js | fnouama/gradle-kotlin | import React from 'react';
import ReactDOM from 'react-dom';
import SunWeatherComponent from './sun-weather-component.jsx';
ReactDOM.render(<SunWeatherComponent />, document.getElementById('reactView'));
|
app/js/libs/jquery-1.9.1.js | wilsongis/express-ember-test | /*!
* 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... |
docs/src/components/seo.js | airbnb/superset | /**
* 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... |
test/specs/elements/Step/StepGroup-test.js | mohammed88/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import Step from 'src/elements/Step/Step'
import StepGroup from 'src/elements/Step/StepGroup'
import * as common from 'test/specs/commonTests'
describe('StepGroup', () => {
common.isConformant(StepGroup)
common.hasUIClassName(StepGroup)
common.propKeyAndValue... |
src/components/Toolbar/Toolbar-test.js | carbon-design-system/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import Toolbar, {
ToolbarItem,
ToolbarTitle,
ToolbarOption,
ToolbarDivider,
} from '../Toolbar';
import Ov... |
client/components/compose.js | bmathews/end-of-day | import React from 'react';
import Editor from './editor.js'
var ReactTags = require('react-tag-input').WithContext;
var _ = require('lodash');
export default React.createClass({
propTypes: {
onSend: React.PropTypes.func.isRequired,
profile: React.PropTypes.object.isRequired,
sending: React.PropTypes.bo... |
public/assets/plugins/jstree/docs/assets/jquery-1.10.2.min.js | facascante/zend-erp | /*! 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.init... |
src/browser/__tests__/ReactBrowserEventEmitter-test.js | VukDukic/react | /**
* 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.
*
* @emails react-co... |
src/js/components/ImageFigures.js | AlexBai1991/react-images-gallery | 'use strict';
import React, { Component, PropTypes } from 'react';
import ImageFigure from './ImageFigure';
class ImageFigures extends Component {
constructor(props, context) {
super(props, context);
}
componentDidMount() {
this.imageFigure0 = this.refs.imageFigure0;
}
render() {
let imagesAr... |
ajax/libs/clappr/0.0.51/clappr.js | Nadeermalangadan/cdnjs | require=(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)... |
examples/react-router-redux/src/containers/routes/Index.js | stylesuxx/generator-react-webpack-redux | 'use strict';
import React from 'react';
import { login } from '../../actions/';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import LoginComponent from '../../components/LoginComponent';
require('styles/routes/Index.css');
class Index extends React.Component {
render() {
... |
node_modules/babel-core/node_modules/babel-generator/node_modules/babel-runtime/node_modules/core-js/client/library.js | mannyng/ceap | /**
* core-js 2.4.1
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* ยฉ 2016 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
source/js/components/Form.js | jlengstorf/cost-of-living | import React from 'react';
import classnames from 'classnames';
function InputList(props) {
return (
<ul className="cost-of-living__input-list">
{props.children}
</ul>
);
}
function NumberInput(props) {
return (
<li className="cost-of-living__input-item">
<label className="cost-of-living... |
test/PortalSpec.js | aparticka/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Portal from '../src/Portal';
describe('Portal', function () {
let instance;
let Overlay = React.createClass({
render() {
return (
<div>
<Portal ref='p' {...this.props}>{this.props.overlay}</Portal>... |
app/javascript/mastodon/features/ui/components/navigation_panel.js | kirakiratter/mastodon | import React from 'react';
import { NavLink, withRouter } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
import { profile_directory, showTrends } from 'mastodon/initial_state';
import NotificationsCounterIcon from './notifications_counter_icon';
impo... |
source/PhoneInputWithCountry.js | halt-hammerzeit/react-phone-number-input | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import InputSmart from './InputSmart'
import InputBasic from './InputBasic'
import { CountrySelectWithIcon as CountrySelect } from './CountrySelect'
import Flag from './Flag'
import InternationalIcon from './Internationa... |
ajax/libs/rxjs/2.3.10/rx.all.js | SpencerCDixon/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... |
packages/react-scripts/fixtures/kitchensink/src/features/env/FileEnvVariables.js | Place1/create-react-app-typescript | /**
* 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... |
app/javascript/mastodon/features/ui/components/modal_root.js | Chronister/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Base from '../../../components/modal_root';
import BundleContainer from '../containers/bundle_container';
import BundleModalError from './bundle_modal_error';
import ModalLoading from './modal_loading';
import ActionsModal from './actions_modal';
imp... |
code/workspaces/web-app/src/components/common/typography/ResourceInfoSpan.js | NERC-CEH/datalab | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles(theme => ({
root: {
fontWeight: 200,
letterSpacing: '0.05em',
color: theme.typography.body2.color,
textTransform: 'uppercase',
},
}));
const ResourceInfoSpan = ({ className = '', children... |
src/svg-icons/action/compare-arrows.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCompareArrows = (props) => (
<SvgIcon {...props}>
<path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z"/>
</SvgIcon>
);
ActionCompareArrows = pure(ActionCompareArrows);
Acti... |
ajax/libs/rxjs/2.2.27/rx.compat.js | brix/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... |
examples/huge-apps/routes/Course/components/Nav.js | BerkeleyTrue/react-router | import React from 'react'
import { Link } from 'react-router'
const styles = {}
styles.nav = {
borderBottom: '1px solid #aaa'
}
styles.link = {
display: 'inline-block',
padding: 10,
textDecoration: 'none'
}
styles.activeLink = {
...styles.link,
color: 'red'
}
class Nav extends React.Component {
rende... |
src/svg-icons/toggle/indeterminate-check-box.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleIndeterminateCheckBox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"/>
</SvgIcon>
);
ToggleIndeterminateCheck... |
src/svg-icons/av/recent-actors.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRecentActors = (props) => (
<SvgIcon {...props}>
<path d="M21 5v14h2V5h-2zm-4 14h2V5h-2v14zM14 5H2c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM8 7.75c1.24 0 2.25 1.01 2.25 2.25S9.... |
js/react-components/components/CategoryList.js | JACooper/Forge-client | import React from 'react';
class CategoryList extends React.Component {
constructor(props) {
super(props);
this.setActive = this.setActive.bind(this);
this.addCategory = this.addCategory.bind(this);
this.state = {
newCategoryName: '',
};
}
componentWillMount() {
this.props.getCat... |
app/containers/HomePage/index.js | rodrigoTrespalacios/project-bank | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a neccessity for you then you can refactor it and remove
* the ... |
src/parser/druid/restoration/CONFIG.js | FaideWW/WoWAnalyzer | import React from 'react';
import { Yajinni, blazyb } from 'CONTRIBUTORS';
import retryingPromise from 'common/retryingPromise';
import SPECS from 'game/SPECS';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-t... |
src/containers/LoseBillAnalysis/ReasonAnalysis/LosePercentChart.js | UncleYee/crm-ui | import React from 'react';
import {mutilColors} from 'utils/mutilColors';
import Highcharts from 'highcharts';
const styles = {
root: {
marginTop: 10,
marginBottom: 10
},
graph: {
height: 450,
width: 950,
margin: '0 auto'
}
};
const getConfig = (months, data) => {
return {
credits: {... |
packages/ringcentral-widgets-docs/src/app/pages/Styles/Buttons/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import classnames from 'classnames';
import PrimaryButtonSpecs from '../../../assets/images/primary_button_specs.svg';
import PrimaryButtonPopupSpecs from '../../../assets/images/primary_button_popup_specs.svg';
import primaryButtonPageExample from '../../../assets/images/primary_button_in_pa... |
npm-react-codemod/transforms/utils/ReactUtils.js | Jericho25/react | /**
* 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.
*
*/
/*eslint-disa... |
tests/lib/rules/indent-legacy.js | Trott/eslint | /**
* @fileoverview This option sets a specific tab width for your code
* @author Dmitriy Shekhovtsov
* @author Gyandeep Singh
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------... |
source/client/components/Footer.js | achobanov/ReactJS-Fundamentals-lab | import React from 'react';
import { Link } from 'react-router';
import MovieActions from '../actions/MovieActions';
import MovieStore from '../stores/MovieStore';
export default class Footer extends React.Component {
constructor(props) {
super(props);
this.state = MovieStore.getState();... |
src/features/toolbar/toolbar.container.js | itayJoseph/zeekit-practical-exam | import React, { Component } from 'react';
import { Input, Button } from 'semantic-ui-react';
import {connect} from 'react-redux';
import {SEARCH} from './actions';
import { browserHistory } from 'react-router';
const styles = {
input: {
marginRight: '5px',
},
toolbar: {
width: '100%'
}
}... |
Examples/UIExplorer/LayoutEventsExample.js | apprennet/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,
... |
app/javascript/mastodon/features/lists/index.js | Nyoho/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compo... |
src/svg-icons/device/signal-cellular-connected-no-internet-3-bar.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet3Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M17 22V7L2 22h15zm3-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/>
</SvgIcon>
);
Devic... |
app/js/__tests__/chatmessage-bot.js | jaydurant/GetCarrot | jest.unmock('../components/chatmessage-bot');
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import ChatMessageBot from '../components/chatmessage-bot';
const fields = {
text: 'test-text'
};
describe('ChatMessageBot', () => {
const renderer = TestUtils.createRenderer();
renderer.rende... |
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/InputGroup.js | brett-harvey/Smart-Contracts | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import classNames from 'classnames';
import React from 'react';
import createWithBsPrefix... |
src/components/Sidebar/Author/Author.js | Amine-H/Amine-H.github.io | // @flow strict
import React from 'react';
import { withPrefix, Link } from 'gatsby';
import styles from './Author.module.scss';
type Props = {
author: {
name: string,
bio: string,
photo: string
},
isIndex: ?boolean
};
const Author = ({ author, isIndex }: Props) => (
<div className={styles['author... |
ajax/libs/thorax/2.2.1/thorax-combined.js | whardier/cdnjs | /*!
* jQuery JavaScript Library v1.9.0
* 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-1-14
*/
(function( window, undefined ) {
"use strict";... |
src/components/editor/languageSwitch.js | Q42/CT-3000 | import React from 'react';
import { Link } from 'react-router-dom'
import TranslationStore from '../../stores/translation';
export default class LanguageSwitch extends React.Component {
constructor(props) {
super(props);
this.state = {
language: TranslationStore.language,
languages: Translation... |
app/components/model/lib/Model.js | river-lee/react-group | 'use strict';
import React, { Component } from 'react';
import classNames from '../../../utils/classNames';
import './Model.scss';
export default class Model extends Component {
render(){
let { show } = this.props;
document.documentElement.style.overflowY=show?'hidden':'auto';
//alert(document.documentEle... |
Inspector/js/app.js | calabash/WebDriverAgent | /**
* 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... |
ajax/libs/raven.js/2.2.1/raven.js | redmunds/cdnjs | /*! Raven.js 2.2.1 (639131b) | github.com/getsentry/raven-js */
/*
* Includes TraceKit
* https://github.com/getsentry/TraceKit
*
* Copyright 2016 Matt Robenolt and other contributors
* Released under the BSD license
* https://github.com/getsentry/raven-js/blob/master/LICENSE
*
*/
(function(f){if(typeof export... |
ajax/libs/zxcvbn/1.0/zxcvbn.min.js | KOLANICH/cdnjs | (function(){var e,t,i,n,r,s,o,a,l,c,h,u,d,p,m,f,g,y,v,b,w;h=function(e){var t,i;i=[];for(t in e)i.push(t);return 0===i.length},d=function(e,t){return e.push.apply(e,t)},b=function(e,t){var i,n,r,s,o;for(s=e.split(""),o=[],n=0,r=s.length;r>n;n++)i=s[n],o.push(t[i]||i);return o.join("")},f=function(e){var t,i,n,r;for(i=[... |
docs/src/app/components/pages/components/SvgIcon/ExampleSimple.js | barakmitz/material-ui | import React from 'react';
import {blue500, red500, greenA200} from 'material-ui/styles/colors';
import SvgIcon from 'material-ui/SvgIcon';
const iconStyles = {
marginRight: 24,
};
const HomeIcon = (props) => (
<SvgIcon {...props}>
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" />
</SvgIcon>
);
const SvgIco... |
entry_types/scrolled/package/src/frontend/ImageStructuredData.js | tf/pageflow | import React from 'react';
import {ensureProtocol} from './utils/urls';
import {useEntryMetadata} from '../entryState';
import {StructuredData} from './StructuredData';
export function ImageStructuredData({file}) {
const entryMedadata = useEntryMetadata();
const data = {
'@context': 'http://schema.org',
... |
src/js/components/icons/base/SchedulePlay.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
frontend/node_modules/recharts/src/shape/Dot.js | justdotJS/rowboat | /**
* @fileOverview Dot
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import pureRender from '../util/PureRender';
import { getPresentationAttributes, filterEventAttributes } from '../util/ReactUtils';
@pureRender
class Dot extends Component {
... |
ajax/libs/material-ui/5.0.0-alpha.33/modern/Grow/Grow.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import * as React from 'react';
import PropTypes from 'prop-types';
import { elementAcceptingRef } from '@material-ui/utils';
import { Transition } from 'react-... |
app/components/Editor.js | ARMataTeam/ARMata | // @flow
import React, { Component } from 'react';
import AceEditor from 'react-ace';
import brace from 'brace'; // eslint-disable-line no-unused-vars
import json from 'brace/mode/json'; // eslint-disable-line no-unused-vars
import monokai from 'brace/theme/monokai'; // eslint-disable-line no-unused-vars
export defau... |
ajax/libs/yui/3.6.0/datatable-core/datatable-core.js | IonicaBizauKitchen/cdnjs | YUI.add('datatable-core', function(Y) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isObject,
... |
app/javascript/mastodon/features/compose/index.js | narabo/mastodon | import React from 'react';
import ComposeFormContainer from './containers/compose_form_container';
import UploadFormContainer from './containers/upload_form_container';
import NavigationContainer from './containers/navigation_container';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import ... |
webui/src/components/Shared/Tooltip.js | acetcom/nextepc | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styled from 'styled-components';
// ============================
const tooltipArrowHeight = 6;
// const TooltipWrapperButton = styled.button`
// display: inline-block;
// outline: none;
// border: none;
// background: none;
... |
client/modules/DangNhap/DangNhapPages.js | tranphong001/BIGVN | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { facebookLogin, googleLogin, loginUser } from '../App/AppActions';
import { getUserName } from '../App/AppReducer';
import styles from '../../main.css';
import grid from '../../grid.css';
class D... |
ajax/libs/6to5/2.3.2/browser-polyfill.js | tonytomov/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... |
src/TimePicker/TimePicker.spec.js | hai-cea/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 />', () =... |
engage/static/opendatasites/js/jquery.js | Suite5/DataColibri | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
src/layout/Tabs.js | HarvestProfit/harvest-profit-ui | import PropTypes from 'prop-types';
import React from 'react';
const Tabs = (props) => {
const {
activeTab,
className,
tag: Tag,
...attributes
} = props;
return (
<Tag activeTab={activeTab} className={`tabs ${className}`} {...attributes} />
);
};
Tabs.propTypes = {
activeTab: PropTypes.... |
app/javascript/mastodon/components/__tests__/display_name-test.js | danhunsaker/mastodon | import React from 'react';
import renderer from 'react-test-renderer';
import { fromJS } from 'immutable';
import DisplayName from '../display_name';
describe('<DisplayName />', () => {
it('renders display name + account name', () => {
const account = fromJS({
username: 'bar',
acct: 'bar@baz',
... |
app/containers/LanguageProvider/index.js | markmadej/foosball-ref | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
src/user/screens/starred-repository-list.screen.js | Antoine38660/git-point | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { FlatList } from 'react-native';
import { getStarredRepositories } from 'user';
import {
ViewContainer,
RepositoryListItem,
LoadingRepositoryListItem,
} from 'components';
const ... |
src/parser/shaman/elemental/CHANGELOG.js | fyruna/WoWAnalyzer | import { niseko, HawkCorrigan } from 'CONTRIBUTORS';
import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
export default [
{
date: new Date('2019-05-06'),
changes: <>Added support for the damage part of <SpellLink id={SPELLS.IGNEOUS_POTENTIAL.id} />.</>,
... |
ajax/libs/angular-google-maps/2.0.13/angular-google-maps_dev_mapped.js | joeylakay/cdnjs | /*! angular-google-maps 2.0.13 2015-02-25
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
;
(function( window, angular, undefined ){
'use strict';
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, ... |
lib/components/user/back-link.js | opentripplanner/otp-react-redux | import React from 'react'
import { Button } from 'react-bootstrap'
import { FormattedMessage } from 'react-intl'
import styled from 'styled-components'
import { navigateBack } from '../../util/ui'
import { IconWithMargin } from './styled'
const StyledButton = styled(Button)`
display: block;
padding: 0;
`
/**
*... |
src/pages/Preferences/User/ChangeInfo.js | Kitware/HPCCloud | import React from 'react';
import PropTypes from 'prop-types';
import get from 'mout/src/object/get';
import { connect } from 'react-redux';
import style from 'HPCCloudStyle/ItemEditor.mcss';
import ButtonBar from '../../../panels/ButtonBar';
import getNetworkError from '../../../utils/getNetworkError';
import * as... |
ajax/libs/js-data/1.5.0/js-data-debug.js | WebReflection/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file dist/js-data-debug.js
* @version 1.5.0 - Homepage <http://www.js-data.io/>
* @copyright (c) 2014 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Data store.
*/
!function(e){if("object"==typeof exports&&"undefine... |
src/svg-icons/action/system-update-alt.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSystemUpdateAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.