path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/components/dashboard/WidgetFrame.js | garden-aid/web-client | import React from 'react';
import './widget.frame.scss';
const WidgetFrame = ({ title, editable, children, onRemove }) => {
return (
<div className="dashboard-widget mdl-color--white mdl-shadow--2dp">
<div className="dashboard-widget_info">
<h2 className="dashboard-widget__info-title">{title}</h2>... |
ajax/libs/yui/3.8.0/simpleyui/simpleyui.js | aeharding/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI global namespace obj... |
tests/lib/rules/block-scoped-var.js | onurtemizkan/eslint | /**
* @fileoverview Tests for block-scoped-var rule
* @author Matt DuVall <http://www.mattduvall.com>
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const rule = requ... |
src/components/RoomUserList/index.js | u-wave/web | import cx from 'clsx';
import React from 'react';
import PropTypes from 'prop-types';
import { useVirtual } from 'react-virtual';
import RoomUserRow from './Row';
import GuestsRow from './GuestsRow';
const {
useRef,
} = React;
function estimateSize() {
return 40;
}
function RoomUserList({ className, users, guest... |
ajax/libs/ember-data.js/1.0.0-beta.8/ember-data.js | aferlazzo/cdnjs | /*!
* @overview Ember Data
* @copyright Copyright 2011-2014 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 1.0.0-beta.8.2a68c63a
*/
(function(global) {
var define, requireModule, require, requirejs;
(funct... |
src/Adress.js | icaropires/Interlogex | import React from 'react';
import { Link } from 'react-router-dom';
import { Grid,Icon, Tooltip } from 'react-mdl';
import 'mdi/css/materialdesignicons.min.css';
export default class Adress extends React.Component {
render(){
return (
<div className="contact-container-item">
<div className="home-s... |
imports/ui/components/folder.js | dklisiaris/grabber | import React from 'react';
import {Meteor} from 'meteor/meteor';
import {browserHistory} from 'react-router';
const _handleClick = (id) => {
browserHistory.push('/folders/' + id);
}
export const Folder = ({id, name}) => (
<div id={id} className="board" onClick={() => _handleClick(id)}>
<div className="inner">... |
renderer/components/Autopay/Autopay.js | LN-Zap/zap-desktop | import React from 'react'
import { ThemeProvider } from 'styled-components'
import { FormattedMessage } from 'react-intl'
import { autopay } from 'themes'
import { Panel, Heading } from 'components/UI'
import AutopayList from 'containers/Autopay/AutopayList'
import AutopayMerchantList from 'containers/Autopay/AutopayMe... |
src/containers/Races/index.js | matapang/virtualraceph2 | /*
*
* Races
*
*/
import React from 'react';
import styled from 'styled-components';
import AppLayout from '../../components/AppLayout';
import CardRaces from '../../components/CardRaces';
import raceRoutes from './routes';
export class Races extends React.Component { // eslint-disable-line react/prefer-stateles... |
src/index.js | recurza/task-timer | import React from 'react';
import { render } from 'react-dom';
import Main from './components/Main';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import reducer from './reducer';
let store = createStore(reducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION_... |
docs/src/Header.js | InsidersByte/react-markdown-renderer | import React from 'react';
import styled from 'styled-components';
const Root = styled.div`
width: 100%;
margin-bottom: 3.75rem;
`;
const TitleWrapper = styled.div`margin: 1.875rem 0;`;
const Title = styled.h1`
font-weight: normal;
font-size: 5.332em;
line-height: 1.1;
margin: 0;
margin-left: 1.5625rem... |
src/index.js | LaserWeb/LaserWeb4 | import React from 'react'
import { render } from 'react-dom'
import { compose, applyMiddleware, createStore } from 'redux';
import { Provider } from 'react-redux';
import { createLogger } from 'redux-logger';
import persistState, {mergePersistedState} from 'redux-localstorage'
import adapter from 'redux-localstorage/l... |
src/components/RepoDetailsController/RepoDetailsController.react.js | ricca509/geckboard_challenge | import React from 'react';
import ReposStore from '../../stores/ReposStore';
import ReposActions from '../../actions/ReposActions';
import RepoDetails from '../RepoDetails/RepoDetails.react.js';
class RepoDetailsController extends React.Component {
constructor (props) {
super(props);
this.state = {... |
docs/src/sections/ProgressBarSection.js | HPate-Riptide/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function ProgressBarSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
src/components/form/index.js | nai888/langua | import React from 'react'
import PropTypes from 'prop-types'
import styles from './form.module.sass'
const Form = ({ name, children }) => (
<form name={name} className={styles.form}>
{children}
</form>
)
Form.propTypes = {
name: PropTypes.string,
children: PropTypes.oneOfType([
PropTypes.string,
... |
app/javascript/mastodon/components/avatar.js | pointlessone/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class Avatar extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
size: PropType... |
components/DeviceFrame/VideoDeviceFrame.js | rdjpalmer/bloom | import PropTypes from 'prop-types';
import React from 'react';
import ReactVideo from 'react-html5video';
const VideoDeviceFrame = ({ children: source, deviceImage, css, ...rest }) => (
<div className={ css.root }>
<img
className={ css.frame }
src={ deviceImage }
role="presentation"
/>
... |
src/app/src/assets/utils/Table.js | istreight/eggbeatr | /**
* FILENAME: Table.js
* AUTHOR: Isaac Streight
* START DATE: May 31th, 2018
*
* This file contains the Table class, a utility class for
* table tags in the application.
*/
import React from 'react';
import PropTypes from 'prop-types';
import TableRow from 'utils/TableRow';
class Table extends Re... |
ajax/libs/css3pie/2.0beta1/PIE_IE678_uncompressed.js | nolsherry/cdnjs | /*
PIE: CSS3 rendering for IE
Version 2.0beta1
http://css3pie.com
Dual-licensed for use under the Apache License Version 2.0 or the General Public License (GPL) Version 2.
*/
(function( win, doc ) {
var PIE = win[ 'PIE' ] || ( win[ 'PIE' ] = {} );
/**
* Simple utility for merging objects
* @param {Object} obj1 Th... |
React/onSubmit/public/components/onSubmit.js | hugonasciutti/Exercises | import React from 'react';
class OnSubmit extends React.Component {
constructor(props) {
super(props)
this.state = {
verificar: false,
css: ''
}
this.css = ''
}
hasError(e) {
e.preventDefault()
console.log('this.state.verificar: ', this.state.verificar);
if(this.state.ver... |
dispatch/static/manager/src/js/components/modals/ImageManager/index.js | ubyssey/dispatch | import React from 'react'
import R from 'ramda'
import { connect } from 'react-redux'
import Dropzone from 'react-dropzone'
import { Button, Intent } from '@blueprintjs/core'
import { AuthorFilterInput, TagsFilterInput } from '../../inputs/filters/'
import imagesActions from '../../../actions/ImagesActions'
import ... |
ajax/libs/forerunnerdb/1.3.515/fdb-all.js | x112358/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/Parser/GuardianDruid/Modules/Items/Skysecs.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import ItemLink from 'common/ItemLink';
import Module from 'Parser/Core/Module';
import Combatants from 'Parser/Core/Modules/Combatants';
import { formatPercentage, formatNumber } from 'common/format';
const FRENZIED_REG... |
docs/index.js | Miniplop/react-camera | /* eslint-disable global-require, import/no-unresolved, react/no-multi-comp */
import React from 'react';
import ReactDOM from 'react-dom';
import GithubCorner from 'react-github-corner';
import { Catalog, CodeSpecimen, ReactSpecimen } from 'catalog';
import 'purecss/build/pure.css';
import './main.css';
import '../st... |
mobile/__tests__/index.android.js | serban-petrescu/candidate-management | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
app/assets/javascripts/application.js | unepwcmc/trade_reporting_tool | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... |
PageTwo.js | r0b1n/rnrf-relay-example | import React, { Component } from 'react';
import {
Text,
View,
} from 'react-native';
import { Actions } from 'react-native-router-flux';
import Relay from 'react-relay';
class PageTwo extends Component {
render() {
return (
<View style={{flex: 1, justifyContent: 'center', padding: 20}}>
<Te... |
examples/js/utils.js | dana2208/react-bootstrap-table | import React from 'react';
function renderLinks(examplePath) {
const gitHubBase = 'https://github.com/AllenFang/react-bootstrap-table/tree/master/examples/js';
return (
<h5>Source in
<a href={ `${gitHubBase}/${examplePath}` } target='_blank'> /examples/js/{ examplePath }</a>
</h5>
);
}
export defa... |
30-days-of-react-native-development/index.android.js | HarrisLee/React-Native-Express | /**
* 30 Days of React Native
* Icons made by <a href="http://www.flaticon.com/authors/vectors-market" title="Vectors Market">Vectors Market</a> from <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY ... |
src/server.js | bamtron5/ReactRedux | import Express from 'express';
//import mysql from 'mysql';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from ... |
ajax/libs/flocks.js/0.17.2/flocks.min.js | WilliamRen/cdnjs | if("undefined"===typeof React)var React=require("react");
(function(){function f(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){return"undefined"===typeof a}function u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===type... |
src/routes/Grid/Grid.js | ku8ar/todo | import React, { PropTypes, Component } from 'react'
import Grid from 'containers/Grid'
import actions from 'actions/'
import { connect } from 'react-redux'
class GridView extends Component {
static propTypes = {
router: PropTypes.object,
isLogged: PropTypes.bool
}
componentWillMount () {
if (!this.pr... |
submissions/arqex/src/components/Sith.js | gterzian/flux-challenge | import React from 'react';
export default class Sith extends React.Component {
render(){
var sith = this.props.sith,
className = 'css-slot'
;
if( !sith.name )
return <li className={ className }></li>;
if( this.props.atHome )
className += ' red';
return (
<li className={ className } key={ sith... |
src/svg-icons/editor/pie-chart.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorPieChart = (props) => (
<SvgIcon {...props}>
<path d="M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10zm2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99zm0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99h-8.97z"/>
</SvgIco... |
packages/material-ui-icons/src/LightbulbOutline.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V1... |
packages/material-ui-icons/src/ExpandLess.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z" />
, 'ExpandLess');
|
Console/app/node_modules/antd/es/progress/progress.js | RisenEsports/RisenEsports.github.io | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
client/src/components/App.js | randy5235/grocerylist | import React from 'react';
import Header from './Header';
import axios from 'axios';
class App extends React.Component {
state = {
isLoggedIn: null,
userName: null
}
componentDidMount() {
// const getLists = async() => {
// const response = await axios.get('/api/lists', {
// headers: {... |
src/client/feed/SubFeed.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import Cookie from 'js-cookie';
import _ from 'lodash';
import { showPostModal } from '../app/appActions';
import { getFeedContent, getMoreFeedContent } from './feedActions';
... |
node_modules/material-ui/svg-icons/editor/format-bold.js | knguyen1/kylecodes | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
src/svg-icons/notification/airline-seat-legroom-extra.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatLegroomExtra = (props) => (
<SvgIcon {...props}>
<path d="M4 12V3H2v9c0 2.76 2.24 5 5 5h6v-2H7c-1.66 0-3-1.34-3-3zm18.83 5.24c-.38-.72-1.29-.97-2.03-.63l-1.09.5-3.41-6.98c-.34-.68-1.03-1.... |
ajax/libs/react/0.14.4/react-dom-server.min.js | menuka94/cdnjs | /**
* ReactDOMServer v0.14.4
*
* 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 dire... |
lib/components/ContentBlock.js | towry/composer-core |
import React, { Component } from 'react';
import { getElementForBlockOfType } from '../blockRenderer';
import BlockLeaf from './BlockLeaf';
import offsetKey from '../util/offsetKey';
import entityRenderer from '../entityRenderer';
export default class ContentBlock extends Component {
static displayName = 'ContentB... |
src/pages/admin/CustomersProspectAdminPage.js | ihenvyr/react-app | import React from 'react';
import Helmet from 'react-helmet';
import { withRouter } from 'react-router';
const CustomersProspectAdminPage = () => {
return (
<div>
<Helmet title="Prospect Customers - Admin"
meta={[
{ name: "description", content: "Prospect Customers - Admin" }
... |
src/containers/SearchUserResult.js | Frezc/Share-Favors-App | import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import ListFilter from '../components/ListFilter';
import UserList from '../components/UserList';
const filters = ['Similarity', 'Most Repo', 'Oldest'];
class SearchUserResult extends React.Comp... |
src/decorators/withViewport.js | materliu/Chrome-DevTools | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
ajax/libs/babel-core/5.4.0/browser-polyfill.min.js | froala/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... |
examples/webpack-react-server/app/scripts/containers/index.js | demones/react-guide | import React from 'react';
import {render} from 'react-dom';
import Index from 'components/Index';
import 'sass/main.scss';
render((
<Index/>
), document.getElementById('layout'));
|
react/react-offical-case/src/index.js | huxinmin/PracticeMakesPerfect | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
ajax/libs/zeroclipboard/2.0.0/ZeroClipboard.js | thisispiers/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.0
*/
(function(window, undefined) {
"use strict";... |
node_modules/native-base/Components/Widgets/Subtitle.js | paulunits/tiptap | /* @flow */
'use strict';
import React from 'react';
import {Text, View, Platform } from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
export default class Subtitle extends NativeBaseComponent {
render() {
return(
<View><Text style={{color: this.getTheme().subtitleColor , font... |
ajax/libs/js-data/2.0.0-beta.2/js-data-debug.js | magoni/cdnjs | /*!
* js-data
* @version 2.0.0-beta.2 - Homepage <http://www.js-data.io/>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Robust framework-agnostic data store.
*/
(function webpackUnivers... |
src/pages/Editor/EditorNav.js | Hellenic/fractalysis | import React, { Component } from 'react';
import { Menu } from 'semantic-ui-react';
import ShaderComposer from './components/ShaderComposer/ShaderComposer';
import RandomizeUniforms from './components/RandomizeUniforms/RandomizeUniforms';
import DownloadButton from './components/DownloadButton/DownloadButton';
import S... |
frontend/js/components/profile/LastMuscleStats.js | antoniovj1/infraestructura_virtual_ugr | import React from 'react';
import Paper from 'material-ui/Paper';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import { Doughnut } from 'react-chartjs-2';
import Palette from 'google-palette';
import Capitalize from 'capitalize';
const styles = theme => ({
root: theme.mixins.g... |
packages/react-interactions/npm/tap.js | chicoxyzzy/react | 'use strict';
if (process.env.NODE_ENV === 'production') {
module.exports = require('./cjs/react-interactions-events/tap.production.min.js');
} else {
module.exports = require('./cjs/react-interactions-events/tap.development.js');
}
|
src/Menu/Menu.spec.js | frnk94/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Menu from './Menu';
import MenuItem from '../MenuItem';
import Divider from '../Divider';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Menu />', () => {
const muiTheme = getMuiTheme();... |
src/components/behance/plain-wordmark/BehancePlainWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './BehancePlainWordmark.svg'
/** BehancePlainWordmark */
function BehancePlainWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'Behance... |
ajax/libs/thorax/2.0.0rc1/thorax.min.js | CyrusSUEN/cdnjs | (function(e,t){"use strict";function _(e){var t=e.length,n=y.type(e);return y.isWindow(e)?!1:e.nodeType===1&&t?!0:n==="array"||n!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in e)}function P(e){var t=D[e]={};return y.each(e.match(w)||[],function(e,n){t[n]=!0}),t}function j(e,n,r,i){if(!y.acceptData(e))return;var ... |
vendor/flot/jquery.js | marktech/smartups | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
ajax/libs/ember-data.js/2.12.1/ember-data.js | seogi1004/cdnjs | (function(){
"use strict";
/*!
* @overview Ember Data
* @copyright Copyright 2011-2016 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 2.12.1
*/
var loader, define, requireModule, require, requirejs;
(fu... |
src/svg-icons/social/person-add.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPersonAdd = (props) => (
<SvgIcon {...props}>
<path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
</... |
src/components/KFPFooter.js | KidsFirstProject/KidsFirstProject.github.io | import React from 'react';
import { Col, Row, Container } from 'react-bootstrap';
import styles from './KFPFooter.module.css';
const KFPFooter = () => (
<Row className={styles.footerRow}>
<Col>
<Container className={styles.footerContainer}>
<p className="text-center">
Copyright © Kid... |
react-js/redux-data-loading/src/components/app.js | vanyaland/react-demos | import React from 'react';
import { Component } from 'react';
export default class App extends Component {
render() {
return (
<div>{this.props.children}</div>
);
}
}
|
ajax/libs/inferno-devtools/3.0.4/inferno-devtools.js | cdnjs/cdnjs |
/*!
* Inferno.DevTools v3.0.4
* (c) 2017 Dominic Gannaway'
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('inferno'), require('inferno-component')) :
typeof define === 'function' && define.amd ? define(['inferno',... |
src/client/app/menus/import.menu.js | mapkiwiz/sectorisation | import React from 'react';
import {Link} from 'react-router';
import {MessagePanel} from '../panels/message.panel';
import {MenuLink} from '../panels/menu.link';
export function ImportMenu(props, context) {
return (
<div className="col-md-4 col-md-offset-8 panel-container">
<h3>
Importer des donné... |
ajax/libs/yui/3.14.1/scrollview-base/scrollview-base-debug.js | JohnKim/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
src/stamp.js | Vargentum/react-redux-apps | import React from 'react'
import rStamp from 'react-stamp'
export default rStamp(React)
|
src/containers/SongSearchScreen.js | varmais/profitti | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { ScrollView } from 'react-native';
import { connect } from 'react-redux';
import AppStyles from '../helpers/Styles';
import SongButton from '../components/songs/SongButton';
import { resetSearchSongs } from '../redux/songs';
import Na... |
app/javascript/mastodon/features/ui/components/zoomable_image.js | ambition-vietnam/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const MIN_SCALE = 1;
const MAX_SCALE = 4;
const getMidpoint = (p1, p2) => ({
x: (p1.clientX + p2.clientX) / 2,
y: (p1.clientY + p2.clientY) / 2,
});
const getDistance = (p1, p2) =>
Math.sqrt(Math.pow(p1.clientX - p2.clientX, 2) + Math.pow(p1.client... |
ajax/libs/react-data-grid/1.0.53/react-data-grid.ui-plugins.min.js | joeyparrish/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(th... |
dcc-submission-ui/src/Report/Report.js | icgc-dcc/dcc-submission | import React, { Component } from 'react';
import {observable} from 'mobx';
import {observer} from 'mobx-react';
import Status from '~/common/components/Status';
import ReportModel from './ReportModel';
import DetailedReport from './DetailedReport/DetailedReport';
import ErrorReport from './ErrorReport/ErrorReport';
... |
app/components/H3/index.js | ajanthvofox/react-crud | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
files/jquery.multiselect/1.13/jquery.multiselect.js | Swatinem/jsdelivr | /* jshint forin:true, noarg:true, noempty:true, eqeqeq:true, boss:true, undef:true, curly:true, browser:true, jquery:true */
/*
* jQuery MultiSelect UI Widget 1.13
* Copyright (c) 2012 Eric Hynds
*
* http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/
*
* Depends:
* - jQuery 1.4.2+
* - jQuery UI 1... |
app/components/EditorTalo/index.js | Zurico/t7 | // MIT: FormidableLabs/component-playground
import React from 'react';
import ReactDOM from 'react-dom';
import TextPanel from 'components/TextPanel';
import CommandPanel from 'components/CommandPanel';
import styles from './styles.css';
//import * as sdk from 'sdk'; //rx, ramda, superagent, evetnsource, url, events, l... |
src/svg-icons/image/vignette.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageVignette = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 15c-4.42 0-8-2.69-8-6s3.58-6 8-6 8 2.69 8 6-3.58 6-8 6z"/>
</SvgIcon>... |
packages/material-ui-icons/src/VerticalAlignTopOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z" /></g></React.Fragment>
, 'VerticalAlignTopOutlined');
|
src/parser/shaman/restoration/modules/talents/AncestralProtectionTotem.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import fetchWcl from 'common/fetchWclApi';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import Icon from 'common/Icon';
import { formatDuration } from 'common/format';
import SPECS from 'game/SPECS';
import LazyLoadS... |
examples/universal/server/server.js | abalone0204/redux | /* eslint-disable no-console, no-use-before-define */
import path from 'path';
import Express from 'express';
import qs from 'qs';
import webpack from 'webpack';
import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from 'webpack-hot-middleware';
import webpackConfig from '../webpack.... |
frontend/src/Activity/Queue/QueueStatusCell.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Icon from 'Components/Icon';
import TableRowCell from 'Components/Table/Cells/TableRowCell';
import Popover from 'Components/Tooltip/Popover';
import { icons, kinds, tooltipPositions } from 'Helpers/Props';
import translate from 'Utilities/String/tra... |
vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML/Renderer/Template/js/jquery.min.js | nmihaylov/KingdomGame | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
ajax/libs/yui/3.17.1/datatable-core/datatable-core-coverage.js | ksaitor/cdnjs | /*
YUI 3.17.1 (build 0eb5a52)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-core/datatable-core.js']) {
__coverage__['build/datatable-core/datatable-... |
test/SearchboxTest.js | gusreiber/jenkins-plugin-site | import React from 'react';
import {createRenderer} from 'react-addons-test-utils';
import expect from 'expect';
import { assert} from 'chai';
import Searchbox from '../app/components/Widget/Searchbox';
const testElement = (<Searchbox browserHistory={{}}
location={{query: {q: 'extrem'}}}
limit={11}/>);
describe('... |
src/App.js | dindonus/react-hot-boilerplate | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello, world.</h1>
);
}
}
|
src/svg-icons/social/school.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSchool = (props) => (
<SvgIcon {...props}>
<path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"/>
</SvgIcon>
);
SocialSchool = pure(SocialSchool);
SocialSchool.displayNa... |
src/components/mobile_userCenter.js | YMFL/reactNews | /**
* Created by YangQianHui on 2017/4/10.
*/
import React from 'react';
import {Tabs,Row,Col } from 'antd';
import MobileHeader from './mobile_header';
import MobileFooter from './mobile_footer';
const TabPane=Tabs.TabPane;
class MobileUserCenter extends React.Component {
render() {
return (
... |
modules/__tests__/IndexLink-test.js | stshort/react-router | import expect from 'expect'
import React, { Component } from 'react'
import { render, unmountComponentAtNode } from 'react-dom'
import createHistory from '../createMemoryHistory'
import IndexRoute from '../IndexRoute'
import IndexLink from '../IndexLink'
import Router from '../Router'
import Route from '../Route'
impor... |
packages/react/src/components/DataTable/__tests__/TableToolbarContent-test.js | carbon-design-system/carbon-components | /**
* 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 { mount } from 'enzyme';
import { TableToolbarContent } from '../';
describe('DataTable.TableToolbarConten... |
components/App/SignUp.js | intrepion/sign-up-client-jsonapi-reactjs-foundation | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class SignUp extends Component {
render() {
return (
<div className='content row medium-8 large-7 columns'>
<h3>Sign Up</h3>
<label>
Username
<input type='text' placeholder='Use... |
ajax/libs/yui/3.10.2/datatable-body/datatable-body-debug.js | NMastracchio/cdnjs | 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` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
stories/InputArea/ExampleRefs.js | skyiea/wix-style-react | import React from 'react';
import InputArea from 'wix-style-react/InputArea';
import TextButton from '../utils/Components/TextButton';
class CommandsExample extends React.Component {
render() {
const handleClick1 = () => this.refs.inputtest.focus();
const handleClick2 = () => {
this.refs.inputtest.foc... |
src/svg-icons/places/pool.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesPool = (props) => (
<SvgIcon {...props}>
<path d="M22 21c-1.11 0-1.73-.37-2.18-.64-.37-.22-.6-.36-1.15-.36-.56 0-.78.13-1.15.36-.46.27-1.07.64-2.18.64s-1.73-.37-2.18-.64c-.37-.22-.6-.36-1.15-.36-.56 0-.78... |
src/index.js | YMFL/reactNews | import React from 'react';
import ReactDOM from 'react-dom';
import 'core-js/fn/object/assign';
import { Router,Route,hashHistory } from 'react-router';
import MediaQuery from 'react-responsive';
//pc
import PCIndex from './components/pc_index';
import PCNewsDetails from './components/pc_news_details';
import PCUserCen... |
src/components/common/indicators/Badge.js | ESTEBANMURUZABAL/my-ecommerce-template | /**
* Imports
*/
import React from 'react';
/**
* Component
*/
class Badge extends React.Component {
//*** Component Lifecycle ***//
componentDidMount() {
// Component styles
require('./Badge.scss');
}
//*** Template ***//
render() {
return (
<div classN... |
ajax/libs/rxjs/2.3.24/rx.js | holtkamp/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/components/Management/TafLocationsManagementPanel.spec.js | KNMI/GeoWeb-FrontEnd | import React from 'react';
import { default as TafLocationsManagementPanel } from './TafLocationsManagementPanel';
import { mount } from 'enzyme';
import moxios from 'moxios';
describe('(Component) TafLocationsManagementPanel', () => {
let _component;
beforeEach(() => {
moxios.install();
});
afterEach(() =... |
src/client/shoppingcart/addCoupon.js | r3dDoX/geekplanet | import green from '@material-ui/core/colors/green';
import orange from '@material-ui/core/colors/orange';
import red from '@material-ui/core/colors/red';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import ListItemText from '@material-ui/core/ListItemText... |
node_modules/reactify/node_modules/react-tools/src/browser/ui/dom/components/__tests__/ReactDOMButton-test.js | niole/Flux-Random-Number-Generator | /**
* 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... |
build/react-motion.js | YikaJ/react-motion | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactMotion"] = fac... |
examples/counter/containers/App.js | omnidan/redux-devtools | import React, { Component } from 'react';
import CounterApp from './CounterApp';
import { createStore, applyMiddleware, combineReducers, compose } from 'redux';
import { devTools, persistState } from 'redux-devtools';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
import thunk from 'redux-... |
test/integration/client-navigation/pages/nav/on-click.js | flybayer/next.js | import { Component } from 'react'
import Link from 'next/link'
export default class OnClick extends Component {
static getInitialProps({ res, query: { count } }) {
return { count: count ? parseInt(count) : 0 }
}
state = {
stateCounter: 0,
}
render() {
const { stateCounter } = this.state
con... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.