path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
src/components/VoteButtons/VoteButtons.js
21echoes/my-react-starter-kit
import React, {Component, PropTypes} from 'react'; export default class StyleDescription extends Component { static propTypes = { reject: PropTypes.func.isRequired, accept: PropTypes.func.isRequired } render() { return ( <div> <button className="btn btn-...
examples/flux-chat/js/components/MessageSection.react.js
chrismoulton/flux
/** * This file is provided by Facebook for testing and evaluation purposes * only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICUL...
files/rxjs/2.4.3/rx.lite.extras.js
dnbard/jsdelivr
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'unde...
docs/tutorial/DO_NOT_TOUCH/03/src/components/App/index.js
FWeinb/cerebral
import React from 'react' import {connect} from 'cerebral/react' import {state} from 'cerebral/tags' export default connect({ title: state`title`, subTitle: state`subTitle` }, function App (props) { return ( <div className='o-container o-container--medium'> <h1>{props.title}</h1> <h3>{p...
ajax/libs/yui/3.4.0/yui/yui.js
CosmicWebServices/cdnjs
/** * The YUI module contains the components required for building the YUI seed * file. This includes the script loading mechanism, a simple queue, and * the core utilities for the library. * @module yui * @submodule yui-base */ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The YUI global namespac...
wp-includes/js/jquery/jquery.js
Jandersolutions/WordPress-1
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
src/index.js
rgdelato/js-build-setup
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( <h1>Hello there! How are you?</h1>, document.getElementById('root') );
ajax/libs/handsontable/0.11.0-beta1/jquery.handsontable.full.js
aashish24/cdnjs
/** * Handsontable 0.11.0-beta1 * Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs * * Copyright 2012-2014 Marcin Warpechowski * Licensed under the MIT license. * http://handsontable.com/ * * Date: Thu Jul 10 2014 13:20:50 GMT+0200 (CEST) ...
frontend/src/index.js
goodman001/20170927express
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
app/actions/index.js
guigonc/client_app
import { hashHistory } from 'react-router' import { push } from 'react-router-redux' import { send } from '../../lib/tracker' export const SET_FIELD = 'SET_FIELD' export const ADD_CONTACT = 'ADD_CONTACT' export const setField = (field, value) => ( { type: SET_FIELD, field, value } ) export const addA...
client/index.js
SwanCourses/example-app
/** * Client entry point */ import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; import { configureStore } from './store'; // Initialize store const store = configureStore(window.__INITIAL_STATE__); const mountApp = document.getEleme...
src/Parser/Monk/Mistweaver/Modules/Items/Eithas.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'; import Combatants from 'Parser/Core/Modules/Combatants'; import ItemHealingDone from 'Main/ItemHea...
src/components/H1/index.js
movio/apidoc-ui
import React, { PropTypes } from 'react'; import classnames from 'classnames'; import styles from 'components/H1/h1.css'; const H1 = ({ className, children }) => ( <h1 className={classnames(className, styles.h1)}> {children} </h1> ); H1.propTypes = { children: PropTypes.node, className: PropTypes.string,...
src/scripts/views/queuePage.js
DBozz/IronPong
import React from 'react' import ACTIONS from './../actions.js' import STORE from './../store.js' import NavBar from './components/navBar' import Header from './components/header' import User from './../models/userModel.js' import {QueueCollection} from './../models/gameModel.js' const QueuePage = React.createClass({ ...
packages/react-router-website/examples/Params.js
rafrex/react-router
import React from 'react' import Route from 'react-router/Route' import Router from 'react-router-dom/BrowserRouter' import Link from 'react-router-dom/Link' const ParamsExample = () => ( <Router> <div> <h2>Accounts</h2> <ul> <li><Link to="/netflix">Netflix</Link></li> <li><Link to="/...
node_modules/react-dom/lib/ReactDOMTextarea.js
jperez10/RobinHoodAutoTrader
/** * 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. * */ 'use strict...
src/notifications/screens/notifications.screen.js
housseindjirdeh/git-point
/* eslint-disable no-nested-ternary */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { StyleSheet, FlatList, View, ScrollView, Text, TouchableOpacity, Image, Platform, } from 'react-native'; import { ButtonGroup, Card, Icon } from 'react-native-elements'; impor...
src/pages/repos.js
isao/labelr
import React from 'react' import ampersandReactMixin from 'ampersand-react-mixin' export default React.createClass({ mixins: [ampersandReactMixin], render () { const {repos} = this.props return ( <div className='container'> <h1>Repos</h1> <ul> ...
src/Collapse/ItemArrow.js
szchenghuang/react-mdui
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import ClassNames from 'classnames'; import Icon from '../Icon'; class ItemArrow extends React.Component { render() { const { className, children, materialIcon, ...restProps } = this.props; const clx =...
packages/material-ui-icons/src/ScreenShareSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M20 18l2-2V4H2v12l2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56-2.67 2.11-5.33 6-5.87V7l4 3.73-4 3.74z" /></g></React.Fragment> ,...
Samples/AzureWebSample/WebRole/Scripts/jquery-1.4.1.min.js
bstauff/orleans
/*! * jQuery JavaScript Library v1.4.1 * http://jquery.com/ * * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal...
ajax/libs/react/0.13.1/react-with-addons.min.js
matteofigus/cdnjs
/** * React (with addons) v0.13.1 * * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same...
ajax/libs/forerunnerdb/1.3.24/fdb-all.js
emmy41124/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...
webpack+gulp+less/node_modules/.15.4.2@react-dom/lib/ReactDOM.js
MacroLin/practice
/** * 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. * */ /* globals ...
ajax/libs/react/0.14.0-alpha2/react-with-addons.min.js
terrymun/cdnjs
/** * React (with addons) v0.14.0-alpha2 * * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in t...
app/assets/javascripts/src/components/sharedComponents/Modal.js
talum/creamery
import React from 'react' const Modal = (props) => { if (props.isVisible) { return ( <div className="modal-overlay"> <div className="modal-overlay__inner"> <div className="modal"> <div className="modal__head"> <div className="modal__title"> {props...
src/svg-icons/editor/format-strikethrough.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatStrikethrough = (props) => ( <SvgIcon {...props}> <path d="M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z"/> </SvgIcon> ); EditorFormatStrikethrough = pure(EditorFormatStrikethrough); Edit...
test/containers/CounterPage.spec.js
musichen/togglreport
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...
ajax/libs/6to5/2.8.0/browser.js
gokuale/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/editor/format-textdirection-l-to-r.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatTextdirectionLToR = (props) => ( <SvgIcon {...props}> <path d="M9 10v5h2V4h2v11h2V4h2V2H9C6.79 2 5 3.79 5 6s1.79 4 4 4zm12 8l-4-4v3H5v2h12v3l4-4z"/> </SvgIcon> ); EditorFormatTextdirectionLToR = p...
frontend/src/app/components/CondensedHeader.js
6a68/idea-town
import React, { PropTypes } from 'react'; const CondensedHeader = ({ dataL10nId, children }) => { return ( <div className="condensed-header"> <div className="responsive-content-wrapper"> <h1 className="header-content" data-l10n-id={dataL10nId} >{ children }</h1> <div className="logo-contain...
shopping-cart-app/src/components/Wrapper/Wrapper.js
JCFlores/shoppingCart
import React from 'react'; import './Wrapper.css'; const Wrapper = props => <div className="wrapper">{props.children}</div>; export default Wrapper;
ajax/libs/clappr/0.0.90/clappr.js
skidding/cdnjs
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)...
src/components/App.js
swan0/react-pages-boilerplate
import { HashRouter, Route, Switch } from 'react-router-dom' import HomePage from '../components/pages/HomePage2' import React from 'react' export default () => ( <HashRouter> <Switch> <Route exact path="/" component={HomePage} /> </Switch> </HashRouter> )
ajax/libs/forerunnerdb/1.3.455/fdb-core.min.js
boneskull/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/angular-google-maps/2.1.0-X.2/angular-google-maps_dev_mapped.js
Mrkebubun/cdnjs
/*! angular-google-maps 2.1.0-X.2 2015-03-10 * AngularJS directives for Google Maps * git: https://github.com/angular-ui/angular-google-maps.git */ ; (function( window, angular, undefined ){ 'use strict'; /* ! The MIT License Copyright (c) 2010-2013 Google, Inc. http://angularjs.org Permission is hereby grante...
app/components/EmailModal/index.js
elainewlin/Executive
/** * * EmailForm * */ import React from 'react'; import styles from './styles.scss'; import EmailForm from 'components/EmailForm'; import close from './x.png'; function EmailModal(props) { let modal; if (props.isOpen) { modal = (<div className={styles.email}> <img src={close} alt="x" className={styles...
components/StartupCard.js
RomainInnocent/tpdevops
/** * Created by Adrien on 30/06/2017. */ import React from 'react'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import IconButton from 'material-ui/IconButton'; import VideoLibrary from 'material-ui/svg-icons/av/vide...
src/components/Html/Html.js
miketamis/locationPositioning
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component, PropTypes } from 'react'; import { googleAnalyticsId } from '../../config'; class Html extends Component { static propTypes = { title: PropTypes.string, description: PropTypes.string, css: PropTypes.stri...
pages/contact.js
caryfuk/architektka
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import Helmet from 'react-helmet' import { config } from 'config' import ContactForm from '../components/contactForm' class CategoryIndex extends React.Component { render () { return ( <div className='...
dist/1.11.1/jquery-ajax-css-dimensions-event-alias-offset.js
michael829/jquery-builder
/*! * jQuery JavaScript Library v1.11.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-css,-css/addGetHookIf,-css/curCSS,-css/defaultDisplay,-css/hiddenVisibleSelectors,-css/support,-css/swap,-css/var/cssExpand,-css/var/isHidd...
Js/Core/Lib/Router/Route.js
Webiny/Webiny
import React from 'react'; import _ from 'lodash'; import $ from 'jquery'; import Webiny from 'webiny'; import Router from './Router'; class Route { constructor(name, pattern, components, title = '') { this.name = name; this.pattern = pattern; this.components = Route.normalizeComponents(com...
src/components/MessageContent/Location/Location.js
nolawi/champs-dialog-sg
/** * Copyright 2017 dialog LLC <info@dlg.im> * @flow */ import React from 'react'; import Map from '../../Map/Map'; import styles from './Location.css'; export type Props = {| latitude: number, longitude: number, maxWidth: number |}; function Location(props: Props) { return ( <Map className={st...
node_modules/react-icons/io/android-archive.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoAndroidArchive = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35.2 7.8c0.6 0.6 0.8 1.3 0.8 2.3v22.6c0 1.9-1.6 3.6-3.6 3.6h-25.3c-2 0-3.6-1.7-3.6-3.6v-22.6c0-1 0.2-1.7 0.8-2.3l2.6-3c0.4-0.7 1.2-1 2-1h21.7c0.8 0 1.6 0.3 2 ...
src/svg-icons/toggle/star-half.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStarHalf = (props) => ( <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15....
pages/index.js
morewings/react-landing-demo
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; import Promo from '../components/Promo'; import News from '../components/News'; import './styles/index.scss'; export default ...
src/Parser/Shaman/Elemental/Modules/Features/Overload.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import Analyzer from 'Parser/Core/Analyzer'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; import Combatants from 'Parser/Core/Modules/Combatants'; import StatisticBox, { STATISTIC_ORDER } from...
web/js/app/Teamer.js
Andreas-Schoenefeldt/simple-courses
'use strict'; // -- generated by app/static/jsx/app/Teamer.jsx -- // -- do not edit this file directly -- // // this module handles the CRUD operations on course types define(['react', 'react-dom', 'jquery', 'util/debug', 'util/messaging', 'data/Teamer', 'util/translator', 'util/Datatable', 'util/actions'...
src/routes/Player/components/PlayerTextOverlay/PlayerTextOverlay.js
bhj/karaoke-forever
import PropTypes from 'prop-types' import React from 'react' import ColorCycle from './ColorCycle' import UpNow from './UpNow' import styles from './PlayerTextOverlay.css' const PlayerTextOverlay = ({ isQueueEmpty, isAtQueueEnd, isErrored, nextQueueItem, queueItem, width, height, }) => { let Component ...
browser/app/js/components/__tests__/Login-test.js
brendanashworth/minio
/* * Minio Cloud Storage (C) 2016 Minio, 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 required by applicable law...
node_modules/react-native/Libraries/Text/Text.js
horizon-z40/RN-homework
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
molgenis-core-ui/webpack.production.config.js
npklein/molgenis
var path = require('path'); var webpack = require('webpack'); var configuration = { resolve: { root: [path.resolve('./src/main/javascript'), path.resolve('./node_modules')], alias: { 'react-components': 'modules/react-components', 'rest-client': 'modules/rest-client', ...
src/components/Response.js
livinglab/webwork-for-wordpress
import React, { Component } from 'react'; import Scroll from 'react-scroll' import ReactTooltip from 'react-tooltip' import { __, sprintf } from '@wordpress/i18n'; import EditSaveButtonContainer from '../containers/EditSaveButtonContainer' import PreviewableFieldContainer from '../containers/PreviewableFieldContainer'...
ajax/libs/core-js/0.1.5/core.js
sympmarc/cdnjs
/** * Core.js 0.1.5 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2014 Denis Pushkarev */ !function(returnThis, framework, undefined){ 'use strict'; /****************************************************************************** * Module : common ...
public/app/components/properties/properties-editor.js
vincent-tr/mylife-home-studio
'use strict'; import React from 'react'; import * as mui from 'material-ui'; const PropertiesEditor = ({ id, value, type, useRealType, onChange }) => { const onStringChange = (event) => { event.stopPropagation(); onChange(event.target.value); }; const onIntegerChange = (event) => { event.stopPropa...
src/components/App.js
freelance-tech-writer/barstool-messages-frontend
import React from 'react'; import PropTypes from 'prop-types'; // This is a class-based component because the current // version of hot reloading won't hot reload a stateless // component at the top-level. class App extends React.Component { render() { return ( <div> { this.props.children } </div> ); }...
src/decorators/withViewport.js
Batname/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height:...
generators/add/templates/relay/container.js
HsuTing/generator-cat
'use strict'; import React from 'react'; import {QueryRenderer} from 'react-relay'; import environment from 'utils/environment'; import <%= queryName %>Query, {variables as <%= queryName %>Variables} from 'constants/query/<%= queryName %>Query'; /* eslint-disable react/display-name */ export default () => ( <Query...
src/svg-icons/device/signal-wifi-4-bar-lock.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi4BarLock = (props) => ( <SvgIcon {...props}> <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...
code/web/node_modules/react-bootstrap/es/DropdownToggle.js
zyxcambridge/RecordExistence
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/index.js
Kenny806/react-todo
import React from 'react' // handles jsx syntax import ReactDOM from 'react-dom' // entry point for react rendering import App from './components/app' // import the List component import store from './store' store.subscribe(function() { const state = store.getState() console.log('New state: ', state) }) /* const...
vendors/jquery/jquery-1.11.2.min.js
kristain/rainloop-webmail
/*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
ajax/libs/vue-material/1.0.0-beta-15/components/MdToolbar/index.js
cdnjs/cdnjs
/*! * vue-material v1.0.0-beta-15 * Made with <3 by marcosmoura 2020 * Released under the MIT License. */ !(function(e,t){var r,n;if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{r=t("object"==typeof exports?re...
src/vendor/recharts/demo/component/RadialBarChart.js
donal-crotty/fuzzy-telegram
import React from 'react'; import { RadialBarChart, RadialBar, Cell, Legend, Tooltip, ResponsiveContainer } from 'recharts'; import { changeNumberOfData } from './utils'; import { scaleOrdinal, schemeCategory10 } from 'd3-scale'; const colors = scaleOrdinal(schemeCategory10).range(); const data = [ { name: '18-24',...
examples/HorizonGraphExample.js
ornl-sava/vis-react-components
import React from 'react' import HorizonGraphChart from '../src/premade/HorizonGraphChart' import Settings from '../src/Settings' let startData = [-6, -4, -2, -1, 0, 1, 2, 4, 5, 8, 6, 4, 2, 0, -1, -2, -4, 10, 3, 7, 11, 5] const xAccess = (d, i) => { return i } const yAccess = (d) => { return d } // extreme negative...
src/components/icons/logo-mailjet.js
mjmlio/mjml-app
import React from 'react' export default props => ( <svg fill="currentColor" viewBox="0 0 52.07077 29.098571" {...props}> <path strokeWidth=".265" d="M9.983 28.6c.149-.278 1.473-2.254 2.942-4.39l2.67-3.884.457-3.021c.252-1.662.57-3.123.706-3.247.193-.175 32.901-7.963 34.826-8.292.245-.042.464.033.487...
addons/themes/massively/includes/Intro.js
rendact/rendact
import React from 'react'; import scrollToElement from 'scroll-to-element'; class Intro extends React.Component { handleScrolly(e){ scrollToElement("#header", { duration: 1500, offset: 0, ease: 'in-sine' }) } render(){ return <div id="intro" className={this.props.intro?null:"hidden"...
src/CubeGrid/index.js
bentatum/better-react-spinkit
import React from 'react' import Base from '../Base' import PropTypes from 'prop-types' import memoize from 'lodash.memoize' import range from 'lodash.range' import randomDelays from './randomDelays' import { animate, animationName, defaults, preside } from '../util' const defaultSize = 18 const memoizedRandomDelays ...
src/svg-icons/device/bluetooth-searching.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetoothSearching = (props) => ( <SvgIcon {...props}> <path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.9...
ajax/libs/angular.js/1.1.5/angular-scenario.js
margaritis/cdnjs
/*! * jQuery JavaScript Library v1.8.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time) */ (function(...
js/jqwidgets/demos/react/app/rangeselector/chartonbackground/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxRangeSelector from '../../../jqwidgets-react/react_jqxrangeselector.js'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; class App extends React.Component { render() { // prepare the data let source = ...
ajax/libs/clappr/0.0.71/clappr.js
victorjonsson/cdnjs
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)...
example/src/example.js
rsamec/react-property-editor
import React from 'react'; import ReactDOM from 'react-dom'; import _ from 'lodash'; import PropertyEditor from 'react-property-editor'; import Binder from 'react-binding'; import Json from 'react-json-fork'; import WidgetFactory from './WidgetFactory.js'; import WidgetRenderer from './WidgetRenderer.js'; var options ...
app/routes.js
sirgalleto/gearmanUI
// @flow import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import HomePage from './containers/HomePage'; import CounterPage from './containers/CounterPage'; export default ( <Route path="/" component={App}> <IndexRoute component={HomePage} /> <R...
packages/material-ui-icons/src/GpsOff.js
allanalexandre/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.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.52 2....
node_modules/react-icons/ti/pen.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const TiPen = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35.5 12c0-2-0.7-3.9-2.2-5.3s-3.3-2.2-5.3-2.2c-2 0-3.9 0.7-5.3 2.1-0.1 0.1-13.3 13.3-13.3 13.3-0.6 0.6-1.2 1.5-1.6 2.5-0.3 0.8-3.3 9.8-3.9 11.6-0.2 0.6 0 1.2 0.4 1.7 0.3 ...
techCurriculum/ui/solutions/4.5/src/App.js
AnxChow/EngineeringEssentials-group
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
test/integration/scss-fixtures/url-global-asset-prefix-1/pages/_app.js
flybayer/next.js
import React from 'react' import App from 'next/app' import '../styles/global1.scss' import '../styles/global2.scss' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
website/src/pages/versions.js
orbitjs/orbit.js
import React from 'react'; import Layout from '@theme/Layout'; import useBaseUrl from '@docusaurus/useBaseUrl'; import styles from './versions.module.scss'; const versions = require('../../versions.json'); const VersionItem = ({version, currentVersion}) => { const versionName = version === 'next' ? 'Main' : version...
ajax/libs/forerunnerdb/1.3.12/fdb-all.js
viskin/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/rxjs/2.3.7/rx.js
xirzec/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...
ajax/libs/primereact/7.2.1/messages/messages.esm.js
cdnjs/cdnjs
import React, { Component } from 'react'; import { classNames } from 'primereact/utils'; import { Ripple } from 'primereact/ripple'; import { TransitionGroup } from 'react-transition-group'; import { CSSTransition } from 'primereact/csstransition'; function _arrayLikeToArray(arr, len) { if (len == null || len > arr....
docs/src/BasicUsage.js
InsidersByte/react-markdown-renderer
import React from 'react'; import styled from 'styled-components'; import LiveEdit from './LiveEdit'; const Root = styled.div`margin-top: 3.125rem;`; const Title = styled.p` color: white; margin-bottom: 0.625rem; `; const code = ` const markdown = \` # This is a H1 ## This is a H2 ### This is a H3 \`; render( ...
test/app/components/TodoItem.spec.js
scotato/condition
import { expect } from 'chai'; import sinon from 'sinon'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import TodoItem from '../../../app/components/TodoItem'; import style from '../../../app/components/TodoItem.css'; import TodoTextInput from '../../../app/components/TodoTextInput'; fun...
src/components/ActivityIndicatorIOS.js
Root-App/react-native-mock-render
/** * https://github.com/facebook/react-native/blob/master/Libraries/Components/ActivityIndicator/ActivityIndicatorIOS.ios.js */ import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import NativeMethodsMixin from '../mixins/NativeMethodsMixin'; import View ...
sc/src/main/javascript/bundles/gene-search/index.js
gxa/atlas
import React from 'react' import ReactDOM from 'react-dom' import GeneSearchRouter from './src/GeneSearchRouter' const render = (options, mountNodeId) => { ReactDOM.render(<GeneSearchRouter {...options} />, document.getElementById(mountNodeId)) } export { render }
src/svg-icons/image/loupe.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLoupe = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10h8c1.1 0 2-.9 2-2v-8c0-5.51-4.49-10-10-10zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3....
ajax/libs/analytics.js/2.8.16/analytics.js
BobbieBel/cdnjs
(function umd(require){ if ('object' == typeof exports) { module.exports = require('1'); } else if ('function' == typeof define && define.amd) { define(function(){ return require('1'); }); } else { this['analytics'] = require('1'); } })((function outer(modules, cache, entries){ /** * Global ...
src/js/components/Checkoutbutton.js
kRITZCREEK/squirrelzon
import React from 'react'; import actions from 'babel!../actions/ShoppingCartActions' import store from 'babel!../stores/ShoppingCartStore' import {product1} from 'Squirrelzon.Dummy' var Checkoutbutton = React.createClass({ render() { return ( <button className="btn waves-effect waves-light"> Checko...
generators/app/templates/src/static/components/DemoComponent/index.js
sunshinewlz01/generator-react-webapp
import React, { Component } from 'react'; import './style.css'; class DemoComponent extends Component { componentWillMount() { } render() { return ( <div className="demo-section"> Hello React! </div> ); } } export default DemoComponent;
src/components/ActivityListMembers/ActivityListMembersKick.js
nolawi/champs-dialog-sg
/** * Copyright 2017 dialog LLC <info@dlg.im> * @flow */ import React from 'react'; import { Text } from '@dlghq/react-l10n'; import Spinner from '../Spinner/Spinner'; import Tooltip from '../Tooltip/Tooltip'; import Icon from '../Icon/Icon'; import styles from './ActivityListMembers.css'; import errorToString from...
src/svg-icons/device/signal-wifi-3-bar-lock.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi3BarLock = (props) => ( <SvgIcon {...props}> <path opacity=".3" d="M12 3C5.3 3 .8 6.7.4 7l3.2 3.9L12 21.5l3.5-4.3v-2.6c0-2.2 1.4-4 3.3-4.7.3-.1.5-.2.8-.2.3-.1.6-.1.9-.1.4 0 .7 0 1 .1L23.6 7c-.4-...
src/js/components/navigation/buttons/BookSeat.js
csepreghy/VR-Cinema-Website-with-React.js
import {Entity, Animation} from 'aframe-react'; import React from 'react'; export default class BookSeat extends React.Component { opacity = { x: 0 }; btnTextOpacity = { x: 0 }; constructor(props) { super(props); this.state = { opacity: { x: 0 }, navTextVisible: false, btnTextOpacity...
src/transitions/Grow.spec.js
AndriusBil/material-ui
// @flow import React from 'react'; import { assert } from 'chai'; import { spy } from 'sinon'; import { createShallow } from '../test-utils'; import Grow, { getScale } from './Grow'; describe('<Grow />', () => { let shallow; before(() => { shallow = createShallow({ dive: true }); }); describe('event ca...
ajax/libs/inferno-test-utils/6.0.0/inferno-test-utils.min.js
seogi1004/cdnjs
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("inferno")):"function"==typeof define&&define.amd?define(["exports","inferno"],n):n((e.Inferno=e.Inferno||{},e.Inferno.TestUtils=e.Inferno.TestUtils||{}),e.Inferno)}(this,function(e,r){"use strict";var n="a runtime error occured! Use ...
src/Parser/Shaman/Restoration/Modules/Spells/GiftOfTheQueen.js
enragednuke/WoWAnalyzer
import React from 'react'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import AbilityTrac...
docs/tutorial/DO_NOT_TOUCH/10/src/components/App/index.js
FWeinb/cerebral
import React from 'react' import {connect} from 'cerebral/react' import {state, signal} from 'cerebral/tags' import Toast from '../Toast' export default connect({ title: state`title`, subTitle: state`subTitle`, buttonClicked: signal`buttonClicked` }, function App (props) { return ( <div className='o-...
webpack.config.js
WizardDuel/react-client
var path = require('path'); var webpack = require('webpack'); module.exports = { entry: { app: './www/js/index.js' }, resolve: { nodeDirectories: ['node_modules'] }, output: { path: path.resolve(__dirname, './www/build'), filename: 'build.js', }, module: { loaders: [ { t...
src/icons/settings.js
carmelopullara/react-feather
import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; const Settings = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => { return ( <svg ref={ref} xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 24 24" fill=...
client/modules/App/components/Header/Header.js
leranf/hotwireCarRentalSearch
import React from 'react'; import styles from './Header.css'; export function Header() { return ( <div className={styles.header}> <div className={styles.content}> <h1 style={{ color: 'white' }}> Search Hotwire Cars!! </h1> </div> </div> ); } export default Header;