path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
still/src/components/Layout/Home.js
marktheshark13/Stillwaters-farm
import React, { Component } from 'react'; import { Jumbotron, Button, Container } from 'reactstrap'; import './Home.css'; class Home extends Component { render() { return ( <div> <div className="myJumbo"> <Container fluid> <h1 className="display-3">Stillwaters Farm</h1> <h2 ...
pages/blog/test-article-one.js
devinfountain/portfolio
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Test Article 1</h1> <p>Co...
src/table/SortableTableBodyInternal.js
HarvestProfit/harvest-profit-ui
import React from 'react'; import { SortableContainer, SortableElement, } from 'react-sortable-hoc'; import TableBody from './TableBody'; // Defines each child as a sortable element const SortableItem = SortableElement(props => props.item); // This is the sort container const SortableForm = SortableContainer((...
blueocean-material-icons/src/js/components/svg-icons/av/fast-rewind.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvFastRewind = (props) => ( <SvgIcon {...props}> <path d="M11 18V6l-8.5 6 8.5 6zm.5-6l8.5 6V6l-8.5 6z"/> </SvgIcon> ); AvFastRewind.displayName = 'AvFastRewind'; AvFastRewind.muiName = 'SvgIcon'; export default AvFastRewind;
src/components/CardGroup/card-group.js
hungtruongquoc/shipper_front
import React, { Component } from 'react'; class CardGroup extends Component { render() { return ( <div className="card-group"> {this.props.children} </div> ) } } export default CardGroup;
public/assets/js/jquery-1.9.1.min.js
martindilling/auto-generating-gallery
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return...
src/svg-icons/action/backup.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBackup = (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.96z...
packages/material-ui-icons/src/Dock.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Dock = props => <SvgIcon {...props}> <path d="M8 23h8v-2H8v2zm8-21.99L8 1c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM16 15H8V5h8v10z" /> </SvgIcon>; Dock = pure(Dock); Do...
components/fields/forked-react-dates/src/components/DayPickerKeyboardShortcuts.js
Mudano/m-dash-ui
import React from 'react'; import PropTypes from 'prop-types'; import { forbidExtraProps } from 'airbnb-prop-types'; import cx from 'classnames'; import { DayPickerKeyboardShortcutsPhrases } from '../defaultPhrases'; import getPhrasePropTypes from '../utils/getPhrasePropTypes'; export const TOP_LEFT = 'top-left'; e...
lib/plugins.js
bem-sdk-archive/bemjson-to-jsx
var camelCase = require('camel-case'); var reactMappings = require('./reactMappings'); var helpers = require('./helpers'); var styleToObj = helpers.styleToObj; var valToStr = helpers.valToStr; module.exports.copyMods = () => function copyMods(jsx, bemjson) { if (jsx.isBEMSimpleComponent) { bemjson.elem ...
assets/javascripts/sso/components/UserPublicInfoCard.js
laincloud/sso
import StyleSheet from 'react-style'; import React from 'react'; import {History} from 'react-router'; import {Query} from '../models/Models'; let UserPublicInfoCard = React.createClass({ mixins: [History], getInitialState() { return { groups: [], }; }, componentDidMount() { this.reload()...
docs/app/Examples/elements/Button/States/ButtonExampleActive.js
ben174/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleActive = () => ( <Button active>Active</Button> ) export default ButtonExampleActive
ajax/libs/survey-react/0.98.5/survey.react.min.js
sufuf3/cdnjs
/*! * surveyjs - Survey JavaScript library v0.98.5 * Copyright (c) 2015-2017 Devsoft Baltic OÜ - http://surveyjs.io/ * License: MIT (http://www.opensource.org/licenses/mit-license.php) */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&...
src/index.js
Seavenly/electives-app
/* eslint-env browser */ import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
gulpfile.js
ajefremovs/relay
/** * 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. */ 'use strict'; va...
examples/with-redux-persist/pages/index.js
BlancheXu/test
import React from 'react' import { connect } from 'react-redux' import { startClock, serverRenderClock } from '../store' import Examples from '../components/examples' class Index extends React.Component { static getInitialProps ({ reduxStore, req }) { const isServer = !!req // DISPATCH ACTIONS HERE ONLY WITH...
src/challenges/react/React_15.js
bonham000/fcc-react-tests-module
/* eslint-disable */ import React from 'react' import assert from 'assert' import { transform } from 'babel-standalone' import Enzyme from '../Enzyme'; const shallow = Enzyme.shallow; const mount = Enzyme.mount; const render = Enzyme.render; export const QA = true; // ---------------------------- define challenge t...
benchmarks/dom-comparison/src/implementations/reactxp/Dot.js
risetechnologies/fela
/* eslint-disable react/prop-types */ import React from 'react'; import { Styles, View } from 'reactxp'; const Dot = ({ size, x, y, children, color }) => ( <View children={children} style={[ styles.root, { borderBottomColor: color, borderRightWidth: `${size / 2}px`, border...
ajax/libs/react-router/0.5.0/react-router.min.js
askehansen/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){return function e(t,n,r)...
ajax/libs/forerunnerdb/1.3.631/fdb-core+persist.min.js
CyrusSUEN/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
docs/0.6304d3bec3c1efe374c4.js
lhf-nife/quark-ui
webpackJsonp([0],{"0h7d":function(e,t){e.exports="import { Component } from 'react';\nimport Icon from '../../icon';\nimport Radio from '../../radio';\nimport Button from '../../button';\nimport Tabs from '../Tabs';\nimport Panel from '../Panel';\n\nTabs.Panel = Panel;\n\nclass TabsDemo1 extends Component {\n construc...
test/TableSpec.js
Firfi/meteor-react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Table from '../src/Table'; describe('Table', function () { it('Should be a table', function () { let instance = ReactTestUtils.renderIntoDocument( <Table /> ); assert.equal(React.findDOMNode(instance).nodeName,...
js/jqwidgets/demos/react/app/gauge/defaultfunctionality/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGauge from '../../../jqwidgets-react/react_jqxgauge.js'; import JqxLinearGauge from '../../../jqwidgets-react/react_jqxlineargauge.js'; class App extends React.Component { componentDidMount() { document.getElementById('svgChart').child...
src/CustomDrag.js
nzinov/phystech-seabattle
import React from 'react'; import { useDragLayer } from 'react-dnd'; const layerStyles = { position: 'fixed', pointerEvents: 'none', zIndex: 100, left: 0, top: 0, width: '100%', height: '100%', }; function getItemStyles(initialOffset, currentOffset) { if (!initialOffset || !currentOffs...
files/videojs/5.0.0-rc.34/video.js
jgravois/jsdelivr
/** * @license * Video.js 5.0.0-rc.34 <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...
react/app/UserProfile.js
yogeshkhatri1989/hn
import React, { Component } from 'react'; import ReactFire from 'reactfire'; import DOMPurify from 'dompurify'; import Model from './Model'; class UserProfile extends Component { constructor(props) { super(props); this.state = {}; } componentWillMount() { ReactFire.componentWillMount.call(this); ...
packages/gatsby-codemods/src/transforms/__testfixtures__/gatsby-plugin-image/multiple.input.js
gatsbyjs/gatsby
import React from "react" import { graphql } from "gatsby" import Img from "gatsby-image" <div> <Img fixed={data.file.childImageSharp.fixed} alt="headshot"/> <Img fixed={data.banner.childImageSharp.fixed} alt="headshot"/> </div> export const query = graphql` query { file(relativePath: { eq: "head...
app/containers/App/index.js
7ruth/PadStats2
/** * * App * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; import Helmet from 'react-helmet'; import styled from 'styled-components'; import Header from 'components/Header'; import F...
app/javascript/mastodon/features/favourited_statuses/index.js
h-izumi/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites'; import Column from '../ui/components/column'; import Stat...
src/models/chart-data/heikin-ashi-chart.model.js
vitaliipetrenko/mobx-react-proto1
import React from 'react' import { CandlestickSeries } from 'react-stockcharts/lib/series' import { heikinAshi } from "react-stockcharts/lib/indicator"; export const heikinAshiChartModel = { label: 'Heikin Ashi Chart', calculators: [heikinAshi()], components: [<CandlestickSeries key={1} />] }
src/views/HomePage.js
ArmanAbbasi/react-js-starter-kit
import React from 'react'; import { Link } from 'react-router'; import Map from 'components/map/Map'; const HomePage = () => { return ( <div> Home page <Link to="/listing">Listing</Link> <Map /> </div> ); }; export default HomePage;
app/utils/injectSaga.js
react-boilerplate/react-boilerplate
import React from 'react'; import hoistNonReactStatics from 'hoist-non-react-statics'; import { ReactReduxContext } from 'react-redux'; import getInjectors from './sagaInjectors'; /** * Dynamically injects a saga, passes component's props as saga arguments * * @param {string} key A key of the saga * @param {funct...
bo/src/app/components/AddUser.js
jilion107/WebBoilerplate
/** * Created by jilion.chen on 3/10/2017. */ import React from 'react'; import { Form, Select, Input, Button, Checkbox, Modal} from 'antd'; import UsersStore from '../stores/UsersStore'; import UsersActions from '../actions/UsersActions'; import CompanyActions from '../actions/CompanyActions'; import CompanyStore fr...
src/ComicSeriesInstance.js
AndrewCMartin/idb
import React from 'react' import { Link } from 'react-router-dom' import {Row, Col} from 'react-bootstrap' import './instance.css' var axios = require('axios'); class ComicSeriesInstance extends React.Component { constructor(props) { super(props); this.state = { comic_series: {} ...
Initial/src/client/app/components/ToDoApp.js
Louis0503/TestRact
'use strict' import React from 'react'; const TodoList = (props) => ( <ul> { props.items.map((item) => ( <li key={item.id}>{item.text}</li> )) } </ul> ); // 整個 App 的主要元件,這邊比較重要的是事件處理的部份 class ToDoApp extends React.Component { constructor(props) { ...
client2/components/protected/__test__/HeaderQuiz.spec.js
QuizChatbot/quiz-chatbot
import React from 'react'; import { shallow, mount, render } from 'enzyme'; import HeaderQuiz from '../HeaderQuiz' describe('HeaderQuiz component test', () => { const func = () => { } it('should render QuizInput component', () => { const Wrapper = shallow(<HeaderQuiz addQuiz={func} />) expect(Wrapper.find...
src/components/simple_list.js
lizarraldeignacio/personal-website
import React, { Component } from 'react'; import SimpleItem from './simple_item'; import _ from 'lodash'; import { firebaseConnect } from 'react-redux-firebase'; /** SimpleList list of Simple elements Params: elements: The elements that the list will contain itemClass: The class of the elements that the l...
ajax/libs/forerunnerdb/1.3.673/fdb-legacy.js
nolsherry/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/forerunnerdb/1.3.597/fdb-core+persist.min.js
joeyparrish/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
app/javascript/spec/retirement-form/retirement-form.spec.js
ManageIQ/manageiq-ui-classic
import React from 'react'; import toJson from 'enzyme-to-json'; import fetchMock from 'fetch-mock'; import { act } from 'react-dom/test-utils'; import { mount } from '../helpers/mountForm'; import RetirementForm from '../../components/retirement-form/index'; describe('Retirement Form Component', () => { afterEach((...
app/components/Test/index.js
GeorgeZhukov/react-todo
/** * * Test * */ import React from 'react'; // import styled from 'styled-components'; class Test extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <div> Test </div> ); } } Test.propTypes = { }; export default Test;
packages/material-ui-icons/src/CardMembership.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let CardMembership = props => <SvgIcon {...props}> <path d="M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V4h16v6z" /> </SvgIcon>; ...
wisekb-web/src/main/webapp/flamingo/ext/classic/classic/src/Component.js
hyokun31/wisekb-management-platform
/** * Base class for all Ext components. * * The Component base class has built-in support for basic hide/show and enable/disable * and size control behavior. * * ## xtypes * * Every component has a specific xtype, which is its Ext-specific type name, along with * methods for checking the xtype like {@link #ge...
app/javascript/mastodon/components/column_header.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FormattedMessage } from 'react-intl'; class ColumnHeader extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { title: PropTypes.string.isRequire...
ajax/libs/rxjs/2.3.12/rx.all.compat.js
freak3dot/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...
test/SignIn.spec.js
jinmayamashita/quicker
import React from 'react' import { mount, shallow } from 'enzyme' import { expect } from 'chai' import SignIn from '../src/modules/SignIn' describe('<SignIn />', () => { it('should have an input for login to Quicker', () => { const wrapper = shallow(<SignIn/>) expect(wrapper.find('button')).to.have.length(4...
examples/validation/components/submit-button.js
peterox/react-redux-form
import React from 'react'; import { connect } from 'react-redux'; const SubmitButton = ({ user }) => <button type="submit"> Finish registration, {user.firstName} {user.lastName}! </button>; SubmitButton.propTypes = { user: React.PropTypes.shape({ firstName: React.PropTypes.string.isRequired, lastNam...
src/index.js
merry75/ReduxBookLibrary
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware()(createStore); ReactDOM.render( <Provi...
app/components/H3/index.js
JonathanMerklin/react-boilerplate
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
resources/assets/components/ClubsTable.js
DoSomething/rogue
import React from 'react'; import { get } from 'lodash'; import gql from 'graphql-tag'; import { useQuery } from '@apollo/react-hooks'; import Empty from './Empty'; import ErrorBlock from './utilities/ErrorBlock'; import EntityLabel from './utilities/EntityLabel'; import { updateQuery } from '../helpers'; const CLUBS...
src/containers/Root/Root.js
dotlouis/reactive-show
import './Root.css'; import React from 'react'; import Canvas from '../../components/Canvas/Canvas'; import SideBar from '../../components/Sidebar/Sidebar'; const Root = props => ( <div className="Root"> <SideBar /> <Canvas /> </div> ); export default Root;
public/javascript/application/pages/login.js
lalkmim/boiler-pes3
import React, { Component } from 'react'; import './login.scss'; class Login extends Component { constructor(props) { super(props); } render() { return ( <section id="loginForm"> <div className="row"> <form method="post"> ...
src/App/shared/obj.Block/index.js
ProvoJS/i-choose-you
/*** @jsx React.DOM */ import React from 'react' const BASE_STYLE = { block: { display: 'block', }, head: { verticalAlign: 'middle', marginLeft: 'auto', marginRight: 'auto', display: 'inline-block' }, body: { display: 'block', textAlign: 'left' } } const SPACING = { flush: '0...
ajax/libs/yui/3.6.0/event-custom-base/event-custom-base.js
wout/cdnjs
YUI.add('event-custom-base', function(Y) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module ev...
ueditor/third-party/video-js/video.dev.js
chenshuPHP/question
/** * @fileoverview Main function src. */ // HTML5 Shiv. Must be in <head> to support older browsers. document.createElement('video'); document.createElement('audio'); document.createElement('track'); /** * Doubles as the main function for users to create a player instance and also * the main library object. * ...
components/speaker-page.js
jsis/jsconf.is
import React from 'react' import Helmet from 'react-helmet' import './speaker-page.scss' const SpeakerPage = ({ title: name, company, companyWebsite, slug, talk, body, bio, slides, twitter, github, website, path, }) => { // eslint-disable-next-line const profilePic = require(`../images/spea...
node_modules/react-router-dom/es/Link.js
amosdesigns/fmintroreact
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]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/pages/Landing/Head.js
aggiedefenders/aggiedefenders.github.io
import React, { Component } from 'react'; import { Spinner, Menu, MenuItem, MenuDivider, Popover, Position } from "@blueprintjs/core"; import image from "../../assets/img/network.gif"; import Background from "../../assets/img/bg_b.jpg"; import { Button } from 'reactstrap'; import data from '../....
src/components/Hamburger.js
neontribe/spool
import React, { Component } from 'react'; import styles from './css/Hamburger.module.css'; class Hamburger extends Component { static propTypes = { text: React.PropTypes.string, contentClassName: React.PropTypes.string, toggleClassName: React.PropTypes.string, onExpand: React.PropT...
src/components/projects/show/ImageFull.js
tehfailsafe/portfolio
import React from 'react'; const ImageFull = React.createClass({ propTypes: { src: React.PropTypes.string.isRequired, }, render(){ return( <img className="img-fluid project-image" src={this.props.src}></img> ) } }) export default ImageFull;
src/app/core/atoms/icon/icons/stopwatch.js
blowsys/reservo
import React from 'react'; const Stopwatch = (props) => <svg {...props} x="0px" y="0px" viewBox="0 0 14.173 14.171"><g><path d="M10.89,4.673l0.738-0.738l-0.894-0.894L9.997,3.779C9.496,3.395,8.918,3.109,8.289,2.946V1.792H5.884v1.154 C5.256,3.109,4.679,3.395,4.178,3.778L3.44,3.04L2.544,3.936l0.738,0.738C2.663,5.482,2.29,...
packages/strapi-admin/files/public/app/app.js
skelpook/strapi
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name].[ext]!./.htaccess';...
src/index.js
cognostics/serlo-abc
import React from 'react'; import { Text } from 'react-native'; const App = () => <Text>Welcome to Serlo ABC</Text>; export default App;
src/js/client.js
huangkerui/react-basics
import React from "react"; import ReactDOM from "react-dom"; class Layout extends React.Component<any> { render() { return ( <h1>Hello world!</h1> ); } } ReactDOM.render(<Layout />, document.getElementById('app'));
test/PageHeaderSpec.js
apisandipas/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PageHeader from '../src/PageHeader'; describe('PageHeader', function () { it('Should output a div with content', function () { let instance = ReactTestUtils.renderIntoDocument( <PageHeader> <strong>Content</str...
test/test_helper.js
cantonr/ReduxSimpleStarter
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/scenes/Private/index.js
jmahc/that-react-app-you-want
import React from 'react' import './styles.css' export default function Private() { return ( <div className="Private"> <p>This is a private route.</p> </div> ) }
files/yui/3.16.0/datatable-body/datatable-body.js
Craga89/jsdelivr
/* YUI 3.16.0 (build 76f0e08) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('datatable-body', function (Y, NAME) { /** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base...
ajax/libs/yui/3.9.0pr3/datatable-core/datatable-core-debug.js
x112358/cdnjs
YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @since 3.5.0 **/ var INVALID = Y.Attribute.INVALID_VALUE, Lang = Y.Lang, isFunction = Lang.isFunction, isObject = Lang.isO...
admin/client/App/components/Navigation/Secondary/NavItem.js
alobodig/keystone
/** * A navigation item of the secondary navigation */ import React from 'react'; import { Link } from 'react-router'; const SecondaryNavItem = React.createClass({ displayName: 'SecondaryNavItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, href: React.PropType...
src/svg-icons/communication/stay-current-landscape.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayCurrentLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
src/js/components/switch.js
frig-js/frigging-bootstrap
import React from 'react' import cx from 'classnames' import { HigherOrderComponents } from 'frig' import InputErrorList from './input_error_list' import Saved from './saved' import Label from './label' import { sizeClassNames, formGroupCx, inputContainerCx } from '../util.js' import defaultProps from '../default_pro...
modules/RoutingContext.js
jdelight/react-router
import React from 'react'; import invariant from 'invariant'; import getRouteParams from './getRouteParams'; var { array, func, object } = React.PropTypes; /** * A <RoutingContext> renders the component tree for a given router state * and sets the history object and the current location in context. */ var RoutingC...
files/videojs/4.7.2/video.dev.js
spud2451/jsdelivr
/** * @fileoverview Main function src. */ // HTML5 Shiv. Must be in <head> to support older browsers. document.createElement('video'); document.createElement('audio'); document.createElement('track'); /** * Doubles as the main function for users to create a player instance and also * the main library object. * ...
src/routes/Greeter/components/greeter.js
codingarchitect/react-counter-pair
import React from 'react' import { connect } from 'react-redux' import Greeter from './greeter.rt'; export default Greeter
ajax/libs/ember-data.js/1.0.0-beta.12/ember-data.prod.js
dc-js/cdnjs
(function(global){ var enifed, requireModule, eriuqer, requirejs; (function() { var _isArray; if (!Array.isArray) { _isArray = function (x) { return Object.prototype.toString.call(x) === "[object Array]"; }; } else { _isArray = Array.isArray; } var registry = {}, seen = {}, state = {}; ...
local-cli/commands.js
imjerrybao/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
jemandez/astrokosmos
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'));
docs/app/Examples/elements/Label/Variations/LabelExampleColored.js
ben174/Semantic-UI-React
import _ from 'lodash' import React from 'react' import { Label } from 'semantic-ui-react' const colors = [ 'red', 'orange', 'yellow', 'olive', 'green', 'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black', ] const LabelExampleColored = () => ( <div> {colors.map(color => ( <Label color...
ajax/libs/datatables/1.10.1/js/jquery.js
steadiest/cdnjs
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
accio/node/fr/cnrs/liris/lumos/ui/components/jobs/JobListContainer.js
privamov/accio
/* * Accio is a platform to launch computer science experiments. * Copyright (C) 2016-2018 Vincent Primault <v.primault@ucl.ac.uk> * * Accio is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version...
misc/webgui/src/pages/Settings.js
ChainsAutomation/chains
import React from 'react' import PageHeader from '../components/Pageheader'; export default class Settings extends React.Component { render() { return ( <div className="ui main container"> <PageHeader name="Settings" desc="Configure chains settings here"/> </div> ); } }
src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/tests/jquery-1.6.2.js
humphd/brackets
/*! * jQuery JavaScript Library v1.6.2 * 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. ...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js
martincochran/score-minion-react-native
import React, { Component } from 'react'; class Foo extends Component { render() {} }
src/components/CustomTabBar.js
ztplz/CNode-react-native
/** * React Native App * https://github.com/ztplz/CNode-react-native * email: mysticzt@gmail.com */ import React, { Component } from 'react'; import { View, Text, StyleSheet } from 'react-native'; import { connect } from 'react-redux'; import { TabBarBottom } from 'react-navigation'; class CustomTabBar exte...
react/features/unsupported-browser/components/DefaultUnsupportedDesktopBrowser.js
gpolitis/jitsi-meet
/* @flow */ import React, { Component } from 'react'; /** * React component representing unsupported browser page. * * @class DefaultUnsupportedDesktopBrowser */ class DefaultUnsupportedDesktopBrowser extends Component { /** * Redirects to the static recommended browsers page that is also used for IE. ...
src/components/Hero/HeroBackground.js
Bartekus/r3
import React from 'react'; import styles from './Hero.scss'; export default class HeroBackground extends React.Component { static displayName = 'HeroBackground'; static propTypes = { image: React.PropTypes.string.isRequired, }; render() { return ( <div className={ styles.background } style={ { b...
ajax/libs/react-router/0.10.1/react-router.js
nagyist/OpenF2-cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define,module,export...
ajax/libs/clappr/0.0.88/clappr.js
andyinabox/cdnjs
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)...
src/parser/priest/discipline/modules/spells/Penance.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import Statistic from 'interface/statistics/Statistic'; import BoringSpellValue from 'interface/statistics/components/BoringSpellValue'; import EventGrouper from 'parser/core/EventGrouper'; import STATISTIC_ORDE...
packages/containers/src/ComponentForm/fields/NameResolver/NameResolver.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import Form from '@talend/react-forms'; export default function withNameResolver(WrappedComponent) { function NameResolver(props) { function resolveName(value) { // create schema to get entry name from internal properties const key = Array.from(pr...
src/app/components/ListExampleSimple.js
leoliew/react-webpack-example
import React from 'react'; import {List, ListItem} from 'material-ui/List'; import ContentInbox from 'material-ui/svg-icons/content/inbox'; import ActionGrade from 'material-ui/svg-icons/action/grade'; import ContentSend from 'material-ui/svg-icons/content/send'; import ContentDrafts from 'material-ui/svg-icons/content...
src/button/button-icon.js
ricsv/react-leonardo-ui
import React from 'react'; import Icon from '../icon/icon'; const ButtonIcon = (props) => <Icon className="lui-button__icon" {...props} />; export default ButtonIcon;
ajax/libs/glamorous/3.19.1/glamorous.umd.tiny.min.js
froala/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...
fields/types/location/LocationColumn.js
ratecity/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const SUB_FIELDS = ['street1', 'suburb', 'state', 'postcode', 'country']; var LocationColumn = React.createClass({ displayName: 'LocationColumn', propTypes: { co...
js/Landing.js
vipakun/react-workshop-Dec1_2_2016
import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router' import { setSearchTerm } from './actionCreators' const { string, func, object } = React.PropTypes const Landing = React.createClass({ contextTypes: { router: object }, propTypes: { searchTerm: string, ...
src/parser/druid/guardian/modules/azeritetraits/MasterfulInstincts.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import { calculateAzeriteEffects } from 'common/stats'; import { formatPercentage } from 'common/format'; import StatTrack...
client/app/scripts/components/network-selector-item.js
alban/scope
import React from 'react'; import classNames from 'classnames'; import { connect } from 'react-redux'; import { selectNetwork, pinNetwork, unpinNetwork } from '../actions/app-actions'; import { getNetworkColor } from '../utils/color-utils'; class NetworkSelectorItem extends React.Component { constructor(props, cont...
app/javascript/flavours/glitch/components/button.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Button extends React.PureComponent { static propTypes = { text: PropTypes.node, onClick: PropTypes.func, disabled: PropTypes.bool, block: PropTypes.bool, secondary: PropTypes....
src/svg-icons/image/broken-image.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrokenImage = (props) => ( <SvgIcon {...props}> <path d="M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2zm-3 6.42l3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4 ...