path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/components/footer.js
vinej/react-portal
import React, { Component } from 'react'; import { FormattedDate, FormattedRelative } from 'react-intl' import { FormattedMessage } from 'react-intl' class Footer extends Component { constructor() { super() } render() { const now = (new Date()).getTime() return ( <div> <div className=...
pokemon-front/containers/DevTools.js
mdulac/pokemon
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w"> <LogMonit...
lib/jquery-1.8.3.min.js
l3dlp/text-app
/*! 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==...
addons/knobs/src/components/types/Number.js
nfl/react-storybook
import PropTypes from 'prop-types'; import React from 'react'; const styles = { display: 'table-cell', boxSizing: 'border-box', verticalAlign: 'middle', height: '26px', width: '100%', outline: 'none', border: '1px solid #f7f4f4', borderRadius: 2, fontSize: 11, padding: '5px', color: '#444', }; c...
src/components/footer.js
prodigygod0209/prodigygod0209.github.io
import React from 'react'; const Footer = () => { return( <footer> <svg className="K" width="100" height="100"> <path d="M20 100 L20 0 L40 0 L40 40 L60 0 L80 0 L55 50 L80 100 L60 100 L40 60 L40 100 Z" strokeLinejoin="round" stroke=" rgba(63, 81, 181, 0.5)" strokeWidth="0" strokeLinecap...
src/components/StockNotFound.js
baandyfuo/hanstock
import React, { Component } from 'react'; export default class StockNotFound extends Component { render() { return ( <div className="stockNotFound"> <h1>查無股票</h1> </div> ); } }
ajax/libs/glamorous/3.23.2-beta.0/glamorous.umd.js
joeyparrish/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('glamor')) : typeof define === 'function' && define.amd ? define(['react', 'glamor'], factory) : (global.glamorous = factory(global.React,global.Glamor)); }(this, (function ...
public/components/flag/Flag.js
justinsrd/indulge
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import Logo from '../logo/Logo'; class Flag extends Component { constructor(props) { super(props); } render() { return ( <div className="flag-container"> {/*<span className="logo-location"/>*/} {/*<span className="log...
src/containers/NotFound/NotFound.js
CultuurConnect/bieblo-client
import React from 'react' export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ) }
demo/src/components/APIExample/index.js
jbetancur/react-flexybox
import React from 'react'; import { Container, Row, Col } from 'react-flexybox'; import Markdown from '../Markdown'; import code from './code.md'; const APIExample = props => ( <Container> <h2>API</h2> <Row> <Col flex={12}> <Markdown markdown={code} /> </Col> </Row> </Container> );...
src/routes.js
jeredm/simplefit
import React from 'react' import { Route, IndexRoute } from 'react-router' import App from './App' import HomeView from './views/Home/HomeView' import FitRecordView from './views/FitRecord/FitRecordView' import TeamView from './views/Team/TeamView' import AdminView from './views/Admin/AdminView' import AddTeamPanel fr...
Xing_scripts/node_modules/react/lib/LinkedValueUtils.js
evah/HealthyWebCrawler-T14
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModu...
src/__tests__/RichTextEditor-test.js
sstur/react-rte
/* @flow */ const {describe, it} = global; import React from 'react'; import ShallowRenderer from 'react-test-renderer/shallow'; import expect from 'expect'; import RichTextEditor, {createEmptyValue} from '../RichTextEditor'; describe('RichTextEditor', () => { it('should render', () => { let renderer = new Shall...
definitions/npm/expo-camera_v6.x.x/flow_v0.69.0-/test_expo-camera.js
splodingsocks/FlowTyped
// @flow import React from 'react'; import { it, describe } from 'flow-typed-test'; import { Camera, Constants } from 'expo-camera'; describe('opaque props', () => { it('should passes when used properly', () => { <Camera type={Constants.Type.front} flashMode={Constants.FlashMode.off} autoFocus...
src/articles/2018-06-18-Premium/index.js
fyruna/WoWAnalyzer
import React from 'react'; import { Link } from 'react-router-dom'; import PremiumIcon from 'interface/icons/Premium'; import PatreonIcon from 'interface/icons/Patreon'; import GitHubIcon from 'interface/icons/GitHub'; import { Zerotorescue } from 'CONTRIBUTORS'; import RegularArticle from 'interface/news/RegularArti...
src/svg-icons/maps/local-grocery-store.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalGroceryStore = (props) => ( <SvgIcon {...props}> <path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-...
ajax/libs/video.js/5.0.0-21/video.js
dannyxx001/cdnjs
/** * @license * Video.js 5.0.0-21 <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 Ve...
4-add-universal/src/view/about.js
chemoish/react-universal-tutorial
import React, { Component } from 'react'; // NOTE: http://rackt.github.io/redux/docs/recipes/WritingTests.html export class About extends Component { render() { return ( <h1>About</h1> ); } } export default About;
ajax/libs/ag-grid/4.0.5/lib/utils.js
dc-js/cdnjs
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v4.0.5 * @link http://www.ag-grid.com/ * @license MIT */ var FUNCTION_STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg; var FUNCTION_ARGUMENT_NAMES = /([^\s,]+)/g; var Utils = (function () { ...
packages/material-ui-icons/src/SignalWifi2BarLock.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5 1.5-1.5s1.5.7 1.5 1.5V16z" /><path d="M15.5 14.5c0-2.8 2...
src/components/Header/index.js
ayastreb/money-tracker
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Icon, Header } from 'semantic-ui-react'; import Logo from '../Logo'; import { toggleSidebar } from '../../actions/ui/sidebar'; import { sync } from '../../actions/ui/sync'; import { isSignedIn } from 'features...
dispatch/static/manager/src/js/components/Panel.js
ubyssey/dispatch
import React from 'react' require('../../styles/components/panel.scss') export default function Panel(props) { return ( <div className='c-panel'> <h2 className='c-panel__title'>{props.title}</h2> <div className='c-panel__body'>{props.children}</div> </div> ) }
ajax/libs/forerunnerdb/1.3.9/fdb-core+views.min.js
brix/cdnjs
(function(y){"object"===typeof exports&&"undefined"!==typeof module?module.exports=y():"function"===typeof define&&define.amd?define([],y):("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).ForerunnerDB=y()})(function(){return function c(k,f,b){function a(d,n){if...
bnbs/js/backgrid-paginator.min.js
javen/pingpong
/* backgrid-paginator http://github.com/wyuenho/backgrid Copyright (c) 2013 Jimmy Yuen Ho Wong and contributors Licensed under the MIT @license. */ !function(a,b){ // CommonJS "object"==typeof exports?module.exports=b(require("underscore"),require("backbone"),require("backgrid"),require("backbone.paginator")):...
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/components/uploadbutton.js
patel344/Mr.Miner
import PropTypes from 'prop-types' import React from 'react' const minimumContracts = 14 const UploadButton = ({contracts = minimumContracts, actions}) => { const onUploadClick = (type) => () => { if (contracts < minimumContracts) { SiaAPI.showError({ title: 'Sia-UI files error', content: 'Not enough co...
templates/react-redux/app/containers/Root.js
grvcoelho/wildfire
import React from 'react' import { Provider } from 'react-redux' import App from './App' import DevTools from './DevTools' const Root = ({ store }) => ( <Provider store={store}> <div> <App /> <DevTools /> </div> </Provider> ) export default Root
client/app/components/Settings.Types.js
jfanderson/KIM
import React from 'react'; import h from '../helpers.js'; import j from '../services/jewelryService.js'; import m from '../services/materialService.js'; import sign from '../services/sign.js'; import AddTypeForm from './Form.AddType.js'; import Cell from './Cell.js'; import Column from './Column.js'; import Table fro...
packages/react/src/components/DataTable/stories/shared.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { action } from '@storybook/addon-actions'; import Link from '../../Link'; export const rows = [ { id...
src/Root.js
sMteX/WoWAnalyzer
import React from 'react'; import { applyMiddleware, createStore } from 'redux'; import { Provider as ReduxProvider } from 'react-redux'; import { composeWithDevTools } from 'redux-devtools-extension'; import thunk from 'redux-thunk'; import createHistory from 'history/createBrowserHistory'; import { ConnectedRouter, r...
packages/material-ui-icons/src/LocalLibraryOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 9c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 8.55C9.64 9.35 6.48 8 3 8v11c3.48 0 6.64 1.35 9 3.55 2.36-2.19 5.52-3.55 9-3.55V8c-3.48 0-6...
js/components/common/list-section-header/listSectionHeader.js
justarrived/p2p-client
import React, { Component } from 'react'; import { Text, ListItem } from 'native-base'; export default class ListSectionHeader extends Component { static propTypes = { title: React.PropTypes.string.isRequired, } render() { return ( <ListItem> <Text note>{this.props.title}</Text> </Li...
react-fundamentals-es6/lessons/09-lifecycle-mounting-usage/App.js
3mundi/React-Bible
// https://jsbin.com/geveqe/edit?js,output // Problematic in JSBin import React from 'react'; import ReactDOM from 'react-dom'; class App extends React.Component { constructor(){ super(); this.state = { val: 0 }; this.update = this.update.bind(this); } update(){ this.setState({val: this.state.val...
frontend/www/themes/square/js/tests/vendor/jquery.js
keyeMyria/YinCart-A
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return...
lib/svg-icons/action/flip-to-front.js
mobilelife/material-ui
'use strict'; var React = require('react/addons'); var PureRenderMixin = React.addons.PureRenderMixin; var SvgIcon = require('../../svg-icon'); var ActionFlipToFront = React.createClass({ displayName: 'ActionFlipToFront', mixins: [PureRenderMixin], render: function render() { return React.createElement( ...
ajax/libs/yui/3.7.2/event-custom-base/event-custom-base.js
robinskumar73/cdnjs
YUI.add('event-custom-base', function (Y, NAME) { /** * 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. * @mo...
src/bento/components/bento-social-share/1.0/component.type.js
ampproject/amphtml
/** @externs */ /** @const */ var BentoSocialShareDef = {}; /** * @typedef {{ * type: (string), * endpoint: (string|undefined), * params: (JsonObject|Object|undefined), * target: (string|undefined), * width: (number|string|undefined), * height: (number|string|undefined), * color: (string|undefin...
app/jsx/shared/load-more.js
djbender/canvas-lms
/* * Copyright (C) 2016 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
app/javascript/mastodon/features/notifications/index.js
clworld/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { expandNotifications, scrollTopNotifications ...
ajax/libs/analytics.js/2.3.24/analytics.js
ddeveloperr/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...
client/components/about.js
nizarayari/PersonalWebsite
import React, { Component } from 'react'; import SkillSet from './skillSet' export default class About extends Component { render(){ return ( <div className='about'> <div className="about__header"> <h3 className="about__header__title" id='about-me'> About myself </h3> <div ...
mobile/__tests__/index.android.js
zivl/moni-tor
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 /> ); });
z-no-longer-used/demoui/sidebar.js
haroldcarr/juno
import React from 'react'; export default function Sidebar(props) { //// if (props.data == null) { //// return <div />; //// } return ( <aside> <nav className="rad-sidebar"> <ul> <NavItem navId="add-payments" colorClass="rad-bg-success" navText="Add Payments" iconClass="fa-usd" {...props}/> ...
src/svg-icons/av/closed-caption.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvClosedCaption = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 7H9.5v-.5h-2v3h2V13H11v1c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1v-4c0-.5...
public/js/report.js
jasminZ/sequenceserver
import _ from 'underscore'; import React from 'react'; import d3 from 'd3'; import './graphicaloverview'; import './kablammo'; import './sequence'; /** * Pretty formats number */ var Utils = { /** * Prettifies numbers and arrays. */ prettify: function (data){ if (this.isTuple(data)) { ...
node_modules/react-sparklines/src/SparklinesNormalBand.js
aleksandrsmolin/react-redux-weather
import React from 'react'; import mean from './dataProcessing/mean'; import stdev from './dataProcessing/stdev'; export default class SparklinesNormalBand extends React.Component { static propTypes = { style: React.PropTypes.object }; static defaultProps = { style: { fill: 'red', fillOpac...
packages/mui-icons-material/lib/DirectionsRun.js
oliviertassinari/material-ui
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
ajax/libs/js-data/2.2.1/js-data-debug.js
dlueth/cdnjs
/*! * js-data * @version 2.2.1 - Homepage <http://www.js-data.io/> * @author Jason Dobry <jason.dobry@gmail.com> * @copyright (c) 2014-2015 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Robust framework-agnostic data store. */ (function webpackUniversalModul...
src/components/Html.js
AlanDeLonga/portfolio
import React, { PropTypes } from 'react'; import { analytics } from '../config'; class Html extends React.Component { static propTypes = { title: PropTypes.string.isRequired, description: PropTypes.string.isRequired, styles: PropTypes.arrayOf(PropTypes.shape({ id: PropTypes.string.isRequired, ...
lib/components/MapCallout.js
pjamrozowicz/react-native-maps
import PropTypes from 'prop-types'; import React from 'react'; import { StyleSheet, ViewPropTypes, View, } from 'react-native'; import decorateMapComponent, { SUPPORTED, USES_DEFAULT_IMPLEMENTATION, } from './decorateMapComponent'; // if ViewPropTypes is not defined fall back to View.propType (to support RN ...
ajax/libs/reactive-coffee/0.0.0/reactive-coffee.min.js
mathiasrw/cdnjs
(function(){var t,n,r,e,i,u,o,s,c,a,h,p,l,f,d,g,b,v,y,m,x,w,k,C,S,M,A,D,R,O,j={}.hasOwnProperty,P=function(t,n){function r(){this.constructor=t}for(var e in n)j.call(n,e)&&(t[e]=n[e]);return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t},T=[].slice,U=[].indexOf||function(t){for(var n=0,r=this.leng...
src/components/REPLResult.js
pcardune/pyret-ide
import React from 'react'; import REPLValue from './REPLValue'; export default class REPLResult extends React.Component { render() { return ( <div> <REPLValue reprValue={this.props.result} /> </div> ); } } REPLResult.propTypes = { result: React.PropTypes.any, };
src/main/resources/common/jquery/jquery-1.4.2.min.js
usnavi/clouddocs-maven-plugin
/*! * 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/svg-icons/social/party-mode.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPartyMode = (props) => ( <SvgIcon {...props}> <path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 3c1.63 0 3.06.79 3.98 2H12c-1.66 0-3 1.34-3 3 0 ....
src/Layout/__tests__/Drawer-test.js
joshq00/react-mdl
/* eslint-env mocha */ import expect from 'expect'; import React from 'react'; import { render } from '../../__tests__/render'; import { Drawer } from '../'; describe('Layout', () => { describe('Drawer', () => { it('should render a div with the specific css class', () => { const output = render...
ajax/libs/angular-ui-select/0.9.5/select.js
kiwi89/cdnjs
/*! * ui-select * http://github.com/angular-ui/ui-select * Version: 0.9.5 - 2014-12-12T16:07:20.856Z * License: MIT */ (function () { "use strict"; var KEY = { TAB: 9, ENTER: 13, ESC: 27, SPACE: 32, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, SHIFT: 16, CTRL: 17, ALT: ...
ajax/libs/react-modal/1.7.11/react-modal.min.js
pvnr0082t/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactModal=t(require("react"),require("react-dom")):e.ReactModal=t(e.React,e.ReactDOM)}(this,fun...
src/components/productivity/lists/New.js
dhruv-kumar-jha/productivity-frontend
'use strict'; import React, { Component } from 'react'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import translate from 'app/global/helper/translate'; import { graphql } from 'react-apollo'; import AddListMutation from 'app/graphql/mutations/lists/Add'; import _ from 'lodash'; import...
ajax/libs/react-widgets/3.0.0-beta.0/react-widgets-moment.js
seogi1004/cdnjs
/*! (c) 2015 Jason Quense | https://github.com/jquense/react-widgets/blob/master/License.txt */ /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check ...
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js
bunnyblue/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class UserProfileContactInfo extends React.Component { static propTypes = { phones: React.PropTypes.arr...
src/app.js
IUnknown68/karma-live-reporter
import React from 'react'; import ReactDOM from 'react-dom'; import messages from 'messages'; import uiMessages from 'ui-messages'; import dispatcher from 'Dispatcher'; import {load as loadSettings, get} from 'LocalSettings'; import 'service/Browser'; import Application from 'components/Application'; let connection ...
routes/index/methods.js
Yakima-Teng/yakima
'use strict' const needle = require('needle') const cheerio = require('cheerio') module.exports = class Methods { static getOSChinaData (cb) { needle.request('get', 'http://git.oschina.net/yakima', {}, (err, resp) => { if (err) { cb(err) return } const $ = cheerio.load(resp.bod...
widget/src/index.js
2DV603NordVisaProject/nordvisa_calendar
import React from 'react'; import ReactDOM from 'react-dom'; import Widget from './Widget'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<Widget />, document.getElementById('visa-widget')); registerServiceWorker();
src/js/components/icons/base/PlatformArchlinux.js
odedre/grommet-final
/** * @description PlatformArchlinux SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textCol...
examples/huge-apps/routes/Profile/components/Profile.js
arbas/react-router
import React from 'react'; class Profile extends React.Component { render () { return ( <div> <h2>Profile</h2> </div> ); } } export default Profile;
ajax/libs/forerunnerdb/1.3.744/fdb-all.js
jonobr1/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/containers/Asians/TabControls/ParticipantsAdjudicators/index.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import withStyles from 'material-ui/styles/withStyles' import ResponsivePageHeader from 'components/ResponsivePageHeader' import ListSubheader from 'material-ui/List/ListSubheader' import AdjudicatorsAddOne from 'containers/Asians/TabControls/_components...
test/StatefulToggleButton.js
felixgirault/rea11y
import React from 'react'; import {findDOMNode} from 'react-dom'; import {Simulate, renderIntoDocument} from 'react-dom/test-utils'; import StatefulToggleButton from '../src/StatefulToggleButton'; /** * */ describe('StatefulToggleButton', function() { /** * */ it('should handle press', function() { const ...
src/pages/404.js
aravindballa/website2017
import React from 'react'; import Layout from '../components/Layout'; class NotFoundPage extends React.Component { render() { return ( <Layout location={this.props.location}> <h1>Not Found</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout> ); } } ...
src/svg-icons/image/wb-auto.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbAuto = (props) => ( <SvgIcon {...props}> <path d="M6.85 12.65h2.3L8 9l-1.15 3.65zM22 7l-1.2 6.29L19.3 7h-1.6l-1.49 6.29L15 7h-.76C12.77 5.17 10.53 4 8 4c-4.42 0-8 3.58-8 8s3.58 8 8 8c3.13 0 5.84-1.81 7.1...
components/Header/Warning.js
whatever555/countries
import React, { Component } from 'react'; import styled from 'styled-components'; import { BigButton } from '../../common/styles'; const MessageHolder = styled.div` width: 100%; height: 100%; position: fixed; top: 0px; left: 0px; background-color: rgba(1, 1, 1, 0.4); z-index: 22; `; const Message = style...
src/layouts/layout-4-1.js
binary-com/binary-next-gen
import React from 'react'; export default (components, className, onClick) => ( <div className={className + ' vertical'} onClick={onClick}> <div> {components[0]} {components[1]} </div> <div> {components[2]} {components[3]} </div> <...
lib/modules/url.js
nramadas/r-platform
import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import pathToRegex from 'path-to-regexp'; const T = React.PropTypes; export class Case extends React.Component { static propTypes = { url: T.string.isRequired, exec: T.func.isRequired, pageProper...
src/mui/field/ChipField.js
matteolc/admin-on-rest
import React from 'react'; import PropTypes from 'prop-types'; import get from 'lodash.get'; import pure from 'recompose/pure'; import Chip from 'material-ui/Chip'; const ChipField = ({ source, record = {}, elStyle = { margin: 4 } }) => <Chip style={elStyle}>{get(record, source)}</Chip>; ChipField.propTypes = { ...
node_modules/react-icons/ti/media-eject-outline.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const TiMediaEjectOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m26.7 35h-13.4c-2.7 0-5-2.2-5-5s2.3-5 5-5h13.4c2.7 0 5 2.2 5 5s-2.3 5-5 5z m-13.4-6.7c-0.9 0-1.6 0.8-1.6 1.7s0.7 1.7 1.6 1.7h13.4c0.9 0 1.6-0.8 1.6-1.7s-0.7...
frontend/app/site/pages/NotFound/NotFound.js
briancappello/flask-react-spa
import React from 'react' import { PageContent } from 'components/Content' export default () => ( <PageContent> <h2>404! Page not found.</h2> </PageContent> )
src/DropdownButton.js
pombredanne/react-bootstrap
import React from 'react'; import Dropdown from './Dropdown'; import omit from 'lodash-compat/object/omit'; import pick from 'lodash-compat/object/pick'; import Button from './Button'; class DropdownButton extends React.Component { render() { let { bsStyle, bsSize, disabled } = this.props; let { title, chil...
src/svg-icons/image/portrait.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePortrait = (props) => ( <SvgIcon {...props}> <path d="M12 12.25c1.24 0 2.25-1.01 2.25-2.25S13.24 7.75 12 7.75 9.75 8.76 9.75 10s1.01 2.25 2.25 2.25zm4.5 4c0-1.5-3-2.25-4.5-2.25s-4.5.75-4.5 2.25V17h9v-.75zM...
src/app.js
caalberts/react-game-of-life
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { createStore } from 'redux' import App from './components/app.react' import Universe from './life/universe' import ecosystemReducer from './reducers/ecosystem-reducer' let height = Math.floor(window.innerHeight / ...
test/test.js
andreadsw/react-projects
// Test file example import test from 'ava' import React from 'react' import { shallow } from 'enzyme' const Foo = ({ children }) => <div className="Foo"> <span className="bar">bar</span> {children} <span className="bar">bar</span> </div> Foo.propTypes = { children: React.PropTypes.any } test...
actor-apps/app-web/src/app/components/common/AvatarItem.react.js
alihalabyah/actor-platform
import React from 'react'; import classNames from 'classnames'; class AvatarItem extends React.Component { static propTypes = { image: React.PropTypes.string, placeholder: React.PropTypes.string.isRequired, size: React.PropTypes.string, title: React.PropTypes.string.isRequired }; constructor(pro...
js/components/home/index.js
amandamfielding/Coffee-Shop-Mobile
'use strict'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Text, Image, View, Dimensions } from 'react-native'; import { pushNewRoute, replaceRoute } from '../../actions/route'; import { actions } from 'react-native-navigation-redux-helpers'; import FontAwesome from 'react-...
internals/templates/containers/NotFoundPage/index.js
haithemT/app-test
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
docs/src/pages/demos/steppers/ProgressMobileStepper.hooks.js
Kagami/material-ui
import React from 'react'; import { makeStyles, useTheme } from '@material-ui/styles'; import MobileStepper from '@material-ui/core/MobileStepper'; import Button from '@material-ui/core/Button'; import KeyboardArrowLeft from '@material-ui/icons/KeyboardArrowLeft'; import KeyboardArrowRight from '@material-ui/icons/Keyb...
ajax/libs/yui/3.7.1/scrollview-base/scrollview-base-coverage.js
Ryuno-Ki/cdnjs
if (typeof _yuitest_coverage == "undefined"){ _yuitest_coverage = {}; _yuitest_coverline = function(src, line){ var coverage = _yuitest_coverage[src]; if (!coverage.lines[line]){ coverage.calledLines++; } coverage.lines[line]++; }; _yuitest_coverfunc = functio...
index.ios.js
binora/the-wed-app
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class rishu_wedding extends Component { render() { return ( <View style={styles.conta...
src/client/components/pages/entities/work-table.js
bookbrainz/bookbrainz-site
/* * Copyright (C) 2019 Akhilesh Kumar (@akhilesh26) * Copyright (C) 2020 Prabal Singh * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your o...
deluge/ui/web/js/ext-all.js
laanwj/deluge
/* * Ext JS Library 3.1.1 * Copyright(c) 2006-2010 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ Ext.DomHelper=function(){var s=null,j=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,l=/^table|tbody|tr|td$/i,p,m="afterbegin",n="afterend",c="beforebegin",o="beforeend",...
ajax/libs/rxjs/2.3.3/rx.lite.compat.js
Nadeermalangadan/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...
docs/examples/like-button/dist/bundle.js
alarner/au-flux
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
src/ModalBody.js
brynjagr/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalBody extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalBody.prop...
src/TextField/TextFieldHint.js
mit-cml/iot-website-source
import React from 'react'; import PropTypes from 'prop-types'; import transitions from '../styles/transitions'; function getStyles(props) { const { muiTheme: { textField: { hintColor, }, }, show, } = props; return { root: { position: 'absolute', opacity: show ? 1 ...
template/src/components/dialog-about/index.js
quanglam2807/webcatalog
import React from 'react'; import PropTypes from 'prop-types'; import Button from '@material-ui/core/Button'; import Typography from '@material-ui/core/Typography'; import DialogContent from '@material-ui/core/DialogContent'; import connectComponent from '../../helpers/connect-component'; import { requestOpenInBrows...
src/svg-icons/image/crop-3-2.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCrop32 = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H5V6h14v12z"/> </SvgIcon> ); ImageCrop32 = pure(ImageCrop32); ImageCro...
pootle/static/js/shared/components/ModalContainer.js
translate/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import cx from 'classnames'; import React from 'react'; i...
app/javascript/spec/search-bar/search-bar.spec.js
ManageIQ/manageiq-ui-classic
import React from 'react'; import toJson from 'enzyme-to-json'; import { shallow } from 'enzyme'; import SearchBar from '../../components/search-bar'; describe('Search Bar component', () => { it('should render the search bar component', () => { const wrapper = shallow(<SearchBar searchText="" action="" />); ...
src/components/crowdsale/index.js
oraclesorg/ico-wizard
import React from 'react' import '../../assets/stylesheets/application.css' import { checkNetWorkByID, checkWeb3 } from '../../utils/blockchainHelpers' import { findCurrentContractRecursively, getAccumulativeCrowdsaleData, getContractStoreProperty, getCrowdsaleData, getJoinedTiers, initializeAccumulativeDat...
app/components/transactions/transactions.js
jpsierens/budget
import React from 'react'; import { BudgetType } from '../../types'; import TransactionForm from './TransactionForm'; import Transaction from './transaction/transaction'; import TransactionTotals from './TransactionTotals'; type Props = { budget: BudgetType, updateBudget: () => void }; class Transactions exte...
ajax/libs/react-router/0.12.4/ReactRouter.js
nareshs435/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["ReactRouter"] = fac...
app/demos/customView.js
asantebuil/room-reservation
import React from 'react'; import BigCalendar from '../../src/index'; import events from '../events'; import { navigate } from 'react-big-calendar/utils/constants'; import Week from 'react-big-calendar/Week'; import dates from 'react-big-calendar/utils/dates'; import localizer from 'react-big-calendar/localizer'; impor...
tests/clone_detector_tests/sproutcore/frameworks/statechart/ext/function.js
darkrsw/safe
// ========================================================================== // Project: SC.Statechart - A Statechart Framework for SproutCore // Copyright: ©2010, 2011 Michael Cohen, and contributors. // Portions @2011 Apple Inc. All rights reserved. // License: Licensed under MIT license (see license....