path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/Parser/Hunter/BeastMastery/Modules/Talents/AMurderOfCrows.js | enragednuke/WoWAnalyzer | import React from 'react';
import Combatants from 'Parser/Core/Modules/Combatants';
import Analyzer from 'Parser/Core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellUsable from 'Parser/Core/Modules/SpellUsable';
import SPECS from 'common/SPECS';
import StatisticBox from 'Main/StatisticBox';
import SpellIco... |
src/components/Root.js | great-design-and-systems/cataloguing-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import routes from '../routes';
export default class Root extends Component {
render() {
const { store, history } = this.props;
return (
<Provide... |
vendor/firebug-lite/src/firebug-lite-debug.js | Moykn/lodash | (function(){
/*!*************************************************************
*
* Firebug Lite 1.4.0
*
* Copyright (c) 2007, Parakey Inc.
* Released under BSD license.
* More information: http://getfirebug.com/firebuglite
*
**************************************************************/
/*!
... |
src/components/Messages.js | blrubin/react-chat | import React from 'react';
import Message from './Message';
class Messages extends React.Component {
componentDidUpdate() {
const messagesContainer = document.getElementById('messages');
messagesContainer.scrollTop = messagesContainer.scrollHeight;
}
render() {
const messages = this.props.messages... |
src/modules/AppRouter.js | databake/BankAccount | /*eslint-disable react/prop-types*/
import React from 'react';
import CounterViewContainer from './counter/CounterViewContainer';
import ColorViewContainer from './colors/ColorViewContainer';
/**
* AppRouter is responsible for mapping a navigator scene to a view
*/
export default function AppRouter(props) {
const... |
ajax/libs/jqwidgets/12.0.2/jqwidgets-react-tsx/jqxgrid/react_jqxgrid.umd.min.js | cdnjs/cdnjs | require("../../jqwidgets/jqxcore"),require("../../jqwidgets/jqxdata"),require("../../jqwidgets/jqxdata.export"),require("../../jqwidgets/jqxbuttons"),require("../../jqwidgets/jqxbuttongroup"),require("../../jqwidgets/jqxscrollbar"),require("../../jqwidgets/jqxmenu"),require("../../jqwidgets/jqxlistbox"),require("../../... |
packages/material-ui-icons/src/ExposureZero.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z" /><path d="M16.14 12.5c0 1-.1 1.85-.3 2.55-.2.7-.48 1.27-.83 1.7-.36.44-.79.75-1.3.95-.51.2-1.07.3-1.7.3-.62 0-1.18-.1... |
templates/rubix/rubix-bootstrap/src/InputGroup.js | jeffthemaximum/jeffline | import InputGroup from 'react-bootstrap/lib/InputGroup';
export default InputGroup;
|
src/svg-icons/maps/layers-clear.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLayersClear = (props) => (
<SvgIcon {...props}>
<path d="M19.81 14.99l1.19-.92-1.43-1.43-1.19.92 1.43 1.43zm-.45-4.72L21 9l-9-7-2.91 2.27 7.87 7.88 2.4-1.88zM3.27 1L2 2.27l4.22 4.22L3 9l1.63 1.27L12 16l2.1-... |
src/list/action-bar/index.js | KleeGroup/focus-components | // Dependencies
import PropTypes from 'prop-types';
import React from 'react';
import builder from 'focus-core/component/builder';
import reduce from 'lodash/collection/reduce';
// Components
import Dropdown from '../../components/dropdown';
import { component as ActionContextual } from '../action-contextual';
import ... |
app/components/ToolsRelatedTool/index.js | BeautifulTrouble/beautifulrising-client | /**
*
* ToolsRelatedTool
*
*/
import React from 'react';
import styled from 'styled-components';
import { Link } from 'react-router';
import { injectIntl } from 'react-intl';
import { getToolTypeColor } from 'components/CommonComponents';
const Container = styled.div`
text-align: ${props=>props.lang==='ar' ? 'right... |
docs/src/GettingStartedPage.js | dongtong/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
import Anchor from './Anchor';
export default class Page extends React.Component {
render() {
return (
<div>
<NavMa... |
ajax/libs/x-editable/1.4.4/bootstrap-editable/js/bootstrap-editable.js | potomak/cdnjs | /*! X-editable - v1.4.4
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to for... |
src/svg-icons/image/color-lens.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageColorLens = (props) => (
<SvgIcon {...props}>
<path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4... |
src/templates/portfolio-work.js | saintasia/portfolio | import React from 'react';
import Link from 'gatsby-link';
import SEO from "../components/seo"
import { FaArrowLeft } from 'react-icons/fa';
import Fade from 'react-reveal/Fade';
export default function Template({data}) {
const work = data.markdownRemark;
return (
<>
<SEO title={`Anastasia K. Digital Cr... |
modules/RouteUtils.js | Nedomas/react-router | import React from 'react'
import warning from 'warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName, p... |
public/admin/libs/jquery/jquery.min.js | olegmifle/newyorkfitspo | !function(e,t){function n(e){var t=e.length,n=ce.type(e);return ce.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=ke[e]={};return ce.each(e.match(pe)||[],function(e,n){t[n]=!0}),t}function i(e,n,r,i){if(ce.acceptData(e)){var o,a,s=ce.expan... |
blueocean-material-icons/src/js/components/svg-icons/image/flash-off.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageFlashOff = (props) => (
<SvgIcon {...props}>
<path d="M3.27 3L2 4.27l5 5V13h3v9l3.58-6.14L17.73 20 19 18.73 3.27 3zM17 10h-4l4-8H7v2.18l8.46 8.46L17 10z"/>
</SvgIcon>
);
ImageFlashOff.displayName = 'ImageFlashOff';
ImageFlashOff.muiName... |
node_modules/react-bootstrap/es/PagerItem.js | soniacq/LearningReact | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
ajax/libs/forerunnerdb/1.3.633/fdb-all.js | pombredanne/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/angular.js/0.9.3/angular-scenario.min.js | fatso83/cdnjs | /*!
* 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.
... |
tools/copy.js | mithundas79/react-starter-kit | /**
* React Starter Kit (http://www.reactstarterkit.com/)
*
* Copyright © 2014-2015 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 path from 'path';
import replace from 'replace';
imp... |
website/src/components/WrapRootElement.js | romelperez/arwes | import React from 'react';
import PropTypes from 'prop-types';
import { MDXProvider } from '@mdx-js/react';
import { ArwesThemeProvider } from '@repository/packages/core';
import { Code } from './Code';
import { Sandbox } from './Sandbox';
const MDEPre = ({ children }) => {
const language = (children.props.classNa... |
src/routes/User/routes/Register/index.js | weedz/reactcms | import React from 'react';
import {ReduxWrapper} from '../../../../wrappers';
import { newUser } from '../../../../actions/authActions';
class Register extends React.Component {
constructor() {
super();
this.state = {
username: '',
password: '',
password2: '',
... |
packages/material-ui/src/CardActions/CardActions.js | allanalexandre/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import '../Button'; // So we don't have any override priority issue.
export const styles = {
/* Styles applied to the root element. */
root: {
display: 'flex',
alignItems: ... |
ajax/libs/6to5/1.12.23/browser-polyfill.js | jasonpang/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/js/components/icons/base/Storage.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... |
src/svg-icons/content/unarchive.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentUnarchive = (props) => (
<SvgIcon {...props}>
<path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.4... |
src/components/app/Splash/index.js | RelativeMedia/rm-frontend | import React from 'react'
import PropTypes from 'prop-types'
import Scroll from 'react-scroll'
const Link = Scroll.Link
import './splash.scss'
const Splash = ({ id }) => (<div className='SplashComponent'>
<div id={'intro-splash-' + id}>
<div id='intro-body'>
<div className='container'>
<div classN... |
plugins/Files/js/index.js | NebulousLabs/New-Sia-UI | import React from 'react'
import ReactDOM from 'react-dom'
import createSagaMiddleware from 'redux-saga'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import rootReducer from './reducers/index.js'
import rootSaga from './sagas/index.js'
import App from './containers/app.js'... |
src/index.js | awi2017-option1group3/Prello-Client | /* eslint-disable no-undef,react/jsx-filename-extension,import/first */
// Load the environment variables from the potential .env file
require('dotenv').config()
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import 'antd/dist/antd.css'
import registerServiceWorke... |
packages/react-scripts/template/src/App.js | Antontsyk/react_vk | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import logo from './logo.svg';
import $ from 'jquery';
import './App.css';
/*class App2 extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-... |
src/initial-state.js | iam4x/react-slick | var initialState = {
animating: false,
dragging: false,
autoPlayTimer: null,
currentDirection: 0,
currentLeft: null,
currentSlide: 0,
direction: 1,
// listWidth: null,
// listHeight: null,
// loadIndex: 0,
slideCount: null,
slideWidth: null,
// sliding: false,
// ... |
src/components/MediaList/PreviewMediaAction.js | u-wave/web | import React from 'react';
import PropTypes from 'prop-types';
import { useDispatch } from 'react-redux';
import PreviewIcon from '@mui/icons-material/Preview';
import { openPreviewMediaDialog } from '../../actions/DialogActionCreators';
import MediaAction from './MediaAction';
const {
useCallback,
} = React;
funct... |
app/javascript/mastodon/features/blocks/index.js | mimumemo/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import PropType... |
ajax/libs/jquery-footable/0.1.0/js/footable.js | laffer1/cdnjs | /*!
* FooTable - Awesome Responsive Tables
* http://themergency.com/footable
*
* Requires jQuery - http://jquery.com/
*
* Copyright 2012 Steven Usher & Brad Vincent
* Released under the MIT license
* You are free to use FooTable in commercial projects as long as this copyright header is left intact.
*
* Date... |
node_modules/react-native-svg/elements/Ellipse.js | 15chrjef/mobileHackerNews | import React from 'react';
import createReactNativeComponentClass from 'react/lib/createReactNativeComponentClass';
import Shape from './Shape';
import {pathProps, numberProp} from '../lib/props';
import {EllipseAttributes} from '../lib/attributes';
class Ellipse extends Shape{
static displayName = 'Ellipse';
... |
ajax/libs/dc/2.0.0-beta.31/dc.js | hare1039/cdnjs | /*!
* dc 2.0.0-beta.31
* http://dc-js.github.io/dc.js/
* Copyright 2012-2016 Nick Zhu & the dc.js Developers
* https://github.com/dc-js/dc.js/blob/master/AUTHORS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... |
components/Animate/Animate.story.js | NGMarmaduke/bloom | import React, { Component } from 'react';
import keyMirror from 'key-mirror';
import { storiesOf, linkTo } from '@storybook/react';
import { withKnobs, select } from '@storybook/addon-knobs';
import Circle from './Circle';
import Sunrise from './Sunrise';
import Counter from './Counter';
import GraphOrnament from './G... |
src/views/components/logos/loading.js | thomkrupa/towatch | /* eslint-disable */
import React from 'react';
export default function LoadingAnimation() {
return (
<svg width='30px' height='30px' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="uil-default"><rect x="0" y="0" width="100" height="100" fill="none" class="bk"></rec... |
ajax/libs/muicss/0.9.27/react/mui-react.min.js | ahocevar/cdnjs | !function(e){var t=e.babelHelpers={};t.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t.createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.definePro... |
fluxible-router/components/Html.js | ybbkrishna/flux-examples | /**
* Copyright 2014, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
import ApplicationStore from '../stores/ApplicationStore';
class HtmlComponent extends React.Component {
render() {
return (
<html>
... |
files/parsleyjs/2.2.0-rc3/parsley.js | MadhavBitra/jsdelivr | /*!
* Parsley.js
* Version 2.3.0-rc3 - built Wed, Oct 28th 2015, 8:53 pm
* http://parsleyjs.org
* Guillaume Potier - <guillaume@wisembly.com>
* Marc-Andre Lafortune - <petroselinum@marc-andre.ca>
* MIT Licensed
*/
// The source code below is generated by babel as
// Parsley is written in ECMAScript 6
//
(function (glo... |
app/components/CommentsList.js | roberthovhannsiyan/react-js-lesson | import React from 'react';
import Comment from './Comment.js';
import CommentsTitle from './CommentsTitle.js';
import CommentsToggle from './CommentsToggle.js';
import ReactMixin from 'react-mixin';
import ReactFireMixin from 'reactfire';
import firebase from './firebase';
export default class CommentsList ext... |
src/common/containers/App.js | patrik-piskay/universal-react-boilerplate | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello World</h1>
);
}
} |
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js | cluk3/SkyProgrammingTest | import React from 'react'
import { reduxForm } from 'redux-form'
export const fields = []
const validate = (values) => {
const errors = {}
return errors
}
type Props = {
handleSubmit: Function,
fields: Object,
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
defaultProps = ... |
src/main.native.js | mikebarkmin/react-to-everything | import React from 'react';
import { Provider } from 'react-redux';
import store from './store/store';
import App from './containers/app/App';
export default class Main extends React.Component {
render() {
return (
<Provider store={store}>
<App />
</Provider>
);
}
}
|
app/javascript/mastodon/containers/domain_container.js | MitarashiDango/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { blockDomain, unblockDomain } from '../actions/domain_blocks';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Domain from '../components/domain';
import { openModal } from '../actions/modal';
const messages = d... |
src/icons/NotInterestedIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class NotInterestedIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.84 0-16-7.16-16-16 0-3.... |
src/svg-icons/image/panorama-horizontal.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanoramaHorizontal = (props) => (
<SvgIcon {...props}>
<path d="M20 6.54v10.91c-2.6-.77-5.28-1.16-8-1.16-2.72 0-5.4.39-8 1.16V6.54c2.6.77 5.28 1.16 8 1.16 2.72.01 5.4-.38 8-1.16M21.43 4c-.1 0-.2.02-.31.06C... |
actor-apps/app-web/src/app/components/JoinGroup.react.js | ketoo/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import DialogActionCreators from 'actions/DialogActionCreators';
import JoinGroupActions from 'actions/JoinGroupActions';
import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line
class JoinGroup extends React.Component {
st... |
example/src/index.js | FoundersFactory/react-speech-recognition | import React from 'react';
import ReactDOM from 'react-dom';
import Dictaphones from './Dictaphones';
ReactDOM.render(
<React.StrictMode>
<Dictaphones />
</React.StrictMode>,
document.getElementById('root')
);
|
Examples/src/components/AbstractComponent.js | sitb-software/ReactNativeComponents | import React, { Component } from 'react';
import { ListView } from 'react-native';
/**
* @author 田尘殇Sean(sean.snow@live.com)
* @date 16/5/7
*/
class AbstractComponent extends Component {
constructor(props, dataSource: Array) {
super(props);
this.ds = new ListView.DataSource({ rowHasChanged: (r1, r2) => r... |
src/components/NavbarLogo.js | FilmonFeMe/coloreyes | import React, { Component } from 'react';
import * as d3 from "d3";
import { Link } from 'react-router-dom';
class Logo extends Component {
render() {
return (
<svg width="64" height="64">
</svg>
)
};
componentDidMount() {
// set svg variable; enable reference for scaling
let s... |
src/Result/Navbar.js | cityofsurrey/polltal-app | import React from 'react'
import { Link } from 'react-router-dom'
import PropTypes from 'prop-types'
import Radium from 'radium'
import theme from 'theme'
const styles = {
icon: {
color: theme.color.grey.faded,
},
links: {
display: 'flex',
justifyContent: 'space-between',
},
link: {
color: t... |
packages/slate-react/test/rendering/fixtures/custom-inline.js | 6174/slate | /** @jsx h */
import React from 'react'
import h from '../../helpers/h'
export const schema = {
nodes: {
link: (props) => {
return (
React.createElement('a', { href: props.node.data.get('href'), ...props.attributes }, props.children)
)
}
}
}
export const state = (
<state>
<docum... |
files/places.js/1.4.12/places.js | as-com/jsdelivr | /*! 1.4.12 | © Algolia | github.com/algolia/places */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object'... |
packages/material-ui-icons/src/AccessibleOutlined.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><circle cx="12" cy="4" r="2" /><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75... |
src/Paper/Paper.spec.js | kittyjumbalaya/material-components-web | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Paper from './Paper';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Paper />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {context: {mu... |
ajax/libs/cleave.js/0.7.20/cleave-angular.js | maruilian11/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["Cleave"] = factory();
else
root["Cleave... |
src/templates/about-page.js | brickandgreens/bricks-and-greens-gatsby | import React from 'react';
export default ({ data }) => {
const { markdownRemark: post } = data;
return (
<section className="section section--gradient">
<div className="container">
<div className="columns">
<div className="column is-7">
<div className="section">
... |
lib/components/swatches/SwatchesColor.js | akx/react-color | 'use strict';
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProp... |
templates/presentational/COMPONENT_NAME.js | CVarisco/create-component-app | import React from 'react';
import PropTypes from 'prop-types';
const COMPONENT_NAME = () => (
<div className="COMPONENT_NAME">
COMPONENT_NAME
</div>
);
COMPONENT_NAME.propTypes = {}
export default COMPONENT_NAME;
|
app/javascript/mastodon/components/domain.js | rutan/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
const messages = defineMessages({
unblockDomain: { id: 'account.unblock_domain', default... |
src/components/ListCol/ListColCate/ListColCate.js | hahoocn/hahoo-admin | import React from 'react';
import styles from './ListColCate.css';
class ListColCate extends React.Component {
static propTypes = {
children: React.PropTypes.node,
className: React.PropTypes.string
}
state = {}
render() {
const { children, className, ...rest } = this.props;
return (
<di... |
src/components/Search/Search.js | nikhilfusion/substitutionApp | import React, { Component } from 'react';
import SearchResultList from './SeachResultList';
import './Search.css';
class Search extends Component {
constructor(props) {
super(props);
this.state = {
randomState: '',
};
}
render() {
return (
<div className="searchPageContainer">
... |
src/components/Controls/Controls.js | stefanwille/react-gameoflife | import React from 'react'
import {connect} from 'react-redux'
import './Controls.scss'
import {play, pause, step, randomize, clear} from 'redux/modules/actionCreators'
let Controls = ({playing, speed, onPlay, onPause, onStep, onRandomize, onClear}) => {
const handlePlayOnClick = (event) => onPlay(event, speed)
c... |
src/svg-icons/file/cloud-done.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudDone = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96... |
blueocean-material-icons/src/js/components/svg-icons/navigation-arrow-drop-right.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../SvgIcon';
const NavigationArrowDropRight = (props) => (
<SvgIcon {...props}>
<path d="M9.5,7l5,5l-5,5V7z" />
</SvgIcon>
);
NavigationArrowDropRight.displayName = 'NavigationArrowDropRight';
NavigationArrowDropRight.muiName = 'SvgIcon';
export default Navigat... |
redux/js/todo/containers/__tests__/RouteVisibleTodolist.js | quiaro/js-playground | import React from 'react';
import { shallow, mount } from 'enzyme';
import RouteVisibleTodoList from '../RouteVisibleTodoList';
import FetchTodosError from '../../components/errors/FetchTodosError';
import { ACTIONS } from '../../actions/constants';
import Store from '../../__mocks__/store'
import Router from '../../_... |
source/component/hintMessage.js | togayther/react-native-cnblogs | import React, { Component } from 'react';
import {
View,
Text
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import { CommonStyles, ComponentStyles, StyleConfig } from '../style';
import PureRenderMixin from 'react-addons-pure-render-mixin';
class HintMessage extends Component {
co... |
src/wrappers/withMatrixClient.js | aperezdc/matrix-react-sdk | /*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
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 applica... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/DropdownMenu.js | Akkuma/npm-cache-benchmark | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _Array$from from 'babel-runtime/core-js/array/from';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtim... |
CompositeUi/src/views/component/__tests__/Button.js | kreta/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/yui/3.10.2/event-focus/event-focus-debug.js | legomushroom/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
examples/todomvc/containers/App.js | Creamov/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App extends Component {
render() {
return (
<Provider redux={... |
addons/knobs/src/KnobManager.js | nfl/react-storybook | /* eslint no-underscore-dangle: 0 */
import React from 'react';
import deepEqual from 'deep-equal';
import WrapStory from './components/WrapStory';
import KnobStore from './KnobStore';
// This is used by _mayCallChannel to determine how long to wait to before triggering a panel update
const PANEL_UPDATE_INTERVAL = 40... |
examples/todomvc/test/components/Footer.spec.js | edge/redux | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import Footer from '../../components/Footer'
import { SHOW_ALL, SHOW_ACTIVE } from '../../constants/TodoFilters'
function setup(propOverrides) {
const props = Object.assign({
completedCount: 0,
activeCount: ... |
src/index.js | madeMeCraier/gallery-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
fields/types/textarea/TextareaField.js | joerter/keystone | import Field from '../Field';
import React from 'react';
module.exports = Field.create({
displayName: 'TextareaField',
renderField () {
var styles = {
height: this.props.height,
};
return <textarea name={this.props.path} styles={styles} ref="focusTarget" value={this.props.value} onChange={this.valueChanged}... |
Samples/Provisioning.Cloud.Workflow/Provisioning.Cloud.WorkflowWeb/Scripts/jquery-1.9.1.js | sandhyagaddipati/PnPSamples | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
ajax/libs/material-ui/4.9.6/BottomNavigationAction/BottomNavigationAction.min.js | cdnjs/cdnjs | "use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.styles=void 0;var _extends2=_interopRequireDefault(require("@bab... |
app/tests/components/MainSection-test.js | scotteggs/question_flow | // import React from 'react';
// import ReactTestUtils from 'react-addons-test-utils';
// import expect from 'expect';
// import { wrap } from 'react-stateless-wrapper';
// import MainSection from 'components/MainSection';
// import TopicItem from 'components/TopicItem';
// const WrappedMainSection = wrap(MainSection)... |
src/components/PageContainer.js | pekkis/diktaattoriporssi-2016 | import React from 'react';
export default function PageContainer(props) {
return (
<section className="pure-g" id={props.id}>
{props.children}
</section>
);
};
|
project/react-hooks-ant4-ts/src/__test__/component/dom/index.js | FFF-team/generator-earth | import React from 'react';
class Index extends React.Component {
constructor(props) {
super(props);
this.state = {
}
}
componentDidMount() {
let script = document.createElement('script');
script.id = 'dom';
// script.src = url;
document.body.appendChild(script);
}
render() {
return... |
assets/js/vendor/ZeroClipboard.Core.js | chancesmith/Email-Signature-Generator | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2009-2015 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.3.0-beta.1
*/
(function(window, undefined) {
"... |
src/site/components/grid/GridItem.js | tscok/home | import React from 'react';
import purebem from 'purebem';
const block = purebem.of('grid');
const GridItem = React.createClass({
render() {
return (
<div className={ block('item') }>
{ this.props.children }
</div>
);
}
});
export default GridItem;
|
ajax/libs/babel-polyfill/6.20.0/polyfill.js | him2him2/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... |
node_modules/react-widgets/test/index.js | Alex-Shilman/Drupal8Node | import 'es5-shim';
import React from 'react';
import * as widgetHelpers from '../src/util/widgetHelpers';
import globalize from 'globalize';
import config from '../src/util/configuration';
require('../src/localizers/globalize')(globalize)
//disable this particular optimization
sinon.stub(widgetHelpers, 'isFirstFocus... |
examples/dynamic-segments/app.js | nhunzaker/react-router | import React from 'react'
import { render } from 'react-dom'
import { Router, Route, Link, Redirect } from 'react-router'
import { createHistory, useBasename } from 'history'
const history = useBasename(createHistory)({
basename: '/dynamic-segments'
})
class App extends React.Component {
render() {
return (
... |
src/pages/Projects.js | karajrish/karajrish.github.io | import React from 'react';
import { Link } from 'react-router-dom';
import Main from '../layouts/Main';
import Cell from '../components/Projects/Cell';
import data from '../data/projects';
const Projects = () => (
<Main
title="Projects"
description="Learn about Rishabh Karajgi's projects."
>
<article... |
app/javascript/mastodon/features/followers/index.js | nonoz/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 {
fetchAccount,
fetchFollowers,
expandFollowers,
} from '../../actions/account... |
ajax/libs/angular.js/0.9.2/angular-scenario.js | Ranks/cdnjs | /*!
* 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.
... |
packages/fyndiq-icons/src/headset.js | fyndiq/fyndiq-ui | import React from 'react'
import SvgWrapper from './svg-wrapper'
const Headset = ({ className, color }) => (
<SvgWrapper className={className} viewBox="0 0 30 35">
<path
fill={color}
stroke="none"
d="M15 0A15 15 0 0 0 0 15v8.1a3.1 3.1 0 1 0 6.3 0v-5a3.1 3.1 0 0 0-3.8-3V15a12.5 12.5 0 0 1 25 0 3... |
ajax/libs/zeroclipboard/2.0.1/ZeroClipboard.js | jieter/cdnjs | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.0.1
*/
(function(window, undefined) {
"use strict";... |
src/components/Screens/Craft.js | devsal123/salm | import React from 'react'
import './Craft.css'
const Craft = () => {
return (
<div className="overlay-area">
<div id="craft-area" className="animated slideInUp" >
<div id="craft-area-right" className="animated slideInRight">
<div className="craft-content">
<div className="titl... |
frontend/App.js | tigerxjtu/njs | import React from 'react';
import Header from './Component/Header';
import Footer from './Component/Footer';
import TopicList from './Component/TopicList';
export default class App extends React.Component{
render(){
return (
<div className="container">
<Header />
{this.props.children? this.props.chi... |
app/javascript/mastodon/features/getting_started/index.js | mstdn-jp/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnLink from '../ui/components/column_link';
import ColumnSubheading from '../ui/components/column_subheading';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import Prop... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | fhqs/site | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
ajax/libs/video.js/5.0.0-rc.102/alt/video.novtt.js | honestree/cdnjs | /**
* @license
* Video.js 5.0.0-rc.102 <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>
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.export... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.