path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
8.0.4/examples/wizard/dist/bundle.js | erikras/redux-form-docs | !function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__e... |
src/components/Main.js | rmoliva/bacon_react_pet | require('normalize.css');
require('styles/App.css');
import React from 'react';
let yeomanImage = require('../images/yeoman.png');
class AppComponent extends React.Component {
render() {
return (
<div className="index">
<img src={yeomanImage} alt="Yeoman Generator" />
<div className="noti... |
examples/with-apollo-auth/pages/index.js | arunoda/next.js | import React from 'react'
import cookie from 'cookie'
import { withApollo, compose } from 'react-apollo'
import withData from '../lib/with-data'
import redirect from '../lib/redirect'
import checkLoggedIn from '../lib/check-logged-in'
class Index extends React.Component {
static async getInitialProps (context, apol... |
src/templates/manual-template.js | inkdropapp/docs | import React from 'react'
import PropTypes from 'prop-types'
import { graphql, Link } from 'gatsby'
import ManualLayout from '../components/manual-layout'
export default function Template({
data, // this prop will be injected by the GraphQL query below.
pageContext
}) {
const { pageByPath } = data
const { fron... |
ajax/libs/react-highcharts/15.0.0/ReactHighcharts.src.js | ahocevar/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("highcharts"));
else if(typeof define === 'function' && define.amd)
define(["react", "highcharts"], factory);
else if(typeof exports === 'ob... |
doc/src/theme/ReactLiveScope/index.js | mapillary/mapillary-js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import React from 'react';
import * as three from 'three';
import * as mapillary from '../../mapillary-js/dist/mapil... |
webpack.config.js | KentShikama/vector-web | var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
module: {
preLoaders: [
{ test: /\.js$/, loader: "source-map-loader" }
],
loaders: [
{ test: /\.json$/, loader: "json" },
... |
src/dumb/block_graph/EditableBlockGraph.js | jeckhummer/wf-constructor | import React from 'react';
import {WORKFLOW_GRID} from "../../styles";
import {EditableArrowBlock} from "./EditableArrowBlock";
import {ReadonlyArrowBlock} from "./ReadonlyArrowBlock";
import {Grid} from '../common/Grid';
import {AddBlockCommandBlock} from "./AddBlockCommandBlock";
import {EditableTaskBlock} from './Ed... |
packages/material-ui-icons/src/DescriptionRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M14.59 2.59c-.38-.38-.89-.59-1.42-.59H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8.83c0-.53-.21-1.04-.59-1.41l-4.82-4.83zM15 18H9c-.55 0-1-.45-1-1s.45-1 1-1h6c.55 0 1 .45 1 1s-.45 1-1 1z... |
src/routes.js | webpack/analyse-tool | import React from 'react';
import { Route, IndexRedirect } from 'react-router';
import { requireAuthentication as restrict } from './containers/AuthenticatedComponent';
import AppContainer from './containers/AppContainer';
import HeroPageLayout from './containers/HeroPageLayout';
import AdminPageLayout from './contain... |
ajax/libs/rxjs/2.2.21/rx.js | ppoffice/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/login/v1.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, o... |
src/icons/StrokeAttention.js | ipfs/webui | import React from 'react'
const StrokeAttention = props => (
<svg viewBox='0 0 100 100' {...props}>
<path d='M86.39 70.49L58.6 22.37a7.13 7.13 0 0 0-12.37 0L18.45 70.49a7.15 7.15 0 0 0 6.19 10.72H80.2a7.15 7.15 0 0 0 6.19-10.72zm-2.26 5.84a4.48 4.48 0 0 1-3.93 2.28H24.64a4.55 4.55 0 0 1-3.94-6.82l27.78-48.12a4.5... |
app/view/me/index.js | uuom/aitribe | /**
* Created by yangxp5 on 2017/1/6.
*/
import React, { Component } from 'react';
import {View, StyleSheet, Image,Text,PixelRatio} from 'react-native';
import NavigationBar from '../../component/NavigationBar';
import ListItem from '../../component/ListItem';
export default class Me extends Component {
constr... |
frontend/src/index.js | jotes/pontoon | /* @flow */
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'connected-react-router';
// javascript-time-ago is installed automatically with react-time-ago
// See: https://www.npmjs.com/package/react-time-ago
import JavascriptTimeAgo... |
node_modules/react-bootstrap/es/ModalFooter.js | mohammed52/door-quote-automator | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/index.js | enzoborgfrantz/react-boiler | import React from 'react';
import ReactDOM from 'react-dom';
import App from 'components/App';
ReactDOM.render(<App />, document.getElementById('root'));
|
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js | Jeremy-Meng/actor-platform | import _ from 'lodash';
import React from 'react';
import { Styles, RaisedButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ContactStore from 'stores/ContactStore';
import ContactActionCreators from 'actions/ContactActionCreators';
import AddContactStore from 'stores/AddContactStore'... |
ajax/libs/yasqe/1.5.4/yasqe.bundled.min.js | dakshshah96/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r)... |
src/tests/components/TwoClickCounters.js | bruderstein/unexpected-react | import React, { Component } from 'react';
import ClickCounter from './ClickCounter';
export default class TwoClickCounters extends Component {
render() {
return (
<div>
<ClickCounter className="one" />
<ClickCounter className="two" />
</div>
)
}
}
|
ajax/libs/react-native-web/0.14.2/vendor/react-native/VirtualizedList/index.js | cdnjs/cdnjs | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
'use strict';
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < argument... |
app/scripts/components/popup/templates/climate-by-location/component.js | resource-watch/prep-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class ClimateByLocation extends Component {
static propTypes = {
onModal: PropTypes.func.isRequired
};
render() {
const { onModal } = this.props;
return (
<div className="c-tidal-stations">
<button
... |
ajax/libs/primereact/6.5.0-rc.1/steps/steps.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { classNames, ObjectUtils } from 'primereact/utils';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var... |
src/docs/components/FilterControlDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import FilterControl from 'grommet-addons/components/FilterControl';
import DocsArticle from '../../components/DocsArticle';
import Code from '../../components/Code';
export default class FilterControlDoc ex... |
fields/components/columns/ArrayColumn.js | asifiqbal84/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var ArrayColumn = React.createClass({
displayName: 'ArrayColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.obje... |
e3-portal-web/src/main/webapp/js/jquery-1.4.2.min.js | guo846773272/e3mall | /*!
* 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.
... |
src/App.js | talarari/faster | import React, { Component } from 'react';
import * as plugins from './plugins/index';
import Faster from './Faster'
class App extends React.Component {
render() {
return (
<Faster plugins={plugins}/>
);
}
}
export default App; |
packages/material-ui-icons/src/CloudUploadTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M19.21 12.04l-1.53-.11-.3-1.5C16.88 7.86 14.62 6 12 6 9.94 6 8.08 7.14 7.12 8.96l-.5.95-1.07.11C3.53 10.24 2 11.95 2 14c0 2.21 1.79 4 4 4h13c1.65 0 3-1.35 3-3 0-1.55-1.22-2.86-2.79-2.9... |
ajax/libs/react-bootstrap/0.23.4/react-bootstrap.min.js | magoni/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react")):e.ReactBootstrap=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return ... |
src/components/Header/index.js | bkrall/react-portfolio | import React, { Component } from 'react';
/* component styles */
import { styles } from './header.scss';
export class Header extends Component {
render() {
return (
<section className={styles}>
<header className="top-header">
<div className="container">
<div className="row">... |
src/config/routes.js | bmacheski/gh-contributors | 'use strict';
import React from 'react';
import Main from '../components/Main';
import RepoSearch from '../components/RepoSearch';
import RepoList from '../components/RepoList';
import ContribList from '../components/ContribList'
import { Router, DefaultRoute, Route } from 'react-router';
export default (
<Route na... |
src/svg-icons/image/timer-off.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimerOff = (props) => (
<SvgIcon {...props}>
<path d="M19.04 4.55l-1.42 1.42C16.07 4.74 14.12 4 12 4c-1.83 0-3.53.55-4.95 1.48l1.46 1.46C9.53 6.35 10.73 6 12 6c3.87 0 7 3.13 7 7 0 1.27-.35 2.47-.94 3.49l1.... |
ajax/libs/hyperform/0.9.3/hyperform.js | tholu/cdnjs | /*! hyperform.js.org */
var hyperform = (function () {
'use strict';
var registry = Object.create(null);
/**
* run all actions registered for a hook
*
* Every action gets called... |
src/components/AutoComplete/AutoCompleteInput.js | mrc535s/react-autocomplete | import React from 'react';
export default class AutoCompleteInput extends React.Component {
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this);
this.onFocus = this.onFocus.bind(this);
this.state = {
outline: 'none'
}
}
handleChange(e) {
this.props.onTextChange(e.targe... |
files/tinymce/3.4.9/plugins/legacyoutput/editor_plugin_src.js | firulais/jsdelivr | /**
* 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... |
docs/src/stories/Footers.js | byumark/react-table | /* eslint-disable import/no-webpack-loader-syntax */
import React from 'react'
import _ from 'lodash'
import namor from 'namor'
import ReactTable from '../../../lib/index'
class Story extends React.PureComponent {
render () {
const data = _.map(_.range(5553), d => {
return {
firstName: namor.gener... |
src/index.js | azinasili/githubsearch | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import store from './store';
import App from './views/app/App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>, ... |
src/routes.js | ddewaele/web-gpio-react-starterkit-isomorphic | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
src/main/resources/static/bower_components/jqwidgets/demos/react/app/rangeselector/defaultfunctionality/app.js | dhawal9035/WebPLP | import React from 'react';
import ReactDOM from 'react-dom';
import JqxRangeSelector from '../../../jqwidgets-react/react_jqxrangeselector.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
componentDidMount() {
this.refs.setSelection.on('click',... |
src/js/components/common/loader.js | michaelatmender/gui | import React from 'react';
export const Loader = ({ fade, show, small, style, table, waiting }) => {
const hideClass = fade ? 'hidden' : 'loaderContainer shrunk';
const showClass = table ? 'miniLoaderContainer' : 'loaderContainer';
return (
<div style={style} className={show ? showClass : hideClass}>
<... |
examples/todomvc/src/Root/modules/Todo/components/Header/UI.js | homkai/deef | /**
* Created by Homkai on 2016/11/5.
*/
import React from 'react';
export default ({newTodo, onInput, onAdd}) => {
return (
<header className="header">
<h1>todos</h1>
<input
value={newTodo}
autoFocus
className="new-todo"
placeholder="What needs to be done?"
onChange={onInput}
onKey... |
src/components/stepThree/StepThreeForm.js | oraclesorg/ico-wizard | import React from 'react'
import { Field, FormSpy } from 'react-final-form'
import { FieldArray } from 'react-final-form-arrays'
import { WhenFieldChanges } from '../Common/WhenFieldChanges'
import { InputField2 } from '../Common/InputField2'
import GasPriceInput from './GasPriceInput'
import { gweiToWei } from '../../... |
js/app.js | jonirrings/draftr | /**
* Created by jonirrings on 17/1/7.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import RichTeXEditorExample from './components/RichTeXEditorExample';
ReactDOM.render(
<RichTeXEditorExample />,
document.getElementById('target'),
);
|
src/molecules/archive/pagination/stories.js | dsmjs/components | /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
import React from 'react';
import storyRouter from 'storybook-router';
import {linkTo} from '@storybook/addon-links';
import Pagination from '.';
export default {
title: 'Molecules/Archive/Pagination',
decorators: [
storyRout... |
ajax/libs/yui/3.4.0/event-custom-base/event-custom-base.js | lucasls/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... |
build/updates/3.c398fd0973eee34ad489.hot-update.js | jessiepullaro414/kiwi | require("source-map-support").install();
exports.id = 3;
exports.modules = {
/***/ "./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loade... |
src/views/Filter/AmpView.js | looshi/wavetable-synth-2 | /*
AmpView
ADSR faders for amplitude.
*/
import React from 'react'
import {connect} from 'react-redux'
import VerticalSlider from '../Components/VerticalSlider.js'
import Actions from '../../data/Actions.js'
class AmpView extends React.Component {
onSliderChange (event) {
const {id} = this.props
const name ... |
app/src/client/components/assets/NavLink.js | TeamLambda/DockDev | import React from 'react';
import { Link } from 'react-router';
export default (props) => (
<Link {...props} activeClassName="active" />
);
|
ajax/libs/thorax/2.0.0rc6/thorax.js | DinhAnhTu/cdnjs | /*!
* jQuery JavaScript Library v1.9.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-1-14
*/
(function( window, undefined ) {
"use strict";... |
client/src/components/dashboard/profile/photo-booth.js | mikelearning91/seeme-starter | import React from 'react';
import { captureUserMedia, S3Upload } from './utils/rtc-utils';
import Webcam from './utils/webcam';
import RecordRTC from 'recordrtc';
import Playback from './utils/playback';
import mui from 'material-ui';
import MdIconPack from 'react-icons/lib/md';
import MdCamera from 'react-icons/lib/md... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Create/WSDL/Steps/WSDLValidationStep.js | abimarank/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
node_modules/react-native/local-cli/templates/HelloWorld/__tests__/index.android.js | RahulDesai92/PHR | 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 />
);
});
|
src/clincoded/static/components/inputs/file.js | ClinGen/clincoded | 'use strict';
import React, { Component } from 'react';
import createReactClass from 'create-react-class';
var FileInput = module.exports.FileInput = createReactClass({
getInitialState: function() {
return {
value: this.props.value || {},
};
},
componentWillReceiveProps: funct... |
ajax/libs/aui/5.2-m6/js/aui-all.js | gaearon/cdnjs | /*! AUI Flat Pack - version 5.2-m6 - generated 2013-05-29 03:12:37 -0400 */
/*
* 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
*
* D... |
src/components/devtools.js | mathieuancelin/react-redux-template | import React from 'react';
if (process.env.NODE_ENV === 'production') {
module.exports = { DevTools: React.createClass({
render() {
return null;
},
}) };
} else {
const createDevTools = require('redux-devtools').createDevTools; // eslint-disable-line
const LogMonitor = require('redux-devtools-log... |
examples/counter/containers/App.js | darkxeno/redux-devtools-gentest-plugin | import React, { Component } from 'react';
import CounterApp from './CounterApp';
import { store, reducer } from '../redux-setup';
import { TestMonitor } from 'redux-devtools-gentest-plugin';
import { DevTools, DebugPanel } from 'redux-devtools/lib/react';
import { Provider } from 'react-redux';
export default class A... |
src/modals/ConfirmDialog.js | emfmesquita/beyondhelp | import { Button, Modal } from 'react-bootstrap';
import React, { Component } from 'react';
class ConfirmDialog extends Component {
render() {
return (
<Modal show={this.props.show} onHide={this.props.onCancel}>
<Modal.Body>{this.props.message}</Modal.Body>
<Modal... |
src/browser/components/fetch.js | XeeD/este | import Component from 'react-pure-render/component';
import createFetch from '../../common/components/createFetch';
import React from 'react';
export default createFetch(React, Component);
|
src/components/posts_index.js | marktong11/blog | import React, { Component } from 'react';
import { connect } from 'react-redux';
import {fetchPosts } from '../actions';
import { Link } from 'react-router-dom';
import _ from 'lodash';
class PostsIndex extends Component {
componentDidMount() {
this.props.fetchPosts();
}
renderPosts() {
return _.map(this.... |
lib/back-top/index.js | GuoqingXiong/ant-design | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classC... |
examples/DropdownBasic.js | mattBlackDesign/react-materialize | import React from 'react';
import Button from '../src/Button';
import Dropdown from '../src/Dropdown';
import NavItem from '../src/NavItem';
export default
<Dropdown trigger={
<Button>Drop me!</Button>
}>
<NavItem>one</NavItem>
<NavItem>two</NavItem>
<NavItem divider />
<NavItem>three</NavItem>
</Dropdow... |
ajax/libs/yui/3.12.0/event-focus/event-focus-coverage.js | mfinelli/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-focus/event-focus.js']) {
__coverage__['build/event-focus/event-focus.js'] = {"path":"build/event-focus/event-focus.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"... |
node_modules/semantic-ui-react/dist/es/modules/Search/SearchResults.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
function SearchResults(props) {
var children = props.children,
className = pro... |
docs/src/pages/demos/expansion-panels/ControlledExpansionPanels.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import ExpansionPanel, {
ExpansionPanelDetails,
ExpansionPanelSummary,
} from 'material-ui/ExpansionPanel';
import Typography from 'material-ui/Typography';
import ExpandMoreIcon from '@material-ui/icons/... |
imports/plugins/core/orders/client/templates/workflow/workflow.js | hrath2015/reaction | import { Template } from "meteor/templating";
import { Reaction } from "/client/api";
import { Orders } from "/lib/collections";
/**
* coreOrderWorkflowHelpers
*/
Template.coreOrderWorkflow.helpers({
/**
* orderFulfillmentData
* @summary Creates an Object with order id and a fulfillment object
* @param {... |
src/components/Schedule.js | w1nston/re-conf | import React, { Component } from 'react';
import SwipeableView from 'react-swipeable-views';
import styled from 'styled-components';
import Day from './Day';
export const Title = styled.h1`
font-family: 'Love Ya Like A Sister', 'Arial', 'sans-serif';
font-size: 34px;
`;
export default class Schedule extends Compo... |
server/perkeepd/ui/index.js | mpl/camlistore | /*
Copyright 2014 The Perkeep Authors
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 in writing, softwar... |
src/components/Banner/Banner.js | MarynaHapon/Data-root-react | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Banner.css';
class Banner extends React.Component {
render() {
return (
<div className={s.root}>
<div className={s.banner}>
<h1 className={s.bannerTitle}>Створюємо шедeври <br... |
app/containers/LocaleToggle/index.js | anneback/react-quiz | /*
*
* LanguageToggle
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import Toggle from 'components/Toggle';
import Wrapper from './Wrapper';
import messages from './messages';
import { appLocales } from '../../i18n';
import { changeLocale } from ... |
packages/material-ui-icons/src/Brightness5Rounded.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="M20 15.31l2.6-2.6c.39-.39.39-1.02 0-1.41L20 8.69V5c0-.55-.45-1-1-1h-3.69l-2.6-2.6a.9959.9959 0 0 0-1.41 0L8.69 4H5c-.55 0-1 .45-1 1v3.69l-2.6... |
test/helpers/shallowRenderHelper.js | fenggle/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/components/containers/VehicleContainer.js | Cheffheid/ghibli-react | import React from 'react';
import Vehicle from '../cards/Vehicle';
import api from '../../api';
class VehicleContainer extends React.Component {
constructor() {
super();
this.state = {
objects: {},
};
}
componentDidMount() {
const apiUrl = `${api.url}/vehicles`,
responseData = fetch( apiUrl );
... |
example/vds-react/static/js/48.74fb5f36.chunk.js | anarh/maze | (this["webpackJsonp@visa/vds-react"]=this["webpackJsonp@visa/vds-react"]||[]).push([[48],{281:function(e,n,t){"use strict";t.r(n);var a=t(144),l=t(0),o=t.n(l),r=t(538),s=t.n(r),c=t(2),i=t.n(c),m=t(544),d=t(543),u=t(39),p=t(8),g=t(532),f=t(18),v=t(23),x=t(16),E=t(530),b=t(64),h=t(531),S=t(533),y=t(534),O=t(535),N=t(536)... |
Ch2/02_02/final/public/js/jquery.js | tahoeRobbo/developingForMeanStackLynda | /*! 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... |
examples/todomvc/components/TodoItem.js | michael-ni/redux | import React, { Component, PropTypes } from 'react';
import classnames from 'classnames';
import TodoTextInput from './TodoTextInput';
export default class TodoItem extends Component {
static propTypes = {
todo: PropTypes.object.isRequired,
editTodo: PropTypes.func.isRequired,
deleteTodo: PropTypes.func.... |
src/components/TodoEditForm.js | kclowes/new-edit-blog-fe | import PropTypes from 'prop-types';
import React, { Component } from 'react';
export class TodoEditForm extends Component {
constructor(props) {
super(props);
this.state = {
todo: props.todo,
};
}
handleChange(e) {
const newTodo = Object.assign({}, this.state.todo, {
name: e.target.... |
examples/05 Customize/Handles and Previews/Container.js | pairyo/react-dnd | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
import BoxWithImage from './BoxWithImage';
import BoxWithHandle from './BoxWithHandle';
@DragDropContext(HTML5Backend)
export default class Container extends Component {
... |
src/interface/others/Cooldown.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Icon from 'common/Icon';
import { formatThousands, formatNumber, formatPercentage, formatDuration } from 'common/format';
import { TooltipElement } from 'common/Tooltip';
... |
src/components/ContentFromRTD/index.js | ProteinsWebTeam/interpro7-client | // @flow
import React from 'react';
import T from 'prop-types';
import { createSelector } from 'reselect';
import loadData from 'higherOrder/loadData';
import { getReadTheDocsURL } from 'higherOrder/loadData/defaults';
import ContentFromRST from 'components/ContentFromRST';
/*:: type DataType = null | {
ok: bool,
... |
examples/shopping-cart/index.js | ptkach/redux | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import logger from 'redux-logger'
import thunk from 'redux-thunk'
import reducer from './reducers'
import { getAllProducts } from './actions'
i... |
examples/counter/index.js | abossard/redux | import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementById('root')
);
|
examples/CardImage.js | mattBlackDesign/react-materialize | import React from 'react';
import Card from '../src/Card';
import CardTitle from '../src/CardTitle';
export default
<Card className='small'
header={<CardTitle image='img/sample-1.jpg'>Card Title</CardTitle>}
actions={[<a href='#'>This is a Link</a>]}>
I am a very simple card. I am good at containing small bits o... |
ajax/libs/analytics.js/2.3.26/analytics.min.js | seogi1004/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
app/javascript/mastodon/containers/compose_container.js | masarakki/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { hydrateStore } from '../actions/store';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import Compose f... |
ajax/libs/yui/3.8.0/event-focus/event-focus.js | qooxdoo/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
app/javascript/mastodon/features/compose/components/upload_button.js | yukimochi/mastodon | import React from 'react';
import IconButton from '../../../components/icon_button';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 're... |
test/DropdownToggleSpec.js | xsistens/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import DropdownToggle from '../src/DropdownToggle';
describe('DropdownToggle', function() {
const simpleToggle = <DropdownToggle open={false} title='herpa derpa' />;
it('renders toggle button', function() {
const instance = Reac... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | wunsmat/matts-project | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
ajax/libs/emotion-core/10.3.0/emotion-element-39b82f0b.esm.min.js | cdnjs/cdnjs | import _inheritsLoose from"@babel/runtime/helpers/esm/inheritsLoose";import{createContext,forwardRef,createElement,Component,Fragment}from"react";import createCache from"@emotion/cache";import{getRegisteredStyles,insertStyles}from"@emotion/utils";import{serializeStyles}from"@emotion/serialize";var BasicProvider,isBrows... |
frontend/app/components/Alphabet/AlphabetPage.js | First-Peoples-Cultural-Council/fv-web-ui | /*
Copyright 2016 First People's Cultural Council
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 in w... |
src/svg-icons/content/sort.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentSort = (props) => (
<SvgIcon {...props}>
<path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/>
</SvgIcon>
);
ContentSort = pure(ContentSort);
ContentSort.displayName = 'ContentSort';
ContentSort.mui... |
ajax/libs/yui/3.11.0/event-focus/event-focus-debug.js | codevinsky/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
src/js/components/icons/base/FormClock.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... |
client/modules/core/components/.stories/poll.js | thancock20/voting-app | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { withKnobs, text, boolean, number, object } from '@kadira/storybook-addon-knobs';
import { setComposerStub } from 'react-komposer';
import Poll from '../poll.jsx';
storiesOf('core.Poll', module)
.addDecorator(withKnobs)
.add(... |
app/components/AddTask/GMaps/index.js | theterra/newsb | import React from 'react';
import './MapStyle.css';
let searchBox;
export default class GMaps extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this.geolocate = this.geolocate.bind(this);
this.initAutocomplete = this.initAutocomplete.bind(this);
this.searchBoxPlaces ... |
Examples/2048/GameBoard.js | JulienThibeaut/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,
... |
examples/using-jest/src/pages/404.js | 0x80/gatsby | import React from 'react'
import Layout from '../components/layout'
const NotFoundPage = () => (
<Layout>
<h1 data-testid="not-found">NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</Layout>
)
export default NotFoundPage
|
ajax/libs/flocks.js/0.15.5/flocks.js | Nadeermalangadan/cdnjs | /** @jsx React.DOM */
/* jshint node: true, browser: true, newcap: false */
/* eslint-env node,browser */
/**
* The Flocks library module.
*
* @module Flocks
* @main Flocks
* @class Flocks
*/
// if it's in a <script> it's defined already
// otherwise assume commonjs
if (typeof React =... |
ajax/libs/rxjs/2.4.7/rx.compat.js | raszi/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
};
... |
renderer/components/MockComponentTree.js | reactide/reactide | import React from 'react';
class MockComponentTree extends React.PureComponent {
constructor(props) {
super(props);
}
// input for renderChildrenTrees is an array of objects
renderChildrenTrees(children) {
// children should be an array
// children are the children components
// if (children.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.