path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
src/svg-icons/image/exposure-zero.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposureZero = (props) => ( <SvgIcon {...props}> <path d="M16.14 12.5c0 1-.1 1.85-.3 2.55-.2.7-.48 1.27-.83 1.7-.36.44-.79.75-1.3.95-.51.2-1.07.3-1.7.3-.62 0-1.18-.1-1.69-.3-.51-.2-.95-.51-1.31-.95-.36-.44...
src/Datetime.js
zanjs/react-ui
"use strict" import React from 'react' import classnames from 'classnames' import { overView, getOuterHeight } from './utils/dom' import * as datetime from './utils/datetime' import clickAway from './higherorder/clickaway' import { requireCss } from './themes' requireCss('datetime') import { getLang, setLang } from ...
ajax/libs/forerunnerdb/1.3.654/fdb-core+views.js
jdh8/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
src/components/NavBar.js
sievins/sarahs-footsteps
import React from 'react' import PropTypes from 'prop-types' import NavItem from './NavItem' import NavDivider from './NavDivider' import styles from './NavBar.scss' NavBar.propTypes = { navItems: PropTypes.arrayOf(PropTypes.shape({ text: PropTypes.string.isRequired, route: PropTypes.string.isRequired, }...
src/Pages/Cafes.js
LaurentEtienne/Kfe
import React, { Component } from 'react'; import CafeStore from '../Stores/Cafe'; let getState = () => { return { companyCafes: CafeStore.getCompanyCafes(), partnerCafes: CafeStore.getPartnerCafes() }; }; class Cafes extends Component { constructor(props) { super(props); this.state = getState(...
app/client/src/scenes/Settings/Settings.js
uprisecampaigns/uprise-app
import React from 'react'; import { List, ListItem } from 'material-ui/List'; import Divider from 'material-ui/Divider'; import Link from 'components/Link'; import s from 'styles/Settings.scss'; function Settings(props) { return ( <div className={s.outerContainer}> <div className={s.innerContainer}> ...
src/components/Forms/Options/Amount.js
CoreyDH/product-finder
import React from 'react'; import {Row, Col, ControlLabel} from 'react-bootstrap'; import Form from "react-jsonschema-form"; // Components export default class Amount extends React.Component { constructor(props) { super(props); this.state = { formData: { amount: this.props.amount }, form: { ...
src/test/containersSpec/ChannelData.spec.js
dramich/Chatson
import React from 'react'; import { mount } from 'enzyme'; import chai, { expect } from 'chai'; import chaiEnzyme from 'chai-enzyme'; import sinon from 'sinon'; chai.use(chaiEnzyme()); import ConnectedChannelData from '../../containers/ChannelData/index'; import configureStore from '../../store/configureStore'; const...
components/CommentForm.js
shioju/testing-react-with-jest
import React from 'react'; export default class CommentForm extends React.Component { constructor() { super(); this.handleSubmit = this.handleSubmit.bind(this); } handleSubmit(e) { e.preventDefault(); const author = React.findDOMNode(this.refs.author).value.trim(); const text = React.findDOM...
mainApp/src/index.js
DongHyunKims/jinniecast
import React from 'react'; import ReactDOM from 'react-dom'; import {BrowserRouter as Router, Route, Switch} from 'react-router-dom'; import App from './App'; import Auth from './components/authComponent/Auth'; import './index.css'; ReactDOM.render(( <Router> <Switch> <Route exact path="/" component={Ap...
docs/pages/api-docs/switch.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'api/switch'; const requireRaw = require.context('!raw-loader!./', false, /\/switch\.md$/); export default function Page({ docs }...
src/components/content/flow.js
HendrikCrause/crossword-creator
import React from 'react' import { Step, Stepper, StepButton, StepContent } from 'material-ui/Stepper' import RaisedButton from 'material-ui/RaisedButton' import FlatButton from 'material-ui/FlatButton' import Introduction from './introduction' import Create from './create' import Review from './review' import { gene...
node_modules/@expo/vector-icons/website/src/App.js
jasonlarue/react-native-flashcards
import React, { Component } from 'react'; import './App.css'; import _ from 'lodash'; const IconFamilies = { Entypo: require('react-native-vector-icons/glyphmaps/Entypo.json'), EvilIcons: require('react-native-vector-icons/glyphmaps/EvilIcons.json'), FontAwesome: require('react-native-vector-icons/glyphmaps/Font...
OdeToFoodGit/packages/jQuery.1.7.1.1/Content/Scripts/jquery-1.7.1.min.js
sabotuer99/drunken-octo-hipster
/*! jQuery v1.7.1 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde...
src/scripts/AppRouter.js
asarode/thoughtshare-fe
import React from 'react' import { Router, Route, Link, IndexRoute, Redirect } from 'react-router' // import createBrowserHistory from 'history/lib/createBrowserHistory' import { App, Sink, HomeView, CreationView, ThoughtView } from './containers' const AppRouter = ( <Router> <Route path='/' component=...
src/components/CollapsibleSection/index.js
ayastreb/money-tracker
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Icon } from 'semantic-ui-react'; import { toggleSectionCollapse } from '../../actions/settings'; import { getCollapsedSections } from '../../selectors/settings'; import './index.css'; const CollapsibleSection...
src/svg-icons/device/gps-fixed.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGpsFixed = (props) => ( <SvgIcon {...props}> <path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.1...
geonode/contrib/monitoring/frontend/src/components/organisms/most-active-ips/index.js
ingenieroariel/geonode
import React from 'react'; import HoverPaper from '../../atoms/hover-paper'; import Map from '../../atoms/map'; import styles from './styles'; class MostActiveIPs extends React.Component { render() { return ( <HoverPaper style={styles.content}> <h3>Most Active IPs</h3> <div style={styles.m...
ajax/libs/jquery/1.4.1/jquery.min.js
sjlu/cdnjs
/*! * jQuery JavaScript Library v1.4.1 * 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/routes/dashboard/components/recentSales.js
terryli1643/thinkmore
import React from 'react' import PropTypes from 'prop-types' import { Table, Tag } from 'antd' import styles from './recentSales.less' import { color } from '../../../utils' const status = { 1: { color: color.green, text: 'SALE', }, 2: { color: color.yellow, text: 'REJECT', }, 3: { color:...
packages/@vega/tracks-tool/src/index.js
VegaPublish/vega-studio
import React from 'react' import {route} from 'part:@vega/core/router' import TracksTool from './components/TracksTool' import routerParams from '@vega/utils/routerParams' const icon = () => <span /> const INTENT_NAMES = ['show'] const ACCEPTED_TYPES = ['article', 'stage', 'track'] function canHandleIntent(intentNam...
Paths/Javascript/06.JavaScript Design Patterns/materials/after/jQuery/packages/jQuery.1.5.1/Content/Scripts/jquery-1.5.1.min.js
phiratio/Pluralsight-materials
/*! * Note: While Microsoft is not the author of this file, Microsoft is * offering you a license subject to the terms of the Microsoft Software * License Terms for Microsoft ASP.NET Model View Controller 3. * Microsoft reserves all other rights. The notices below are provided * for informational purposes only and are ...
test/regressions/tests/Tooltip/PositionedTooltips.js
lgollut/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import Button from '@material-ui/core/Button'; import Tooltip from '@material-ui/core/Tooltip'; const styles = { root: { width: 400, height: 400, ...
example/components/OptionsInput.js
compedit/react-soundcloud-widget
import React from 'react'; import { TextField, } from 'material-ui'; export default class OptionsInput extends React.Component { static propTypes = { default: React.PropTypes.string.isRequired, type: React.PropTypes.string.isRequired, onChange: React.PropTypes.func.isRequired, }; onSubmit(event) {...
lib/List/stories/BasicUsage.js
folio-org/stripes-components
/** * List Component: Basic Usage */ import React from 'react'; import List from '../List'; export default () => { const items = ['Bananas', 'Apples', 'Oranges', 'Kiwis', 'Strawberries']; const itemFormatter = (item, i) => ( <li key={i}> {item} </li> ); return ( <div> List with ar...
docs/client.js
AlexKVal/react-bootstrap
import 'bootstrap/less/bootstrap.less'; import './assets/docs.css'; import './assets/style.css'; import './assets/carousel.png'; import './assets/logo.png'; import './assets/favicon.ico'; import './assets/thumbnail.png'; import './assets/thumbnaildiv.png'; import 'codemirror/mode/htmlmixed/htmlmixed'; import 'codemir...
docs/src/app/components/pages/components/List/ExampleContacts.js
pradel/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import ActionGrade from 'material-ui/svg-icons/action/grade'; import Divider from 'material-ui/Divider'; import Avatar from 'material-ui/Avatar'; import {pinkA200, transparent} from 'mater...
app/components/shape_tween.js
laynemcnish/personal-site
import React, { Component } from 'react'; import d3 from 'd3'; export default class ShapeTween extends Component { componentDidMount () { var node = React.findDOMNode(this); var width = 960, height = 500; var projection = d3.geo.albers() .rotate([120, 0]) .center([15, 35]) ...
app/components/List/index.js
nimzco/takemyidea-ui
import React from 'react'; import styles from './styles.css'; class List extends React.Component { render() { const ComponentToRender = this.props.component; let content = (<div></div>); // If we have items, render them if (this.props.items) { content = this.props.items.map((item, index) => ( ...
packages/jsbattle-webpage/src/containers/test/Footer.spec.js
jamro/jsbattle
import React from 'react'; import {mount} from 'enzyme'; import {Footer} from '../Footer.js'; test('Footer renders properly', () => { const wrapper = mount(<Footer />); expect(wrapper.text()).toMatch('1.0.0-TEST') expect(wrapper.find("a[href='https://github.com/jamro/jsbattle']")).toHaveLength(1); });
js/jquery/jquery-1.8.2.min.js
therebelbeta/liaison-client
/*! jQuery v1.8.2 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d===...
components/BlurImage/BlurImage.js
cobbweb/golittle.red
import React from 'react'; import ReactDOM from 'react-dom'; import blur from './blur'; export default class BlurImage extends React.Component { static propTypes = { radius: React.PropTypes.number, alphaChannel: React.PropTypes.bool } static defaultProps = { radius: 5, alphaChannel: false } c...
src/components/common/svg-icons/file/file-download.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFileDownload = (props) => ( <SvgIcon {...props}> <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/> </SvgIcon> ); FileFileDownload = pure(FileFileDownload); FileFileDownload.displayName = 'FileFileDown...
ajax/libs/yui/3.3.0/event/event-focus.js
margaritis/cdnjs
YUI.add('event-focus', function(Y) { /** * 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, useActivate = YLang.isFunction( Y.DOM.create('<p onbeforeactivate="...
ajax/libs/js-data/0.0.1/js-data.js
aaqibrasheed/cdnjs
/** * @author Jason Dobry <jason.dobry@gmail.com> * @file js-data.js * @version 0.0.1 - Homepage <http://js-data.io/> * @copyright (c) 2014 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Data store. */ !function(e){if("object"==typeof exports&&"undefined"!=typeof modu...
examples/00 Chessboard/Tutorial App/index.js
colbyr/react-dnd
import React, { Component } from 'react'; import Board from './Board'; import { observe } from './Game'; /** * Unlike the tutorial, export a component so it can be used on the website. */ export default class ChessboardTutorialApp extends Component { constructor(props) { super(props); this.unobserve = obse...
app/javascript/app/components/projects/project.js
moisesnandres/mvp-miprimeraapp
import React, { Component } from 'react'; import glamorous from 'glamorous'; import { Image } from 'react-bootstrap'; import { Link } from 'react-router-dom'; import { Row } from 'react-bootstrap'; const ProjectContainer = glamorous.div({ width: '100%', minHeight: '110px', borderRadius: '2px', backgroundColor:...
App.js
Dadidam/gladiator
import React, { Component } from 'react'; import { Layout } from 'antd'; import { connect } from 'react-redux'; import * as storage from 'services/localStorage'; import Hero from 'Hero/Main'; import AppBody from './components/UI/Body'; import AppHeader from './components/UI/Header'; import AppFooter from './components...
packages/material-ui-icons/src/SubdirectoryArrowLeftOutlined.js
lgollut/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M11 9l1.42 1.42L8.83 14H18V4h2v12H8.83l3.59 3.58L11 21l-6-6 6-6z" /> , 'SubdirectoryArrowLeftOutlined');
src/svg-icons/av/queue-music.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvQueueMusic = (props) => ( <SvgIcon {...props}> <path d="M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z"/> </SvgIcon> ); AvQu...
ajax/libs/yui/2.9.0/container/container-debug.js
panshuiqing/cdnjs
/* Copyright (c) 2011, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 2.9.0 */ (function () { /** * Config is a utility used within an Object to allow the implementer to * maintain a list of local configuration properties and liste...
node_modules/material-ui-datatables/node_modules/material-ui/svg-icons/action/extension.js
deepidea/brisk-table
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
src/sh-toast-service.js
SuperheroUI/shToast
import React from 'react'; import ReactDOM from 'react-dom'; import ShToast from './sh-toast'; const rootElement = document.createElement('div'); rootElement.classList.add('sh-modal-Dialog-wrapper'); document.body.appendChild(rootElement); class ShToastService { constructor(content, title, icon, timeout, cssClass...
app/javascript/mastodon/features/compose/components/upload.js
pinfort/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage } fr...
src/svg-icons/image/center-focus-strong.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCenterFocusStrong = (props) => ( <SvgIcon {...props}> <path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V...
client/components/data/Counter.js
VoiSmart/Rocket.Chat
import { Box, Flex, Margins } from '@rocket.chat/fuselage'; import React from 'react'; import Growth from './Growth'; function Counter({ count, variation = 0, description }) { return ( <> <Flex.Container alignItems='end'> <Box> <Box is='span' color='default' fontScale='h1' style...
test/EndToEnd/ProjectTemplates/JScriptVisualBasicLightSwitchProjectTemplate.zip/jquery.mobile-1.3.0.js
jmezach/NuGet2
/* jQuery Mobile v1.3 Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website’s terms of use; or (ii) using the files as included with a Microsoft product subject to that product’s license terms. Mic...
webpack/components/extensions/RegistrationCommands/fields/Force.js
snagoor/katello
import React from 'react'; import PropTypes from 'prop-types'; import { noop } from 'foremanReact/common/helpers'; import { FormGroup, Checkbox } from '@patternfly/react-core'; import LabelIcon from 'foremanReact/components/common/LabelIcon'; import { translate as __ } from 'foremanReact/common/I18n'; const Force = (...
examples/universal/client/index.js
neighborhood999/redux
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import configureStore from '../common/store/configureStore' import App from '../common/containers/App' const initialState = window.__INITIAL_STATE__ const store = configureStore(initialState) con...
src/components/Skill/EchartSkill.js
zhouxuanpo/Big-Demo
import React, { Component } from 'react'; import echarts from 'echarts'; class EchartSkill extends Component { componentDidMount(){ var myChart = echarts.init(document.getElementById('main')); myChart.setOption({ color: ['#3398DB'], tooltip : { trigger:...
ajax/libs/6to5/3.3.4/browser-polyfill.js
sympmarc/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...
packages/bundle/src/adaptiveCards/Attachment/SignInCardContent.js
billba/botchat
import { hooks } from 'botframework-webchat-component'; import PropTypes from 'prop-types'; import React from 'react'; import CommonCard from './CommonCard'; const { useStyleSet } = hooks; const SignInCardContent = ({ actionPerformedClassName, content, disabled }) => { const [{ animationCardAttachment: animationCa...
server/sonar-web/src/main/js/apps/settings/components/inputs/PropertySetInput.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
docs/app/Examples/collections/Form/Shorthand/index.js
aabustamante/Semantic-UI-React
import PropTypes from 'prop-types' import React from 'react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import { Message } from 'semantic-ui-react' const subComponentComparison = { shorthand: "<Form.In...
test/containers/CounterPage.spec.js
careykevin/reddy
import { expect } from 'chai'; import React from 'react'; import { mount } from 'enzyme'; import { Provider } from 'react-redux'; import CounterPage from '../../app/containers/CounterPage'; import configureStore from '../../app/store/configureStore'; function setup(initialState) { const store = configureStore(initi...
packages/babel-types/src/builders/react/buildChildren.js
existentialism/babel
// @flow import { isJSXText, isJSXExpressionContainer, isJSXEmptyExpression, } from "../../validators/generated"; import cleanJSXElementLiteralChild from "../../utils/react/cleanJSXElementLiteralChild"; export default function buildChildren(node: Object): Array<Object> { const elements = []; for (let i = 0;...
Angular JS/newApp/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
akshayvenugopal/angular2-Node.JS-CRUD
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/inferno/1.0.0-alpha1/inferno-compat.min.js
sashberd/cdnjs
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.InfernoCompat=e.InfernoCompat||{})}(this,function(e){"use strict";function n(e){return e instanceof Array}function t(e){var n=e.component;return!s(n.prototype)&&!s(n.prototype.r...
examples/reset-values/app.js
meraki/mki-formsy-react
import React from 'react'; import ReactDOM from 'react-dom'; import { Form } from 'formsy-react'; import createReactClass from 'create-react-class'; import MyInput from './../components/Input'; import MySelect from './../components/Select'; const user = { name: 'Sam', free: true, hair: 'brown' }; const App = c...
examples/dynamic-segments/app.js
ryardley/react-router
import React from 'react'; import { Router, Route, Link, Redirect } from 'react-router'; var App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/user/123">Bob</Link></li> <li><Link to="/user/abc">Sally</Link></li> </ul> {this.props.children} ...
admin/client/Signin/components/Alert.js
matthieugayon/keystone
/** * Renders an Alert. Pass either an isInvalid and invalidMessage prop, or set * the signedOut prop to true to show the standard signed out message */ import React from 'react'; import { Alert } from 'elemental'; const AlertView = function (props) { if (props.isInvalid) { return <Alert key="error" type="dange...
ajax/libs/6to5/1.11.13/browser.js
cloudrifles/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.to5=e()}}(function(){var define,module,exports;return...
src/svg-icons/action/grade.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGrade = (props) => ( <SvgIcon {...props}> <path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/> </SvgIcon> ); ActionGrade = pure(ActionGrade); ActionGrade....
web-server/v0.4/src/pages/RunComparison/index.js
gurbirkalsi/pbench
import React from 'react'; import { connect } from 'dva'; import { Row, Col, Card, Select, Tabs, Spin, Tag, Table, Button, Form, Modal, Input, Switch, message, Collapse, Icon, } from 'antd'; import { ResponsiveBar } from '@nivo/bar'; import DescriptionList from 'ant-design-pro/lib/Descri...
src/components/withConnection.js
zaromev/react-native-connection-info
import React from 'react'; import { NetInfo } from 'react-native'; import { connectionShape } from '../shapes'; const withConnection = ComposedComponent => class extends React.Component { constructor() { super(); this.state = { isConnected: false, }; this.handleIsConnected = this.handleIsConnec...
docs-ui/components/getDynamicText.stories.js
mvaled/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import getDynamicText from 'app/utils/getDynamicText'; storiesOf('Utility|getDynamicText', module).add( 'getDynamicText', withInfo( ` Use this to wrap dynamic content (i.e. dates) for acc...
public/src/js/components/workspace/workspace.js
Robertmw/imagistral
/** * * Workspace Component * @parent none * @author Robert P. * */ import React from 'react'; import BaseComponent from '../base-component/base-component'; import {branch} from 'baobab-react/higher-order'; import Classnames from 'classnames'; import * as actions from './actions'; import {engineInit, deleteEngi...
src/decorators/withViewport.js
djfm/ps-translations-interface-mockup
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component } from 'react'; // eslint-disabl...
me_v0.2/src/components/showEditor/index.js
EdoMagen/project-s-v2
import React, { Component } from 'react'; import { Card, CardHeader, CardText, CardActions, FlatButton, Toggle, Snackbar } from 'material-ui'; import style from './style.scss'; import Shows from '../../api/slideshows/dashboardData'; export default class showEditor extends Component { constructor(props) { ...
modules/elements/CPU.js
jdeskins/k8s-custom-dashboard
import React from 'react' export default React.createClass({ render() { const node = this.props.node; const usage = this.props.usage; const totalCPU = parseInt(node.status.capacity.cpu) * 1000; const percentCPU = parseInt(usage.cpu) / totalCPU; const roundedCPU = Math.round(percentCPU * 100); ...
frontend/components/statistics/StatisticsBar.js
datoszs/czech-lawyers
import React from 'react'; import PropTypes from 'prop-types'; const getHeight = (number, max) => (max !== 0 ? (number / max) * 1.5 : 0); const StatisticsBar = ({number, max, className}) => ( <div className={className} style={{height: `${getHeight(number, max)}em`}} /> ); StatisticsBar.propTy...
ajax/libs/onsen/2.0.0-alpha/js/onsenui.min.js
ahocevar/cdnjs
/*! onsenui - v2.0.0-alpha - 2015-10-13 */ function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a func...
scripts/components/Order.js
BarukhOr/cuddly-giggle-reactjs
/* Order */ import React from 'react'; import CSSTransitionGroup from 'react-addons-css-transition-group'; import helper from '../helpers'; import autobind from 'autobind-decorator'; class Order extends React.Component{ @autobind renderOrder(key){ var fish = this.props.fishes[key]; var count = this.pr...
tests/components/Header/Header.spec.js
dkwingsmt/aporeto-pokemongo
import React from 'react' import { Header } from 'components/Header/Header' import classes from 'components/Header/Header.scss' import { IndexLink, Link } from 'react-router' import { shallow } from 'enzyme' describe('(Component) Header', () => { let _wrapper beforeEach(() => { _wrapper = shallow(<Header/>) ...
src/routes.js
dorono/wecansavedemocracy
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/app'; import ActivitiesList from './containers/ActivitiesList/activities_index'; import ActivitiesNew from './containers/ActivitiesNew/activities_new'; import FindRep from './containers/FindRep/findRepresentative...
React Native/Demos/address_book/Views/manager/addUser.js
AngryLi/ResourceSummary
/** * Created by Liyazhou on 16/8/28. */ import React from 'react'; import { View, Text, ScrollView, StyleSheet, TouchableOpacity, TextInput, PickerIOS, AlertIOS, } from 'react-native'; import Util from './../util'; import Service from './../service'; export default class AddUser e...
src/svg-icons/content/reply.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentReply = (props) => ( <SvgIcon {...props}> <path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/> </SvgIcon> ); ContentReply = pure(ContentReply); ContentReply.displayName = 'ContentReply'...
ajax/libs/rxjs/2.4.10/rx.compat.js
tonytlwu/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false }; ...
src/js/components/Tracks/index.js
StudioLasso/social-music-studio
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as utils from 'utils'; import Timeline from './Timeline'; import Track from './Track'; let colors = [ '#324259', '#ff0508', '#990000', '#ffc100', '#8d6a95', '#4646ea', '#07c7dd', '#f4824e', ...
ajax/libs/forerunnerdb/1.3.641/fdb-all.js
Amomo/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
examples/js/column-filter/custom-filter.js
dana2208/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 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; p...
docs/src/app/components/pages/components/FlatButton/ExampleComplex.js
hai-cea/material-ui
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import FontIcon from 'material-ui/FontIcon'; import ActionAndroid from 'material-ui/svg-icons/action/android'; const styles = { uploadButton: { verticalAlign: 'middle', }, uploadInput: { cursor: 'pointer', position: 'absolute...
packages/react-instantsearch-dom/src/components/Link.js
algolia/react-instantsearch
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { isSpecialClick } from '../core/utils'; export default class Link extends Component { static propTypes = { onClick: PropTypes.func.isRequired, }; onClick = (e) => { if (isSpecialClick(e)) { return; } this...
ajax/libs/jquery-ui-bootstrap/0.5pre/assets/js/jquery-1.8.3.min.js
mscharl/cdnjs
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===...
src/components/EditBox.js
mirman-school/my-schedule
import React from "react"; import { Button, Popup, Input } from 'semantic-ui-react'; export default class EditBox extends React.Component { render(){ var myId = "edit-" + this.props.id + "-text"; var content = ( <div> <Input focus placeholder={this.props.fillerText} id=...
src/components/DragResize/index.js
hamsterbacke23/webcamdisplay-react
import React from 'react'; import PropTypes from 'prop-types'; import {Rnd} from 'react-rnd'; function onResizeStopHandler() { window.dispatchEvent(new Event('resize')); } const DragResize = (props) => ( <React.Fragment> <Rnd default={{ x: props.x, y: props.y, width: props.ini...
test/test_helper.js
mattstuhring/react_redux_weather
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...
ajax/libs/yui/3.3.0pr1/loader/loader-base-debug.js
kennynaoh/cdnjs
YUI.add('loader-base', function(Y) { /** * The YUI loader core * @module loader * @submodule loader-base */ if (!YUI.Env[Y.version]) { (function() { var VERSION = Y.version, BUILD = '/build/', ROOT = VERSION + BUILD, CDN_BASE = Y.Env.base, GALLERY_VERSI...
source/components/navigation-area.js
Aokibi/Regents-Navigation
import React from 'react' import NavigationMap from './navigation-map' import FloorMap from './floor-map' /* Area for rendering the 3D model and 2D floor map. */ class NavigationArea extends React.Component { render() { return( <div> <NavigationMap/> <FloorMap/> </div> ) } } export default Naviga...
modules/jaggery-apps/api-store-web/src/site/themes/fancy/templates/utils/jQRangeSlider/jQDateRangeSlider-min.js
ravihansa3000/product-apim
/*! jQRangeSlider 5.0.2 - 2013-03-17 - Copyright (C) Guillaume Gautreau 2012 - MIT and GPLv3 licenses.*/(function(t){"use strict";t.widget("ui.rangeSliderMouseTouch",t.ui.mouse,{_mouseInit:function(){var e=this;t.ui.mouse.prototype._mouseInit.apply(this),this._mouseDownEvent=!1,this.element.bind("touchstart."+this.widg...
examples/bootstrap-UI-components/src/App.js
tannerlinsley/react-table
import React from 'react' import 'bootstrap/dist/css/bootstrap.min.css'; import BTable from 'react-bootstrap/Table'; import { useTable } from 'react-table' import makeData from './makeData' function Table({ columns, data }) { // Use the state and functions returned from useTable to build your UI const { getTab...
ajax/libs/core-js/0.9.7/library.js
the-destro/cdnjs
/** * Core.js 0.9.7 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(undefined){ 'use strict'; var __e = null, __g = null; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******...
ajax/libs/x-editable/1.4.4/bootstrap-editable/js/bootstrap-editable.js
warpech/cdnjs
/*! X-editable - v1.4.4 * 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...
app/public/index.js
jmcolella/unique-twitter-followers
import React from 'react'; import ReactDOM from 'react-dom'; import routes from '../config/routes'; import App from '../containers/App'; ReactDOM.render( routes, document.getElementById( 'app' ) );
src/index.js
watsonink/obscure-harbor-78183
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app/App'; import DevTools from './DevTools'; import { Provider } from 'react-redux'; import configureStore from './configureStore'; const store = configureStore(); let Root; if (process.env.NODE_ENV === 'development') { Root = () => ( ...
app/scripts/components/UpdateNotification.js
henry40408/awesome-stars
import React from 'react' import { version } from '../../../package.json' export default () => ( <div> <div className='flash flash-full flash-notice'> <div className='container'> <button className='flash-close js-flash-close' type='button' aria-label='Dismiss this mes...
ajax/libs/react/0.5.1/react-with-addons.min.js
pram22/cdnjs
/** * React (with addons) v0.5.1 * * Copyright 2013 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
packages/material-ui-icons/src/WifiLock.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M20.5 9.5c.28 0 .55.04.81.08L24 6c-3.34-2.51-7.5-4-12-4S3.34 3.49 0 6l12 16 3.5-4.67V14.5c0-2.76 2.24-5 5-5zM23 16v-1.5c0-1.38-1.12-2.5-2.5-2.5S18...
app/javascript/mastodon/features/account_timeline/components/header.js
ashfurrow/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import InnerHeader from '../../account/components/header'; import ImmutablePureComponent from 'react-immutable-pure-component'; import MovedNote from './moved_note'; import { FormattedMessage } fro...
src/client/main.js
sljuka/portfulio
import React from 'react'; import Router from 'react-router'; import routes from './routes'; import {measureRender} from './console'; // Never render to body. Everybody updates it. // https://medium.com/@dan_abramov/two-weird-tricks-that-fix-react-7cf9bbdef375 const app = document.getElementById('app'); Router.run(ro...