path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
resolvers/subschema-resolver-renderedtemplate/src/index.js
jspears/subschema-devel
import React from 'react'; import renderTemplate from 'subschema-rendertemplate'; /** * Renders a component into a node. * * @param Clazz * @param key */ export default { resolver: { renderedTemplate: function(Clazz, key) { Clazz::this.property(key, renderedTemplate$resolver); } ...
ajax/libs/react-three-renderer/3.2.1/descriptors/Geometry/TubeGeometryDescriptor.js
cdnjs/cdnjs
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
ajax/libs/forerunnerdb/1.3.407/fdb-all.min.js
viskin/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/src/examples/elements/Segment/Variations/SegmentExampleVeryPadded.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleVeryPadded = () => ( <Segment padded='very'>Very padded content.</Segment> ) export default SegmentExampleVeryPadded
client/src/components/student/StudentSearch.js
yegor-sytnyk/contoso-express
import React from 'react'; const StudentSearch = ({search, onChange, onKeyPress, onClick}) => { let searchStyle = {marginTop: 10 + 'px'}; let inputStyle = {marginRight: 10 + 'px', marginLeft: 10 + 'px'}; return ( <div style={searchStyle}> Find by name: <input type="text" ...
src/app/ResponseSection.js
agnivade/quictionary
'use strict'; import React from 'react'; import Paper from 'material-ui/Paper'; import RefreshIndicator from 'material-ui/RefreshIndicator'; import {deepOrange700} from 'material-ui/styles/colors'; const styles = { paper: { maxWidth: 600, margin: '0 auto', marginTop: 50, padding: 5, }, refresh: {...
Web-Platform/1.0/react入门操作/components/Main.js
rexlin600/BasicPlatform
require('normalize.css/normalize.css'); require('styles/App.css'); import React from 'react'; let yeomanImage = require('../images/yeoman.png'); let time = '5' ; class AppComponent extends React.Component { constructor (props) { super(props); this.state = { time : '5' } } componentDidMount () { ...
ajax/libs/analytics.js/1.3.4/analytics.min.js
smcguinness/cdnjs
(function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resol...
docs/src/pages/GettingStartedPage.js
chris-gooley/react-materialize
import React from 'react'; import Row from 'Row'; import Col from 'Col'; import ReactPlayground from './ReactPlayground'; const GettingStartedPage = () => { const htmlSetup = `<head> <!-- Import Google Icon Font --> <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <!-- Impo...
src/svg-icons/action/question-answer.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionQuestionAnswer = (props) => ( <SvgIcon {...props}> <path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/> </SvgIcon> ); ...
ajax/libs/video.js/5.2.1/video.js
BenjaminVanRyseghem/cdnjs
/** * @license * Video.js 5.2.1 <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 Versi...
packages/react-error-overlay/src/components/Collapsible.js
tharakawj/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { Component } from 'react'; import { black } from '../styles'; import type { Element as ReactElement } from '...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/lib/PanelGroup.js
Akkuma/npm-cache-benchmark
'use strict'; exports.__esModule = true; var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _assign = require('babel-runtime/core-js/object/assign'); var _assign2 = _interopRequireDefault(_assign); var _objectWithoutProperties2 = require('babel-runtime...
packages/reactor-kitchensink/src/NavTree.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Panel, SearchField, Toolbar, TreeList } from '@extjs/ext-react'; export default class NavTree extends Component { filterNav = (field, value) => { const { store } = this.props; this.filterRegex = new RegExp(`(${Ext.String.escapeRegex(value)})`, 'i'...
ajax/libs/zoid/9.0.54/zoid.frameworks.min.js
cdnjs/cdnjs
!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("zoid",[],e):"object"==typeof exports?exports.zoid=e():n.zoid=e()}("undefined"!=typeof self?self:this,(function(){return function(n){var e={};function r(t){if(e[t])return e[t].exports;var o=e...
packages/material-ui-icons/src/TextureTwoTone.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="M11.88 3L3 11.88v2.83L14.71 3zM3 5v2l4-4H5c-1.1 0-2 .9-2 2zM19.51 3.08L3.08 19.51c.09.34.27.65.51.9.25.24.56.42.9.51L20.93 4.49c-.19-.69-.73-...
test/containers/CounterPage.spec.js
swiecki/strigine
import { expect } from 'chai'; import React from 'react'; import { renderIntoDocument, scryRenderedDOMComponentsWithTag, findRenderedDOMComponentWithClass, Simulate } from 'react-addons-test-utils'; import { Provider } from 'react-redux'; import CounterPage from '../../app/containers/CounterPage'; import config...
ajax/libs/foundation/4.0.8/js/vendor/jquery.js
RubaXa/cdnjs
/*! * jQuery JavaScript Library v1.9.1 * 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-2-4 */ (function( window, undefined ) { // Can't do t...
react-flux-mui/js/material-ui/src/svg-icons/notification/event-busy.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationEventBusy = (props) => ( <SvgIcon {...props}> <path d="M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V...
app/containers/FeaturePage/tests/ListItemTitle.test..js
omniva/react
import React from 'react'; import expect from 'expect'; import { shallow } from 'enzyme'; import ListItemTitle from '../ListItemTitle'; describe('<ListItemTitle />', () => { it('should render an <p> tag', () => { const renderedComponent = shallow(<ListItemTitle />); expect(renderedComponent.type()).toEqual(...
ajax/libs/algoliasearch/3.32.1/algoliasearch.angular.js
joeyparrish/cdnjs
/*! algoliasearch 3.32.1 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */ (function(f){var g;if(typeof window!=='undefined'){g=window}else if(typeof self!=='undefined'){g=self}g.ALGOLIA_MIGRATION_LAYER=f()})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o...
src/icons/LocalMallIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class LocalMallIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 12h-4c0-5.52-4.48-10-10-10S14 6.48 14 12h-4c-2.21 0-3.98 1.79-3.98 4L6 40c0 2.21 1.79 4 4 4h28c2.21 ...
src/components/Picker/index.js
RayBenefield/halo-forge
import React from 'react'; import classes from 'classnames'; import map from 'lodash/map'; import equip from './equip'; const Picker = React.createClass({ getInitialState() { return { show: false }; }, show() { this.setState({ show: !this.state.show }); }, render() { const {...
frontend/src/states/States.js
mchughmk/react-django
import React, { Component } from 'react'; export default class States extends Component { render() { this.props.states.sort(function(a, b) { if (a.name === b.name) return 0; return a.name < b.name ? -1 : 1; }); var stateOptions = this.props.states.map(functio...
jest-integration/tests/functions/1-create-initial-snapshots/ClickCounter.spec.js
bruderstein/unexpected-react
import React from 'react'; import ClickCounter from '../ClickCounter'; import TestRenderer from 'react-test-renderer'; import Unexpected from 'unexpected'; import jestSnapshot from 'jest-snapshot'; import UnexpectedReact from '../../unexpected-react-test-renderer'; const expect = Unexpected.clone().use(UnexpectedReac...
docs/website/src/components/shared/Content.js
adaltas/node-nikita
// React import React from 'react' import PropTypes from 'prop-types' // Material UI import { useTheme } from '@material-ui/core/styles' import Button from '@material-ui/core/Button' import EditIcon from '@material-ui/icons/EditOutlined' import Toc from "./Toc" require('prismjs/themes/prism.css') const useStyles = th...
app/components/Index.js
jmcolella/unique-twitter-followers
import React from 'react'; import { Link } from 'react-router'; import Button from './Button'; import '../assets/stylesheets/index.scss'; const Index = () => { return ( <div className='index-container fade-in'> <div className='index-presentation'> <i className="fa fa-4x fa-twitter" aria-hidden="tru...
fields/types/name/NameColumn.js
andrewlinfoot/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; import displayName from 'display-name'; var NameColumn = React.createClass({ displayName: 'NameColumn', propTypes: { col: React.PropTypes.object, data: React.Pr...
ajax/libs/analytics.js/2.2.5/analytics.js
JohnKim/cdnjs
(function outer(modules, cache, entries){ /** * Global */ var global = (function(){ return this; })(); /** * Require `name`. * * @param {String} name * @param {Boolean} jumped * @api public */ function require(name, jumped){ if (cache[name]) return cache[name].exports; if (mo...
src/js/components/AccessDeniedPage.js
jcloud-shengtai/dcos-ui_CN
import React from "react"; import AuthStore from "../stores/AuthStore"; import AlertPanel from "./AlertPanel"; import AlertPanelHeader from "./AlertPanelHeader"; import Config from "../config/Config"; import MetadataStore from "../stores/MetadataStore"; const METHODS_TO_BIND = ["handleUserLogout"]; module.exports = ...
packages/icons/src/md/maps/Place.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdPlace(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M24 4c7.73 0 14 6.27 14 14 0 10.5-14 26-14 26S10 28.5 10 18c0-7.73 6.27-14 14-14zm0 19c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z" /> </I...
src/svg-icons/av/hd.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHd = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-...
sample/app/Graph.js
ybarukh/react-cytoscape
import React, { Component } from 'react'; import { ReactCytoscape, cytoscape } from '../../lib'; import { Grid, Row, Col, Button, ButtonToolbar, FormGroup, ControlLabel, FormControl } from "react-bootstrap"; import './style.css' class Graph extends Component { getElements() { return { nodes: [ ...
app/javascript/mastodon/components/radio_button.js
tootcafe/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class RadioButton extends React.PureComponent { static propTypes = { value: PropTypes.string.isRequired, checked: PropTypes.bool, name: PropTypes.string.isRequired, onChange: PropTypes....
server/server.js
Cathje/KLP
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import IntlWrapper from '../client/modules/Intl/IntlWrapper'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.confi...
packages/material-ui-icons/src/ArrowDownward.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z" /></g> , 'ArrowDownward');
packages/material-ui/src/Input/InputLabel.js
cherniavskii/material-ui
// @inheritedComponent FormLabel import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; import { FormLabel } from '../Form'; export const styles = theme => ({ root: { transformOrigin: 'top left', }, formControl: { ...
app/javascript/mastodon/features/direct_timeline/components/conversations_list.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ConversationContainer from '../containers/conversation_container'; import ScrollableList from '../../../components/scroll...
node_modules/tslint/lib/configs/recommended.js
shreyasmulay23/Git_Repo_Angular2
"use strict"; exports.rules = { "align": [true, "parameters", "statements", ], "class-name": true, "comment-format": [true, "check-space", ], "curly": true, "eofline": true, "forin": true, "indent": [true, "spaces"], "interface-name": [true, "always-prefix...
ajax/libs/forerunnerdb/1.3.47/fdb-core.min.js
sreym/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...
ajax/libs/react-native-web/0.11.5/vendor/react-native/ViewabilityHelper/index.js
cdnjs/cdnjs
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return O...
src/modules/slide/default/__tests__/component.spec.js
danielsneijers/markslide
import React from 'react' import { shallow } from 'enzyme' import { component as DefaultSlide } from '../component' let tree const componentProps = { index: 2, content: `<pre><code class="lang-javascript"><span class='code-row'>console<span class="token punctuation">.</span><span class="token function">log</span><...
server/node_modules/babel-core/lib/transformation/helpers/build-react-transformer.js
mchiba52/mystocks-angularv2
// Based upon the excellent jsx-transpiler by Ingvar Stepanyan (RReverser) // https://github.com/RReverser/jsx-transpiler // jsx "use strict"; exports.__esModule = true; // istanbul ignore next function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null...
analysis/demonhuntervengeance/src/modules/talents/FeedTheDemon.js
anom0ly/WoWAnalyzer
import { formatPercentage, formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import SpellUsable from 'parser/shared/modules...
__tests__/components/Select-test.js
codeswan/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react/lib/ReactTestRenderer'; import Select from '../../src/js/components/Select'; // needed because this: // https://github.com/facebook/jest/issues/1353 jest.mock('react-dom'); describe('Select', ...
src/routes/Counter/components/Counter.js
ds160607/pwa_boilerplate
import React from 'react' export const Counter = (props) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {props.counter}</h2> <button className='btn btn-default' onClick={props.increment}> Increment </button> {' '} <button className='btn btn-default' onClick={props.doubleAsync}> ...
test/test_helper.js
tpechacek/redux-blog
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/home/header/logo/logo.js
OperationCode/operationcode_frontend
import React from 'react'; import { Link } from 'react-router-dom'; import logo from 'images/logos/small-white-logo.png'; import styles from './logo.css'; const Logo = () => ( <div className={styles.logo} > <Link to="/"><img src={logo} alt="" /></Link> </div> ); export default Logo;
src/components/NoResults.js
joellanciaux/Griddle
import React from 'react'; const NoResults = ({ className, style }) => ( <div style={style} className={className}> No results found. </div> ); export default NoResults;
src/components/elements/Profile.js
elbstack/elbstack-hackreact-web-3
import React from 'react' import styles from './Profile.scss' import { IndexLink } from 'react-router' import { connect } from 'react-redux' @connect( state => ({ user_name: state.sendbird.user_name }) ) export default class Profile extends React.Component { render() { return ( <nav className="tex...
assets/jqwidgets/demos/react/app/knob/semiknob/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxKnob from '../../../jqwidgets-react/react_jqxknob.js'; class App extends React.Component { render() { let marks = { colorRemaining: "#333", colorProgress: "#17a25d", offset: '75%', thickn...
ajax/libs/vue/1.0.0-beta.1/vue.js
mgoldsborough/cdnjs
/*! * Vue.js v1.0.0-beta.1 * (c) 2015 Evan You * Released under the MIT License. */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); el...
examples/js/cell-edit/blur-to-save-table.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
docs/src/modules/components/MarkdownElement.js
allanalexandre/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { connect } from 'react-redux'; import marked from 'marked'; import { withStyles } from '@material-ui/core/styles'; import textToHash from 'docs/src/modules/utils/textToHash'; import compose from 'docs/src/modules/utils/compo...
dist-modules/Tag.js
jkusachi/react-tags
'use strict'; var React = require('react'); var _require = require('react-dnd'); var DragSource = _require.DragSource; var DropTarget = _require.DropTarget; var flow = require('lodash/function/flow'); var ItemTypes = { TAG: 'tag' }; var tagSource = { beginDrag: function beginDrag(props) { return { id:...
examples/with-vendor-bundle/src/server.js
jaredpalmer/react-production-starter
import App from './App'; import React from 'react'; import express from 'express'; import { renderToString } from 'react-dom/server'; const assets = require(process.env.RAZZLE_ASSETS_MANIFEST); const scripts = Object.keys(assets).reduce((scripts, key) => { return ( scripts + `<script src="${assets[key].js}" def...
submissions/arqex/static/bundle.js
gterzian/flux-challenge
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
ajax/libs/videomail-client/2.0.13/videomail-client.js
joeyparrish/cdnjs
(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=self}else{g=this}g.VideomailClien...
src/Drawer/Drawer.spec.js
igorbt/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow, mount} from 'enzyme'; import {assert} from 'chai'; import Drawer from './Drawer'; import getMuiTheme from '../styles/getMuiTheme'; import merge from 'lodash.merge'; describe('<Drawer />', () => { const muiTheme = getMuiTheme(); const shallowWithCon...
src/nav.js
Schmavery/sixteen-fs
import React, { Component } from 'react'; import Util, {Hover, Image, ProfilePic} from './util'; import Data from './data'; class NavListTopItem extends Component { render() { var img; var style = { width:'20px', height:'20px', margin:'4px' }; if (this.props.user) { img = ...
src/pages/page-2.js
ArghTeam/argh.team
import React from 'react' import Link from 'gatsby-link' const SecondPage = () => ( <div> <h1>Hi people</h1> <p>Welcome to page 2</p> <Link to="/">Go back to the homepage</Link> </div> ) export default SecondPage
ajax/libs/videomail-client/2.1.17/videomail-client.min.js
him2him2/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).VideomailClient=e()}}(function(){var e;return function e(t,n,i)...
src/svg-icons/notification/tap-and-play.js
lawrence-yu/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...
examples/todomvc/test/components/TodoItem.spec.js
mvanlonden/redux
import expect from 'expect'; import jsdomReact from '../jsdomReact'; import React from 'react/addons'; import TodoItem from '../../components/TodoItem'; import TodoTextInput from '../../components/TodoTextInput'; const { TestUtils } = React.addons; function setup( editing = false ) { const props = { todo: { ...
ajax/libs/x-editable/1.4.5/jquery-editable/js/jquery-editable-poshytip.js
masklinn/cdnjs
/*! X-editable - v1.4.5 * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery * http://github.com/vitalets/x-editable * Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */ /** Form with single input element, two buttons and two states: normal/loading. Applied as jQuery method to DIV tag (not to for...
docs/pages/api/typography.js
kybarg/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './typography.md'; export default function Page() { return <MarkdownDocs markdown={markdown} />; }
js/jqwidgets/demos/react/app/datetimeinput/localization/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDateTimeInput from '../../../jqwidgets-react/react_jqxdatetimeinput.js'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; class App extends React.Component { componentDidMount() { this.refs.myDropDownLis...
website/static/vendor/knockout-validation/knockout.validation.js
alexschiller/osf.io
/*============================================================================= Author: Eric M. Barnard - @ericmbarnard License: MIT (http://opensource.org/licenses/mit-license.php) Description: Validation Library for KnockoutJS Version: 2.0.0-pre.3 =============...
src/stories/QuickForm.basic.js
mazlix/react-form-simple-schema
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { MyRequestOrgSchema } from '../_fixture-schema-request-form'; import QuickForm from '../QuickForm'; require("!style!css!less!bootstrap/less/bootstrap.less"); storiesOf('QuickForm Basic', module) .add('just 2 parts of an object...
node_modules/material-ui/svg-icons/image/rotate-left.js
millerman86/CouponProject
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
ajax/libs/forerunnerdb/1.3.724/fdb-core+persist.js
him2him2/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
ajax/libs/phaser/2.0.2/custom/p2.js
zimbatm/cdnjs
/** * The MIT License (MIT) * * Copyright (c) 2013 p2.js authors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
src/components/PostList/component.js
Hylozoic/hylo-redux
import React from 'react' import { filter, includes, isEmpty } from 'lodash/fp' import { changeViewportTop } from '../../util/scrolling' import { makeUrl } from '../../util/navigation' import Post from '../Post' import PostEditor from '../PostEditor' import EventPostCard from '../EventPostCard' import ProjectPostCard f...
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js
Guardiannw/react-native
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
static/src/components/notAuthenticatedComponent.js
pyalwin/redux
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { browserHistory } from 'react-router'; import * as actionCreators from '../actions/auth'; function mapStateToProps(state) { return { token: state.auth.token, userName: state.auth.us...
spec/contrib/jquery.js
aerobicio/garmin-communicator
/*! * jQuery JavaScript Library v1.10.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:48Z */ (function( window, undefined ) { // ...
src/app/components/header.js
rokbar/vivdchat
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { AppBar, IconButton, IconMenu, MenuItem, FlatButton, } from 'material-ui'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; class Login extends Component { s...
ajax/libs/react/0.5.1/react-with-addons.js
Download/cdnjs
/** * React (with addons) v0.5.1 */ !function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.React=e():"undefined"!=typeof global?global.React=e():"undefined"!=typeof self&&(self.React=e())}(function(){var define,module,exports; return ...
examples/with-react-with-styles/pages/index.js
callumlocke/next.js
import React from 'react' import { css, withStyles } from '../withStyles' function Home ({ styles }) { return ( <div> <h1 {...css(styles.title)}>My page</h1> </div> ) } export default withStyles(({ color }) => ({ title: { color: color.primary } }))(Home)
javascript/src/views/DelayedRender.js
unclecheese/silverstripe-kickassets
import React from 'react'; const DelayedRender = React.createClass({ propTypes: { delay: React.PropTypes.number }, _timeout: null, getDefaultProps () { return { delay: 0 } }, getInitialState () { return { active: !this.props.delay } }, componentWillUnmount () { if(this._timeout) { win...
client/app/components/LogActivityCard/index.js
puja1234/DTA
import React, { Component } from 'react'; //import {Glyphicon} from 'react-bootstrap'; import TtnButton from 'core/Button/btn'; import {Card, CardHeader, CardContent, CardFooter} from './../../Core/Card'; class LogActivityCard extends Component{ constructor(props){ super(props); this.state = { ...
es6/connectMenu.js
danbovey/react-contextmenu
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; }; var _createClass = function () { function defineProperties(ta...
src/client/assets/js/components/Cell.js
me-box/iot.red
import React, { Component } from 'react'; import './styles/cells.scss'; class Cell extends React.Component { constructor(props){ super(props); } render() { return (<div> <div className="flexrow" style={{flexBasis:0, overflow:'auto'}}> {this.props.title && <div className="title"> <div className="...
src/components/recentImgs.js
melissa-c/Comms
'use strict' import React from 'react' import ReactDOM from 'react-dom' var recentchoice var recentArray = [] module.exports = class recentImgs extends React.Component { constructor(props){ super(props) this.state = {recentImg: []} } render (){ var recentchoice = this.props.text return...
src/components/DataTableComponent.js
reshak/exodus
/*jshint esnext: true */ 'use strict'; import React from 'react'; import $ from 'jquery'; const Table = require('material-ui/lib/table/table'); const TableBody = require('material-ui/lib/table/table-body'); const TableFooter = require('material-ui/lib/table/table-footer'); const TableHeader = require('material-ui/lib/...
src/components/PhotoComponent.js
sani-banani/photo-location
'use strict'; import React from 'react'; require('styles//Photo.less'); class PhotoComponent extends React.Component { drag(e) { console.log("dragStart"); this.style.opacity = '0.4'; } render() { return ( <div className="photo-component"> <img src={this.props.imageURL} draggable="true...
ajax/libs/material-ui/5.0.0-alpha.12/es/InputBase/utils.js
cdnjs/cdnjs
// Supports determination of isControlled(). // Controlled input accepts its current value as a prop. // // @see https://facebook.github.io/react/docs/forms.html#controlled-components // @param value // @returns {boolean} true if string (including '') or number (including zero) export function hasValue(value) { retur...
classic/src/scenes/mailboxes/src/Scenes/CommandPaletteScene/CommandPaletteSearchItemServiceSub.js
wavebox/waveboxapp
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import { accountStore } from 'stores/account' import CommandPaletteSearchItem from './CommandPaletteSearchItem' import { withStyles } from '@material-ui/core/styles' import FASMapPinIcon from 'wbfa/FAS...
src/client/auth/login.react.js
skaldo/este
import './login.styl'; import Component from '../components/component.react'; import React from 'react'; import exposeRouter from '../components/exposerouter'; import {focusInvalidField} from '../lib/validation'; @exposeRouter export default class Login extends Component { static propTypes = { actions: React.Pr...
fannie/src/javascript/jquery-ui-1.10.4/js/jquery-1.10.2.js
flathat/IS4C
/*! * jQuery JavaScript Library v1.10.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:48Z */ (function( window, undefined ) { // ...
src/App.js
danmactough/react-transform-boilerplate
import React, { Component } from 'react'; import { NICE, SUPER_NICE } from './colors'; class Counter extends Component { constructor(props) { super(props); this.state = { counter: 0 }; this.interval = setInterval(() => this.tick(), 1000); } tick() { this.setState({ counter: this.state.coun...
node_modules/react-bootstrap/es/NavItem.js
jkahrs595/website
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 ...
packages/material-ui-icons/src/BatteryAlertTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM13 18h-2v-2h2v2zm0-4h-2V9h2v5z" /> , 'BatteryAlertTwoTone');
node_modules/@material-ui/core/esm/utils/unstable_useId.js
jerednel/jerednel.github.io
import * as React from 'react'; /** * Private module reserved for @material-ui/x packages. */ export default function useId(idOverride) { var _React$useState = React.useState(idOverride), defaultId = _React$useState[0], setDefaultId = _React$useState[1]; var id = idOverride || defaultId; React.use...
src/js/components/icons/status/OK.js
TiagoJustino/grommet
// (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P. var React = require('react'); var IntlMixin = require('../../../mixins/GrommetIntlMixin'); var uuid = require('node-uuid'); var OK = React.createClass({ mixins: [IntlMixin], propTypes: { a11yTitle: React.PropTypes.string }, render: fu...
docs/src/app/components/pages/components/FontIcon/ExampleIcons.js
w01fgang/material-ui
import React from 'react'; import FontIcon from 'material-ui/FontIcon'; import {red500, yellow500, blue500} from 'material-ui/styles/colors'; const iconStyles = { marginRight: 24, }; const FontIconExampleIcons = () => ( <div> <FontIcon className="material-icons" style={iconStyles}>home</FontIcon> <FontIco...
node_modules/react-slick/src/dots.js
wangi4myself/myFirstReactJs
'use strict'; import React from 'react'; import classnames from 'classnames'; var getDotCount = function (spec) { var dots; dots = Math.ceil(spec.slideCount / spec.slidesToScroll); return dots; }; export var Dots = React.createClass({ clickHandler: function (options, e) { // In Autoplay the focus stays...
pages/itinerary.js
aimanaiman/supernomadfriendsquad
import React from 'react' import Helmet from 'react-helmet' import { config } from 'config' import { prefixLink } from 'gatsby-helpers' import { Link } from 'react-router' import osaka from '../image/osaka.jpg' import chiangmai from '../image/Chiang Mai.jpg' import talin from '../image/talin.jpg' import split...
ajax/libs/foundation/4.0.8/js/vendor/jquery.js
jdanyow/cdnjs
/*! * jQuery JavaScript Library v1.9.1 * 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-2-4 */ (function( window, undefined ) { // Can't do t...
spec/react/iconography/iconography.spec.js
pivotal-cf/pivotal-ui
import React from 'react'; import ReactDOM from 'react-dom'; import {Icon} from '../../../src/react/iconography'; import * as Icons from '../../../src/react/iconography/icons'; describe('iconography', () => { afterEach(() => { ReactDOM.unmountComponentAtNode(root); }); it('works', () => { ReactDOM.rende...