path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
react-fundamentals/children-components/utilities/src/App.js | FMCalisto/react-get-started | import React from 'react';
class App extends React.Component {
render () {
return (
<Parent>
<div className="childA"></div>
<div className="childB"></div>
</Parent>
)
}
}
class Parent extends React.Component {
render () {
// let items = React.Children
// .map(this... |
app/containers/HomePage/index.js | SilentCicero/react-boilerplate | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import messages from './messages';
import { createStructuredSelector } from 'reselect';
import {
selectRepos,
select... |
ajax/libs/6to5/2.2.0/browser-polyfill.js | urish/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/svg-icons/communication/location-on.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLocationOn = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12... |
src/components/MainPage/FormTable/FormTableContainer.js | coolshare/ReactReduxPattern | import React from 'react';
import RightPane from './RightPane';
import LeftPane from './LeftPane';
import { Grid, Row, Col } from 'react-bootstrap';
/**
*
*/
export default class FormTableContainer extends React.Component{
/**
* render
* @return {ReactElement} markup
*/
render(){
return (
<div id="F... |
ajax/libs/yui/3.10.0/scrollview-base/scrollview-base-debug.js | tresni/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/svg-icons/action/view-column.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewColumn = (props) => (
<SvgIcon {...props}>
<path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"/>
</SvgIcon>
);
ActionViewColumn = pure(ActionViewColumn);
ActionViewColumn.displayName = 'Actio... |
src/components/Privacy.js | ManuInnovations/KoreroMai2 | const debug = require('debug')('components:Privacy')
import React from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router'
import Footer from './Footer'
import Header from './Header'
class Privacy extends React.Component {
handleClick(e) {
e.preventDefault()
this.props.router.p... |
app/containers/HomePage/index.js | vkurzweg/aloha | /*
* 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 necessity for you then you can refactor it and remove
* the l... |
ajax/libs/react-bootstrap-table/3.0.0-beta.8/react-bootstrap-table.js | tholu/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
src/repository/screens/pull-diff.screen.js | Antoine38660/git-point | /* eslint-disable react/no-array-index-key */
import React, { Component } from 'react';
import { View, ScrollView, Text, FlatList, StyleSheet } from 'react-native';
import { Card } from 'react-native-elements';
import Parse from 'parse-diff';
import { ViewContainer, DiffBlocks, CodeLine } from 'components';
import { t... |
packages/@lyra/components/src/dialogs/ConfirmDialog.js | VegaPublish/vega-studio | import PropTypes from 'prop-types'
import React from 'react'
import CloseIcon from 'part:@lyra/base/close-icon'
import CheckIcon from 'part:@lyra/base/circle-check-icon'
import styles from './styles/ConfirmDialog.css'
import Button from 'part:@lyra/components/buttons/default'
import {Portal} from 'part:@lyra/component... |
src/components/modals/Attachments.react.js | EaglesoftZJ/iGem_Web | /*
* Copyright (C) 2015-2016 Actor LLC. <https://actor.im>
*/
import React, { Component } from 'react';
import { Container } from 'flux/utils';
import { findDOMNode } from 'react-dom';
import { FormattedMessage } from 'react-intl';
import Modal from 'react-modal';
import { KeyCodes } from '../../constants/ActorAppC... |
gui/src/app/classes/dashboard.js | mbonvini/LambdaSim | import log from 'loglevel';
import React from 'react';
import DashboardTextField from '../components/dashboard-text-field';
import DashboardSelectField from '../components/dashboard-select-field';
import DashboardPlotContainer from '../containers/dashboard-plot-container';
export class Dashboard {
/**
* Cont... |
react/exercises/part_03/src/components/NavBar.js | jsperts/workshop_unterlagen | import React from 'react';
import Button from './Button';
function NavBar({ onAddContact }) {
return (
<nav className="navbar navbar-default">
<div className="collapse navbar-collapse">
<ul className="nav navbar-nav navbar-form btn-group">
<li className="btn-group">
<Button l... |
app/client/src/routes/createEvent/index.js | uprisecampaigns/uprise-app | import React from 'react';
import CreateAction from 'scenes/CreateAction';
import Layout from 'components/Layout';
import organizeCampaignPaths from 'routes/organizeCampaignPaths';
export default organizeCampaignPaths({
path: '/organize/:slug/create-event',
component: campaign => (
<Layout>
<CreateActi... |
src/plantactionselector/PlantActionSelector.js | BushrootPDX/app | import React, { Component } from 'react';
import styled from 'styled-components';
export default class PlantActionSelector extends Component {
componentWillUnmount() {
this.props.actionReset();
}
render() {
const { addAction, removeAction } = this.props;
const PlantActionDiv = sty... |
ajax/libs/rxjs/2.2.28/rx.all.compat.js | tonytlwu/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... |
src/entry-points/client.js | lancetw/react-redux-starter-kit | import React from 'react';
import App from 'containers/app';
import { history } from 'react-router/lib/BrowserHistory';
React.render(<App history={history} />, document.getElementById('mount'));
|
src/components/EvolveInfo.js | richard-leagh/evolution-calc | import React from 'react';
const EvolveInfo = ({
pokeInfo
}) => {
return (
<div className="evolutionDetails">
<label>Candies Required For Evolution : {pokeInfo.candyRequired}</label>
</div>
);
};
export default EvolveInfo; |
node_modules/react-icons/io/tshirt-outline.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoTshirtOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m11.4 6.7l-8.1 2.4 0.8 2.5 3.1-0.3 3-0.4-0.2 3-1.1 19.9h17.2l-1.1-19.9-0.2-3 3 0.4 3.1 0.3 0.8-2.5-8.1-2.4c-0.5 0.6-1 1.1-1.6 1.5-1.2 0.8-2.7 1.2-4.5 1.2-2.7-0.... |
src/components/grid.js | sugerPocket/react-redux-2048 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Cell from './cell';
import Tile from './tile';
import style from '../styles/grid.sass';
export default class Grid extends Component {
render() {
const { tiles, cells, height, width, dispatch } = this.props;
return (
<d... |
ajax/libs/react-nvd3/0.5.3/react-nvd3.js | holtkamp/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("d3"), require("nvd3"));
else if(typeof define === 'function' && define.amd)
define(["react", "d3", "nvd3"], factory);
else if(typeof export... |
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleOpenOnFocus.js | shengnian/shengnian-ui-react | import React from 'react'
import { Dropdown } from 'shengnian-ui-react'
import { friendOptions } from '../common'
const DropdownExampleOpenOnFocus = () => (
<div>
<Dropdown placeholder='I open on focus' openOnFocus selection options={friendOptions} />
{' '}
<Dropdown placeholder='I do not open on focus' ... |
ajax/libs/react/0.14.7/react-dom-server.min.js | kennynaoh/cdnjs | /**
* ReactDOMServer v0.14.7
*
* 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... |
ajax/libs/webshim/1.14.4-RC2/dev/shims/moxie/js/moxie.js | chrisyip/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
app/src/pages/AboutPage/index.js | RyanCCollins/restaurant-reviewer | import React, { Component } from 'react';
import cssModules from 'react-css-modules';
import styles from './index.module.scss';
import { AppFooter, AboutInfo } from 'components';
import { updatePageTitle } from 'utils/a11y';
class AboutPage extends Component {
componentDidMount() {
updatePageTitle('About Page');... |
src/frontend/components/FastFwdForm.js | Bernie-2016/ground-control | import React from 'react'
import Relay from 'react-relay'
import {BernieColors, BernieText} from './styles/bernie-css'
import {Paper, Slider, Toggle, Styles} from 'material-ui'
import GCForm from './forms/GCForm'
import Form from 'react-formal'
import EventPreview from './EventPreview'
import EventInvalid from './Event... |
react-src/catalog/components/FilterCountry.js | gabzon/experiensa | import React from 'react';
import CatalogFilterButton from './filters/CatalogFilterButton'
export default class FilterCountry extends React.Component {
constructor(){
super()
}
renderCountryButtons(){
if(this.props.countries) {
return this.props.countries.map((country) => {
... |
app/components/MessageToolbar.js | danjamin/react-fluxlike-mail-demo | import React from 'react';
import MessageRecord from '../records/MessageRecord.js';
import Pull from './Pull.js';
export default React.createClass({
displayName: 'MessagesToolbar',
propTypes: {
// required
message: React.PropTypes.instanceOf(MessageRecord).isRequired,
// optional
onDelete: React... |
ajax/libs/video.js/5.0.0-rc.51/video.js | dannyxx001/cdnjs | /**
* @license
* Video.js 5.0.0-rc.51 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-15/friends/FriendProfile.js | Brandon-J-Campbell/codemash | import React from 'react';
import { Link } from 'react-router-dom';
import Card from '../shared/Card';
import styles from './FriendProfile.css';
export default function FriendProfile({ id, name, image }) {
return (
<Link to={'friends/' + id}>
<Card>
<div className={styles.friendProfile}>
... |
src/components/sample-post.js | Dmidify/mlblog | import React, { Component } from 'react';
import PostHeader from './post-header';
import Navbar from './navbar';
import Footer from './footer';
import { postsData } from '../sample-data.js';
import postImg from '../img/post-sample-image.jpg';
class SamplePost extends Component {
state = {
posts: postsData
}
... |
ajax/libs/redux-form/1.6.8/redux-form.js | hare1039/cdnjs | (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["ReduxForm"] = facto... |
ajax/libs/glamorous/3.21.0/glamorous.umd.tiny.min.js | joeyparrish/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("glamor")):"function"==typeof define&&define.amd?define(["react","glamor"],t):e.glamorous=t(e.React,e.Glamor)}(this,function(e,t){"use strict";function r(){return(arguments.length>0&&void 0!==arguments[0]?argum... |
ajax/libs/tabulator/5.0.10/js/tabulator.js | cdnjs/cdnjs | /* Tabulator v5.0.10 (c) Oliver Folkerd 2021 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global... |
js/Details.js | PansFortress/complete-intro-to-react | import React from 'react'
import axios from 'axios'
import Header from './Header'
const { shape, string } = React.PropTypes
const Details = React.createClass({
propTypes: {
show: shape({
title: string,
description: string,
year: string,
poster: string,
trailer: string,
imdbID:... |
src/stories/form-stories.js | kemuridama/rectangle | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import '../styles.scss';
import InputField from './form/input-field';
import Checkbox from './form/checkbox';
import RadioButton from './form/radio-button';
import Selectbox from './form/selectbox';
import Form from './form/form';
/* gl... |
composites/Plugin/SnippetPreview/tests/HelpTextWrapperTest.js | Yoast/yoast-components | /* External dependencies */
import React from "react";
import renderer from "react-test-renderer";
import EnzymeAdapter from "enzyme-adapter-react-16";
import Enzyme from "enzyme/build/index";
/* Internal dependencies */
import HelpTextWrapper from "../components/HelpTextWrapper";
Enzyme.configure( { adapter: new Enz... |
tilapp/src/components/Form/index.js | tilap/tilapp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Form, Text } from 'native-base';
import Field from './SimpleField';
import styles from './styles';
class QuickForm extends Component {
render() {
const { fields, error } = this.props;
return (
<Form style={{ paddingB... |
ajax/libs/mediaelement/2.3.1/jquery.js | tkirda/cdnjs | /*!
* jQuery JavaScript Library v1.6.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
ajax/libs/react-modal/1.3.0/react-modal.min.js | froala/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.ReactModal=t(require("react"),require("react-dom")):e.ReactModal=t(e.react,e["react-dom"])}(this... |
techCurriculum/ui/solutions/3.1/src/components/Title.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
src/components/NotFoundPage/NotFoundPage.js | ericshape/react_test | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
//import './NotFoundPage.less';
import React from 'react'; // eslint-disable-line no-unus... |
app/javascript/mastodon/components/avatar.js | KnzkDev/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... |
src/routes/home/Home.js | guokeke/myblog | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import CommandLine from '../... |
src/js/components/icons/base/Drag.js | linde12/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/browser/eventPlugins/__tests__/AnalyticsEventPlugin-test.js | sverrejoh/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... |
ajax/libs/react-swipe/2.0.8/react-swipe.js | Piicksarn/cdnjs | (function (root, factory) {
if (typeof module !== 'undefined' && module.exports) {
module.exports = factory(
require('react/addons'),
require('swipe-js-iso')
);
} else {
root.ReactSwipe = factory(
root.React,
root.Swipe
);
}
})(this, function (React, Swipe) {
var styles =... |
examples/huge-apps/components/GlobalNav.js | SpainTrain/react-router | import React from 'react';
import { Link } from 'react-router';
const styles = {};
class GlobalNav extends React.Component {
static defaultProps = {
user: {
id: 1,
name: 'Ryan Florence'
}
};
constructor (props, context) {
super(props, context);
this.logOut = this.logOut.bind(this);... |
ajax/libs/angular.js/0.9.6/angular-scenario.min.js | TerryMooreII/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.
... |
docs/index.js | Scratch-it/react-color | 'use strict'
import React from 'react'
import ReactDOM from 'react-dom'
import Home from './components/home/Home'
// var html = ReactDOMServer.renderToString(React.createElement(Home));
// console.log(html);
if (typeof document !== 'undefined') {
ReactDOM.render(
React.createElement(Home),
document.getEle... |
app/javascript/mastodon/features/list_timeline/index.js | mimumemo/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnBackButton from '../../co... |
src/app-client.js | jongamble/wedding-site | import React from 'react';
import ReactDOM from 'react-dom';
import AppRoutes from './components/AppRoutes';
window.onload = () => {
ReactDOM.render(<AppRoutes/>, document.getElementById('main'));
}; |
docs/src/SupportPage.js | yickli/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
export default class Page extends React.Component {
render() {
return (
<div>
<NavMain activePage="support" />
<PageHeader
title="Nee... |
packages/material-ui-icons/src/ContactsSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20 0H4v2h16V0zM4 24h16v-2H4v2zM22 4H2v16h20V4zM12 6.75c1.24 0 2.25 1.01 2.25 2.25s-1.01 2.25-2.25 2.25S9.75 10.24 9.75 9 10.76 6.75 12 6.75zM17 17H7v-1.5c0-1.67 3.33-2.5 5-2.5s5 .83 5 2.5V17z" />
, '... |
assets/jqwidgets/demos/react/app/grid/filterrow/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
componentDidMount() {
this.refs.Button.on('click', () => {
thi... |
ajax/libs/mobx/2.3.7/mobx.js | AMoo-Miki/cdnjs | "use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
registerGlobals();
exports.extras = {
allowS... |
src/components/detail/Edit.js | shrimpliu/shradmin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect, actions } from 'mirrorx';
import compose from 'recompose/compose';
import { Card, Spin } from 'antd';
import { translate } from '../../i18n';
import Actions from './EditActions';
class Edit extends Component {
componentD... |
packages/material-ui-icons/src/Brightness5.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z" />
, 'Brightness5');
|
src/parser/mage/fire/modules/features/HotStreakWastedCrits.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatNumber } from 'common/format';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import HIT_TYPES from 'game/HIT_TYPES';
import EnemyInstances,... |
src/components/about-dialog/test/index.js | unindented/whitelist-chrome | import React from 'react'
import AboutDialog from 'components/about-dialog'
import {render} from 'utils/test'
describe('AboutDialog', function () {
beforeEach(function () {
this.element = render(<AboutDialog />)
})
it('renders with the correct tag name', function () {
expect(this.element).toHaveTag('dia... |
ajax/libs/tinymce/3.5.8/plugins/legacyoutput/editor_plugin_src.js | bradens/cdnjs | /**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u... |
packages/node_modules/@webex/react-container-message-composer/src/components/ComposerButtons.js | ciscospark/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import bowser from 'bowser';
import {Icon} from '@momentum-ui/react';
import styles from './ComposerButtons.css';
function ComposerButtons({onAttachFile, composerActions}) {
function handleFileIconClick(event) {
... |
docs/pages/performance/table-mui.js | lgollut/material-ui | import React from 'react';
import NoSsr from '@material-ui/core/NoSsr';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableHead from '@material-ui/core/TableHead';
import TableRow from '@material-ui/core/Tabl... |
wp-content/plugins/buddypress/bp-forums/bbpress/bb-includes/js/jquery/jquery.js | benbowler/ss | /*!
* 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.
... |
frontend/src/components/collection/CollectionCoverUI/ScrollspyEntry.js | webrecorder/webrecorder | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { ListIcon } from 'components/icons';
function ScrollspyEntry({ index, onSelect, selected, title }) {
const onEvent = (evt) => {
if ((evt.type === 'keyup' && evt.keyCode === 13) || evt.type === 'click') ... |
sandstorm.js | praveenscience/libreboard | // Sandstorm context is detected using the METEOR_SETTINGS environment variable
// in the package definition.
var isSandstorm = Meteor.settings && Meteor.settings.public &&
Meteor.settings.public.sandstorm;
// In sandstorm we only have one board per sandstorm instance. Since we want to
// keep most o... |
src/icons/GlyphSpeaker.js | ipfs/webui | import React from 'react'
const GlyphSpeaker = props => (
<svg viewBox='0 0 100 100' {...props}>
<g data-name='glyph_search'>
<path d='M73.79 16.78c-1 0-26.89 6.14-30.26 6.94a1 1 0 0 0-.72.22C40.66 24.28 32 25.77 31 26h-.17c-6.66-.26-10.45 2-12.47 3.95-2.79 2.69-4.21 6.63-4.21 11.71 0 9.61 4.75 14.57 9.46 ... |
src/svg-icons/action/accessible.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccessible = (props) => (
<SvgIcon {...props}>
<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-.3-1.19... |
node_modules/react-icons/lib/fa/arrows-h.js | bengimbel/Solstice-React-Contacts-Project | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
data/modules/qualimap/bam_qc/with_human_gc/css/jquery.js | ewels/MultiQC_TestData | /*!
* 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.
... |
node_modules/_antd@2.13.4@antd/es/breadcrumb/BreadcrumbItem.js | ligangwolai/blog | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
js/components/highscore/HighscoreCell.js | kort/kort-reloaded | import React from 'react';
import { StyleSheet, View, Text, TouchableHighlight } from 'react-native';
import I18n from 'react-native-i18n';
const styles = StyleSheet.create({
container: {
flex: 1,
padding: 20,
marginBottom: 45,
},
containerListView: {
flex: 1,
flexDirection: 'column',
jus... |
specs/find-with-class-spec.js | stefanbuck/react-shallow-testutils | import findWithClass from '../src/find-with-class';
import Renderer from '../src/renderer';
import React from 'react';
describe('`findWithClass`', function() {
beforeEach(function() {
class TestWithClasses extends React.Component {
render() {
return (
<div className='test-class'>
... |
Examples/UIExplorer/SegmentedControlIOSExample.js | lokilandon/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,
... |
ajax/libs/forerunnerdb/1.3.20/fdb-legacy.js | keicheng/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/todomvc/test/components/MainSection.spec.js | Poplava/redux | import expect from 'expect';
import jsdomReact from '../jsdomReact';
import React from 'react/addons';
import MainSection from '../../components/MainSection';
import TodoItem from '../../components/TodoItem';
import Footer from '../../components/Footer';
import { SHOW_ALL, SHOW_COMPLETED } from '../../constants/TodoFil... |
packages/material-ui-icons/src/ThumbsUpDown.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1.38-.91l2.26-5.29c.07-.17.11-.36.11-.5... |
test/Dummy.js | felixgirault/rea11y | import React, {Component} from 'react';
/**
* A dummy component that can be queried with React test
* utilities (simple <div>s can't).
*/
export default class Dummy extends Component {
/**
*
*/
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
src/TimePicker/TimePickerDialog.spec.js | manchesergit/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {expect} from 'chai';
import {spy, stub} from 'sinon';
import getMuiTheme from '../styles/getMuiTheme';
import TimePickerDialog from './TimePickerDialog';
describe('<TimePickerDialog />', () => {
const muiTheme = getMuiTheme();
... |
packages/material-ui-icons/src/KeyboardArrowDownRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M8.12 9.29L12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0z" /></React.Fragm... |
src/routes/Dashboard/components/cpu.js | pmg1989/dva-admin | import React from 'react'
import PropTypes from 'prop-types'
import { color } from 'utils'
import CountUp from 'react-countup'
import { LineChart, Line, XAxis, YAxis, CartesianGrid, ResponsiveContainer } from 'recharts'
import styles from './cpu.less'
const countUpProps = {
start: 0,
duration: 2.75,
useEasing: t... |
packages/material-ui-icons/src/InvertColorsOffSharp.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="M12 5.1v4.05l7.4 7.4c1.15-2.88.59-6.28-1.75-8.61L12 2.27 8.56 5.71l1.41 1.41L12 5.1zM4.4 4.37L2.99 5.78l2.78 2.78c-2.54 3.14-2.35 7.75.57 10.... |
src/routes.js | kevtastic/conversation-simulation | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import fetch from './core/fetch';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactPage'... |
test/test-client/like-nolike-test.js | AuxiliumRoa/auxilium-server | import React from 'react';
import { expect } from 'chai';
import { shallow, mount, render } from 'enzyme';
import LikeNoLike from '../../client/src/components/main/like-nolike.jsx'
import Button from '../../client/src/components/button.jsx'
describe("<LikeNoLike />", () => {
it("renders a <Button label='No Like'/>... |
src/containers/pages/welcome/sections/use-cases/tournaments.js | vFujin/HearthLounge | import React from 'react';
import CardInText from "../../../../../components/card/card-in-text";
import {Link} from "react-router-dom";
import Icon from "../../../../../components/icon";
const guldan = <CardInText label="Gul'Dan" imgSrc="http://media.services.zam.com/v1/media/byName/hs/cards/enus/HERO_07.png" rarity="... |
static/ext-4.0.2a/docs/output/Ext.Img.js | bitlair/synlogistics | Ext.data.JsonP.Ext_Img({
"mixedInto": [
],
"superclasses": [
"Ext.Base",
"Ext.AbstractComponent",
"Ext.Component"
],
"inheritable": false,
"subclasses": [
],
"deprecated": null,
"allMixins": [
"Ext.util.Floating",
"Ext.util.Observable",
"Ext.util.Animate",
"Ext.state.Stat... |
app/components/Operation/index.js | Princess310/antd-demo | /*
* Overwrite the component from antd Modal.operation
*
*/
/* tslint:disable:no-unused-variable */
import React from 'react';
/* tslint:enable:no-unused-variable */
import ReactDOM from 'react-dom';
import { Modal } from 'antd-mobile';
export default function a(...args) {
const actions = args[0] || [{ text: '确定' }]... |
libs/jsx-tools/src/utils/__tests__/joinClasses-test.js | bbondy/brianbondy.gae | /**
* Copyright 2013 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
ajax/libs/js-data/2.0.0-beta.10/js-data-debug.min.js | jonobr1/cdnjs | /*!
* js-data
* @version 2.0.0-beta.10 - 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 webpackUniver... |
ListSpan/build/JSXTransformer.js | JoshOY/ReactJS-Demos | /**
* JSXTransformer v0.13.1
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g... |
src/svg-icons/notification/tap-and-play.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationTapAndPlay = (props) => (
<SvgIcon {...props}>
<path d="M2 16v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0 4v3h3c0-1.66-1.34-3-3-3zm0-8v2c4.97 0 9 4.03 9 9h2c0-6.08-4.92-11-11-11zM17 1.01L7 1c-1.1 0-2... |
test/specs/collections/Table/Table-test.js | clemensw/stardust | import React from 'react'
import * as common from 'test/specs/commonTests'
import Table from 'src/collections/Table/Table'
import TableBody from 'src/collections/Table/TableBody'
import TableCell from 'src/collections/Table/TableCell'
import TableFooter from 'src/collections/Table/TableFooter'
import TableHeader from ... |
app/index.js | aaroncox/vessel | import React from 'react';
import { render } from 'react-dom';
import AppProvider from './app';
render(
<AppProvider />,
document.getElementById('root')
);
|
index.android.js | Jonham/ReactNative-EnjoySuffering | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import PageWelcome from './RNComponents/PageWelcome/PageWelcome';
export default class ReactNativeEnjoySufferi... |
admin _directory/admin/public/admin/bower_components/bootstrap-tour/docs/assets/vendor/jquery.js | samiranmon/battleme | /*!
* 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";... |
packages/material-ui-icons/src/DeleteOutlineOutlined.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4h-3.5z" /></g></React.Fragment>
, 'DeleteOutlineOutline... |
ajax/libs/simple-icons/4.11.0/semanticuireact.js | cdnjs/cdnjs | module.exports={title:"Semantic UI React",slug:"semanticuireact",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Semantic UI React icon</title><path d="M11.857 23.995C4.52 23.9-.237 17.431.012 11.775-.004 6.167 4.646.066 12.111 0c6.254.027 11.978 5.271 11.885 12.202-.072 6.813-5.84 11... |
test/ThemeProvider.spec.js | itsolutions-dev/react-styled-ui | import React from 'react';
import ReactTestUtils from 'react-dom/test-utils';
import ReactTestRenderer from 'react-test-renderer';
import styled from 'styled-components';
import ThemeProvider from '../src/ThemeProvider';
import StyleProvider from '../src/StyleProvider';
import theme from '../src/theme';
describe('Them... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.