path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
common/components/ide/tabs/ProcessTab.js
ebertmi/webbox
import React from 'react'; import Tab from './Tab'; import Icon from '../../Icon'; export default class ProcessTab extends React.Component { constructor(props) { super(props); this.onBell = this.onBell.bind(this); this.onTitle = this.onTitle.bind(this); this.state = { bell: false, titl...
ajax/libs/jqwidgets/12.0.4/jqwidgets-react-tsx/jqxpivotdesigner/react_jqxpivotdesigner.esm.min.js
cdnjs/cdnjs
import*as jqxcore from"../../jqwidgets/jqxcore";import{createElement,PureComponent}from"react";var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};function __extend...
index.js
oblador/react-native-shimmer
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { requireNativeComponent } from 'react-native'; export default class Shimmer extends Component { static propTypes = { animating: PropTypes.bool, direction: PropTypes.oneOf(['up', 'down', 'left', 'right']), duration: Prop...
src/containers/Home/Home.js
gregsabo/beanstalk-tractor-trailer
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import { Link } from 'react-router'; export default class Home extends Component { render() { return ( <div className="container-fluid"> <Helmet title="Home"/> <h1>Tractor-Trailer</h1> <p>Start out with...<...
app/components/Table/Edit/SummaryBar/index.js
rayrw/skygear-apitable
import React from 'react'; import Container from './Container'; type SummaryBarProps = { recordCount: number } const SummaryBar = ({ recordCount }: SummaryBarProps) => ( <Container> {recordCount} records </Container> ); export default SummaryBar;
node_modules/react-router/modules/IndexLink.js
midknightmare/menuology
import React from 'react' import Link from './Link' /** * An <IndexLink> is used to link to an <IndexRoute>. */ class IndexLink extends React.Component { render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } } export default IndexLink
react/src/Home.js
gschrader/ratpack-react-boilerplate
import React from 'react'; import {Card, Jumbotron} from 'react-bootstrap'; import ReactMarkdown from 'react-markdown'; import {useFetchText} from "./hooks"; function Home() { const [data, loading] = useFetchText("readme"); return ( <div className="container"> <Jumbotron> <...
examples/all-possible-containers/src/components/FunctionComponent.js
gaearon/react-hot-loader
import React from 'react'; import { EDIT_ME } from './_editMe'; const FunctionComponent = () => ( <div> <fieldset> <legend>Function Component</legend> {EDIT_ME} </fieldset> </div> ); export default FunctionComponent;
app/pages/MainPage/Main.js
attentiveness/reading
/** * * Copyright 2016-present reading * * 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...
src/components/NEOList/FetchNEO.js
phazor/phazor.github.io
import { connect } from 'react-redux' import React from 'react'; import { fetchNEO } from '../../actions/NEO' let FetchNEO = ({ dispatch }) => { const handleClick = () => { dispatch(fetchNEO()); } return ( <button onClick={handleClick}>Fetch NEOs</button> ) } FetchNEO = connect()(FetchNEO); export d...
client/modules/Post/__tests__/components/PostList.spec.js
aksm/refactored-palm-tree
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import PostList from '../../components/PostList'; const posts = [ { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" }, { name: 'Mayank', title: 'Hi Mern', slug: ...
src/main/resources/static/bower_components/jqwidgets/demos/react/app/grid/defaultfunctionality/app.js
dhawal9035/WebPLP
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render () { let source = { datatype: "xml", datafields: [ { name: 'ProductName', type: 'string' }, { name:...
App.js
nikhilsaraf/react-native-todo-app
/** * @flow */ import React from 'react'; import { AsyncStorage } from 'react-native'; import { compose, applyMiddleware, createStore } from 'redux'; import { Provider } from 'react-redux'; import AppMain from './AppMain'; import reducer from './reducers/Reducer'; import { persistStore, autoRehydrate } from 'redux-p...
admin/client/components/ListSort.js
riyadhalnur/keystone
import { FormNote, FormField, FormInput } from 'elemental'; import React from 'react'; import Popout from './Popout'; import PopoutList from './PopoutList'; import vkey from 'vkey'; import CurrentListStore from '../stores/CurrentListStore'; var ListSort = React.createClass({ displayName: 'ListSort', getInitialState ...
ajax/libs/yui/3.11.0/simpleyui/simpleyui-debug.js
dannyxx001/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 @main yui @submodule yui-base **/ /*jshint eqeqeq: false*/ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The...
reduxg/app/app.js
ekepes/reactplay
import React from 'react'; function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } var GuessBox = React.createClass({ getInitialState: function() { return { answer: getRandomInt(1, 10), guess: 0, message: "" }; }, handleChange: function(event) ...
ajax/libs/forerunnerdb/1.3.603/fdb-all.min.js
humbletim/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...
app/javascript/mastodon/components/admin/Retention.js
yukimochi/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'mastodon/api'; import { FormattedMessage, FormattedNumber, FormattedDate } from 'react-intl'; import classNames from 'classnames'; import { roundTo10 } from 'mastodon/utils/numbers'; const dateForCohort = cohort => { switch(cohort.freque...
src/components/Image/Image.js
allanfish/f8
import React, { Component, PropTypes } from 'react' import classNames from 'classnames' export default class Image extends Component { static propTypes = { responsive: PropTypes.bool, className: PropTypes.string, width: PropTypes.string, height: PropTypes.string }; static defaultProps = { r...
ajax/libs/inferno-devtools/7.1.11/inferno-devtools.js
cdnjs/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('inferno'), require('inferno-extras')) : typeof define === 'function' && define.amd ? define(['exports', 'inferno', 'inferno-extras'], factory) : (global = global || self, factory((global.In...
src/layouts/index.js
simpaa/s-andersson-site
import React from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' import Helmet from 'react-helmet' import Header from '../components/header'; import Footer from '../components/footer'; import Data from '../data/SiteConfig'; import './index.css' const TemplateWrapper = ({ children }) => (...
src/data/queries/content.js
jwilliams33490/save-a-little-ui
/** * 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 fs from 'fs'; import { join } from 'path'; import P...
ajax/libs/material-ui/4.11.3-deprecations.0/es/internal/svg-icons/Person.min.js
cdnjs/cdnjs
import*as React from"react";import createSvgIcon from"../../utils/createSvgIcon";export default createSvgIcon(React.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");
src/containers/Register/Register.js
hirzanalhakim/testKumparan
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import RegisterForm from 'components/RegisterForm/RegisterForm'; import * as authActions from 'redux/modules/auth'; import * as notifActions from 'redux/modules/notifs'...
packages/expo-firebase-analytics/build/ExpoFirebaseAnalytics.js
exponentjs/exponent
import Constants from 'expo-constants'; import { DEFAULT_APP_NAME, DEFAULT_APP_OPTIONS, DEFAULT_WEB_APP_OPTIONS } from 'expo-firebase-core'; import { NativeModulesProxy, UnavailabilityError, CodedError } from 'expo-modules-core'; import { Platform } from 'react-native'; import FirebaseAnalyticsJS from './FirebaseAnalyt...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch02/02_07/finish/src/lib.js
yevheniyc/Autodidact
import React from 'react' import text from './titles.json' import './stylesheets/goodbye.scss' import './stylesheets/hello.css' export const hello = ( <h1 id='title' className='hello'> {text.hello} </h1> ) export const goodbye = ( <h1 id='title' className='goodbye'> {text.goodbye} </h1> )
src/components/text/word-component.js
ChrisRast/Le-Taguenet
import React from 'react'; import PropTypes from 'prop-types'; import * as ui from 'semantic-ui-react'; import { difficulty as difficultyMax, } from '../../config/params'; export default class WordComponent extends React.PureComponent { /** * Range of validators that can be used to make sure the received data is v...
node_modules/reactify/node_modules/react-tools/src/core/__tests__/ReactUpdates-test.js
lutherism/state
/** * 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 directory. * * @emails react-co...
ajax/libs/ngOfficeUiFabric/0.13.1/ngOfficeUiFabric.js
ahocevar/cdnjs
/*! * ngOfficeUIFabric * http://ngofficeuifabric.com * Angular 1.x directives for Microsoft's Office UI Fabric * https://angularjs.org & https://dev.office.com/fabric * v0.13.1 */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.ex...
wrappers/html.js
MichaelCereda/michaelcereda.com
import React from 'react' module.exports = React.createClass({ propTypes () { return { router: React.PropTypes.object, } }, render () { const post = this.props.route.page.data return ( <div className="markdown"> <h1 dangerouslySetInnerHTML={{ __html: post.title }} /> <...
packages/material-ui-icons/src/PhoneInTalkOutlined.js
lgollut/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M15 12h2c0-2.76-2.24-5-5-5v2c1.66 0 3 1.34 3 3zm4 0h2c0-4.97-4.03-9-9-9v2c3.87 0 7 3.13 7 7zm1 3.5c-1.25 0-2.45-.2-3.57-.57-.1-.03-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.44-5.15-3.75...
web/app/admin/users.js
seanhess/serials
// @flow // @flow import React from 'react' import {Link} from 'react-router' import {User, Users, userApiURL} from '../model/user' import {reloadHandler} from '../data/load' import {makeUpdate} from '../data/update' import {toDateString} from '../helpers' import {clickable} from '../style' import {sortBy, reverse} f...
ajax/libs/riot/2.6.5/riot+compiler.js
Piicksarn/cdnjs
/* Riot v2.6.5, @license MIT */ ;(function(window, undefined) { 'use strict'; var riot = { version: 'v2.6.5', settings: {} }, // be aware, internal usage // ATTENTION: prefix the global dynamic variables with `__` // counter to give a unique id to all the Tag instances __uid = 0, // tags instances cache ...
src/js/components/Location.js
grommet/grommet-people-finder
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { headers, buildQuery, processStatus } from 'grommet/utils/Rest'; import Header from 'grommet/components/Header'; impo...
src/components/DBTable/InnerTableSchemaUtils.js
jiangxy/react-antd-admin
import React from 'react'; import { Form, Input, DatePicker, Select, Radio, InputNumber, Checkbox, Cascader } from 'antd'; import TableUtils from './TableUtils.js'; import FileUploader from '../FileUploader'; import moment from 'moment'; import Logger from '../../utils/Logger'; import {ACTION_KEY} from ...
src/svg-icons/communication/phonelink-erase.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkErase = (props) => ( <SvgIcon {...props}> <path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0...
src/components/Footer.js
aspsoluciones/mcw-client
import React, { Component } from 'react'; class Footer extends Component { render() { return ( <footer> miClinicaWeb ®. Todos los derechos reservados </footer> ) } } export default Footer;
src/svg-icons/communication/stay-current-portrait.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayCurrentPortrait = (props) => ( <SvgIcon {...props}> <path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/> </SvgIcon> );...
episode-264/todo-before/public/javascripts/jquery.js
akkyrox/railscasts-episodes
/*! * jQuery JavaScript Library v1.5.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
test/BootstrapMixinSpec.js
jamon/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import BootstrapMixin from '../src/BootstrapMixin'; import styleMaps from '../src/styleMaps'; let Component; describe('BootstrapMixin', function () { beforeEach(function() { Component = React.createClass({ mixins: [Bootstrap...
packages/example-phone/src/scripts/components/call/call-controls.js
glhewett/spark-js-sdk
import React from 'react'; import {Button, ButtonGroup} from 'react-bootstrap'; import ToggleButton from '../common/toggle-button'; export default function CallControls({ onHangup, onStartReceivingAudio, onStartReceivingVideo, onStartSendingAudio, onStartSendingVideo, onStopReceivingAudio, onStopReceivi...
actor-apps/app-web/src/app/components/SidebarSection.react.js
bradparks/actor-platform___im_client_cross_platform
import React from 'react'; import { Styles, Tabs, Tab } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; import ContactsSection from 'components/sidebar/ContactsSec...
src/components/Location.js
shaunsaker/real-dope
import React from 'react'; import { connect } from 'react-redux'; import PlaceIcon from 'react-icons/lib/md/place'; export class Location extends React.Component { static get propTypes() { return { city: React.PropTypes.string.isRequired, suburb: React.PropTypes.string.isRequired ...
src/svg-icons/device/battery-30.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery30 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V15h10V5.33z"/><path d="M7 15v5.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ...
PuppyPlayDate/index.android.js
Tooconfident/Puppy_PlayDate
/** * Sample React Native App * https://github.com/facebook/react-native */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class PuppyPlayDate extends Component { render() { return ( <View style={styles.container}> <Text sty...
src/client/app/components/ui/text-field.js
LINKIWI/apache-auth
import extend from 'deep-extend'; import React from 'react'; /** * A styled text input entry field. */ export default class TextField extends React.Component { static propTypes = { className: React.PropTypes.string, icon: React.PropTypes.element, iconSpacing: React.PropTypes.string }; static defaul...
packages/spust-koa/src/__tests__/ApolloGraphQL.js
michalkvasnicak/spust
// @flow import React from 'react'; import test from 'supertest'; import { makeExecutableSchema } from 'graphql-tools'; import { stringify } from 'querystring'; import ApolloGraphQL from '../ApolloGraphQL'; import BodyParser from '../BodyParser'; import Server from '../Server'; import serve from '../'; const schema ...
src/types/bounds.js
marcello3d/react-leaflet
import React from 'react'; import Leaflet from 'leaflet'; import latlngList from './latlngList'; export default React.PropTypes.oneOfType([ React.PropTypes.instanceOf(Leaflet.LatLngBounds), latlngList ]);
client/src/components/Listing/AllListings/AllListingsComponents/ListingInfoCard.js
wolnewitz/raptor-ads
import React from 'react'; import { Card, Header, Image, Icon } from 'semantic-ui-react'; import convertDistance from '../../../helpers/convertDistance'; const ListingInfoCard = ({ card, onListingClick }) => { if (card) { let picturePath; if (card.pictures[0]) { picturePath = card.pictures[0].img_path...
web/src/server/components/charts/organizations-vs-authors-chart.js
opendaylight/spectrometer
/** # @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0> ############################################################################## # Copyright (c) 2016 The Linux Foundation and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public L...
ui/employee-management/src/index.js
travisKingDeveloper/SqliteJavascriptWebsite
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import './style/index.css'; import getAllEmployees from './data-access/employee' ReactDOM.render( <App employees={} />, document.getElementById('root') );
src/components/StepNavigationItem/StepNavigationItem.js
wfp/ui
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import Icon from '../Icon'; import { iconEllipsis, iconWarningGlyph, iconLocked, iconErrorGlyph, iconCheckmark, iconMenu, iconOverflowMenu, } from '@wfp/icons'; import settings from '../../globals/js/settin...
fields/types/location/LocationFilter.js
belafontestudio/keystone
import _ from 'underscore'; import classNames from 'classnames'; import React from 'react'; import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental'; const MODE_OPTIONS = [ { label: 'Exactly', value: 'exactly' }, { label: 'Contains', value: 'contains' } ]; const TOGGLE_OPTIONS = [ { labe...
app/components/DropdownFontSelectorMenu.js
googlefonts/korean
import React, { Component } from 'react'; import { FONTS } from '../constants/defaults'; import { connect } from 'react-redux'; import { changeDescFontDropdownOpened, changeCurrentDescFont } from '../actions'; import onClickOutside from "react-onclickoutside"; import _ from 'lodash'; const Fragment = React.Fragment; ...
ajax/libs/forerunnerdb/1.3.563/fdb-core+views.min.js
viskin/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
resources/assets/js/components/AlertsComponent.js
jrm2k6/i-heart-reading
import React from 'react'; const AlertsComponent = ({ type, content }) => { const _className = `alert-container ${type}`; return ( <div className={_className}> {content} </div> ); } export default AlertsComponent;
test/integration/image-component/default/pages/invalid-unsized.js
flybayer/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <p>Invalid Unsized</p> <Image id="unsized-image" src="/test.png" unsized /> </div> ) } export default Page
startbootstrap-modern-business-1.0.5/js/jquery.js
ulimartinez/judo
/*! 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...
spec/components/Children/Alignment.js
beplus/reflay
import React from 'react' import Layout from '../../../src/components/Layout' import Box from '../../../src/components/Box' // Helpers. import { LAYOUT_DIRECTION_ROW } from '../../../src/helpers/Layout/direction' import { LAYOUT_ALIGN_START, LAYOUT_ALIGN_CENTER, LAYOUT_ALIGN_STRETCH } from '../../../src/help...
docs/pages/api/click-away-listener.js
kybarg/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './click-away-listener.md'; export default function Page() { return <MarkdownDocs markdown={markdown} />; }
node_modules/reactify/node_modules/react-tools/src/event/__tests__/EventPluginRegistry-test.js
niole/super-simple-d3-barchart
/** * 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 directory. * * @emails react-co...
docs/src/app/components/pages/components/AppBar/ExampleIconButton.js
ruifortes/material-ui
import React from 'react'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import NavigationClose from 'material-ui/svg-icons/navigation/close'; import FlatButton from 'material-ui/FlatButton'; function handleTouchTap() { alert('onTouchTap triggered on the title component');...
node_modules/react-bootstrap/es/MenuItem.js
WatkinsSoftwareDevelopment/HowardsBarberShop
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/svg-icons/hardware/device-hub.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDeviceHub = (props) => ( <SvgIcon {...props}> <path d="M17 16l-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5h-4z"/> </SvgIcon>...
src/App.js
nolanlawson/react-wheel-jank-demo
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import logo from './logo.svg'; import './App.css'; import { times, noop } from 'lodash'; function wait(time) { var startTime = (new Date()).getTime(); var endTime = startTime + time; while ((new Date()).getTime() < endTime) { // wait...
ajax/libs/react-native-web/0.13.8/exports/View/index.min.js
cdnjs/cdnjs
import*as React from"react";import{forwardRef,useContext,useRef}from"react";import createElement from"../createElement";import css from"../StyleSheet/css";import pick from"../../modules/pick";import setAndForwardRef from"../../modules/setAndForwardRef";import useElementLayout from"../../hooks/useElementLayout";import u...
ajax/libs/material-ui/4.9.4/es/ExpansionPanel/ExpansionPanel.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import React from 'react'; import { isFragment } from 'react-is'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { chainPropTypes } from '@...
examples/server-rendering/routes.js
mjrussell/redux-router
import React from 'react'; import {Route} from 'react-router'; import {App, Parent, Child} from './components'; export default ( <Route path="/" component={App}> <Route path="parent" component={Parent}> <Route path="child" component={Child} /> <Route path="child/:id" component={Child} /> </Route>...
src/autocomplete/AutocompleteProvider.js
aperezdc/matrix-react-sdk
/* Copyright 2016 Aviral Dasgupta Copyright 2017 Vector Creations Ltd Copyright 2017, 2018 New Vector Ltd 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-...
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/__tests__/FormGroup.spec.js
GoogleCloudPlatform/prometheus-engine
import React from 'react'; import { shallow } from 'enzyme'; import { FormGroup } from '../'; describe('FormGroup', () => { it('should render with "form" tag by default', () => { const wrapper = shallow(<FormGroup>Yo!</FormGroup>); expect(wrapper.type()).toBe('div'); }); it('should render children', ()...
src/message/TimeRow.js
saketkumar95/zulip-mobile
/* @flow */ import React from 'react'; import { StyleSheet, Text, View, } from 'react-native'; import { HALF_COLOR } from '../styles'; import { humanDate } from '../utils/date'; const styles = StyleSheet.create({ row: { padding: 8, flexDirection: 'row', alignItems: 'center', overflow: 'hidden'...
src/index.js
agconti/tv
import React from 'react' import ReactDOM from 'react-dom' import App from './App' import './index.css' ReactDOM.render( <App />, document.getElementById('root') )
app/js/toolkit/LessThanXLarge.js
JeffRisberg/RE03
import React from 'react'; import PropTypes from 'prop-types'; import MatchMedia from './MatchMedia'; import { XLARGE } from '../constants/breakpoints'; const LessThanXLarge = ({ children, mediaFeatures }) => ( <MatchMedia mediaQuery={`(max-width: ${XLARGE - 1}px)`} mediaFeatures={mediaFeatures}> { children } ...
src/js/components/recommendations/RecommendationContent.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import CardContent from './../ui/CardContent'; export default class RecommendationContent extends Component { static propTypes = { recommendation: PropTypes.object.isRequired, accessibleKey : PropTypes.number.isRequired ...
addons/knobs/src/components/__tests__/Array.js
shilman/storybook
import React from 'react'; import { shallow } from 'enzyme'; import Array from '../types/Array'; describe('Array', () => { it('should subscribe to setKnobs event of channel', () => { const onChange = jest.fn(); const wrapper = shallow( <Array onChange={onChange} knob={{ name: 'passions'...
tests/view/perspectives/createPerspective.js
salesforce/refocus
/** * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or * https://opensource.org/licenses/BSD-3-Clause */ /** * tests/view/components/createPerspective.js */ import { expect } from 'chai';...
src/scripts/base/Strong.js
ButuzGOL/constructor
import React from 'react'; export default class Strong extends React.Component { getStyles() { return { fontWeight: 'bold' }; } render() { return ( <strong style={this.getStyles()}> {this.props.children} </strong> ); } }
index.js
mikah1337/null-terminator
import 'babel-polyfill'; // Only use once, in this entry file import React from 'react'; import ReactDOM from 'react-dom'; import Top_Bar from '../scripts/Top_Bar/Top_Bar'; import Main_Content from '../scripts/Main_Content/Main_Content'; //var url = window.location.href; //http://localhost:8080/src/dir/assign2/i...
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/Stepper/Page.js
pbogdan/react-flux-mui
import React from 'react'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import stepperReadmeText from './README.md'; import advancedReadmeText from './Advanced.md'; import HorizontalLinearStepper...
app/components/header.js
elysiumstatus/ElysiumStatusApp
import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; import _ from 'lodash' import { connect } from 'react-redux' import { getOrganizationName } from '../util/parser' class Header extends Component { render() { return ( <View style={{ height: 64, alignIte...
site/src/templates/docs.js
LastCallMedia/Mannequin
import React from 'react' import Page from '../components/Page' import PageWrapper from '../components/PageWrapper' import MenuTree from '../components/MenuTree' export default function Template(props) { const { markdownRemark: post, allMarkdownRemark: nav } = props.data const menu = buildMenu(nav.edges, post.head...
src/containers/Locations/Locations.js
zerkedev/zerke-app
import React, { Component } from 'react'; import _ from 'lodash'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import muiThemeable from 'material-ui/styles/muiThemeable'; import { injectIntl } from 'react-intl'; import { Activity } from '../../containers/Activity'; import { ZerkeMap } from...
src/click-game/ChildQues5.js
mrinalkrishnanm/Sld
import React from 'react'; import Navbar from '../Navbar'; import Modal from 'react-modal'; import { browserHistory } from "react-router"; import _ from 'lodash'; class ChildQues5 extends React.Component{ constructor(){ super(); this.state={ counter: 10, modalIsOpen: true, ...
ajax/libs/forerunnerdb/1.3.749/fdb-core.min.js
CyrusSUEN/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...
src/components/sectionbreak.js
pritchardtw/ReactPersonalSite
import React, { Component } from 'react'; export default class SectionBreak extends Component { render() { return( <div className="section-break"> </div> ); } }
src/js/components/hexgrid/HexGrid.js
VitorHP/TI3
import React from 'react' const { number, object, bool, string, array } = React.PropTypes import Path from './Path' import Layout from './Layout' import GridGenerator from './GridGenerator' import Systems from '../../systems'; class HexGrid extends React.Component { constructor(props) { super(props); this...
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js
it33/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import classNames from 'classnames'; import DialogStore from 'stores/DialogStore'; export default React.createClass({ mixins: [PureRenderMixin], getInitialState() { return { typing: null, show: false }; }, compon...
libs/jquery-1.10.2.min.js
drobune/gyazo-chrome-extension
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
ajax/libs/react-data-grid/0.13.14/react-data-grid.js
tholu/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["ReactDataGrid"] = f...
ajax/libs/jquery.fancytree/2.8.0/jquery.fancytree-all.min.js
vfonic/cdnjs
/*! jQuery Fancytree Plugin - 2.8.0 - 2015-02-08T17:56 * https://github.com/mar10/fancytree * Copyright (c) 2015 Martin Wendt; Licensed MIT */ (function( factory ) { if ( typeof define === "function" && define.amd ) { define( [ "jquery" ], factory ); } else { factory( jQuery ); } }(function( $ ) { !function...
node_modules/react-bootstrap/es/FormGroup.js
nikhil-ahuja/Express-React
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/js/components/Application.js
nama-gatsuo/shikaku-web
import React from 'react' import Shikaku from './wgl/Shikaku' export default class Application extends React.Component { constructor(props) { super(props); } componentDidMount() { this.shikaku = new Shikaku(); this.updateShikakuView(); } updateShikakuView() { var...
clients/packages/admin-client/src/components/data-grid/hocs/data-grid-hoc.js
nossas/bonde-client
import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' export default ({ rowComponent: RowComponent }) => (WrappedComponent) => { class PP extends React.Component { render () { const { children, data, fieldIndex, rowI...
src/components/Currency.js
KingKone/oversee
import React, { Component } from 'react'; import { ipcRenderer } from 'electron'; import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts'; let data = []; let lcup = 0; class Currency extends React.Component { render() { return ( <div className="currency"> ...
app/src/components/Loading.js
grantrules/bikeindustryjobs
import React from 'react'; const Loading = () => ( <div id="loading"> <svg width="105" height="105" viewBox="0 0 105 105" xmlns="http://www.w3.org/2000/svg" fill="#ccc"> <circle cx="12.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="0s" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="...
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js
iest/react-router
import React from 'react'; import { Link } from 'react-router'; class Sidebar extends React.Component { render () { var assignments = COURSES[this.props.params.courseId].assignments return ( <div> <h3>Sidebar Assignments</h3> <ul> {assignments.map(assignment => ( ...
src/components/section.js
pagarme/api-reference
import React from 'react'; import remark from 'remark'; import remarkHTML from 'remark-html'; import remarkHighlight from '../highlight'; import PureRenderMixin from 'react-pure-render/mixin'; import { postHighlight } from '../../custom'; function renderHighlighted(nodes) { return { __html: postHighlight(remark(...
examples/func-test/src/routes/IndexPage.js
dvajs/dva
import React from 'react'; import { connect } from 'dva'; import styles from './IndexPage.css'; function IndexPage() { return ( <div className={styles.normal}> <h1 className={styles.title}>Yay! Welcome to dva!</h1> <div className={styles.welcome} /> <ul className={styles.list}> <li> ...
ui/app/components/error_panel.js
leapcode/bitmask-dev
import React from 'react' import Center from './center' import Area from './area' import { Modal } from 'react-bootstrap' import App from 'app' class ErrorMessage extends React.Component { static get defaultProps() {return{ message: null, stack: null }} constructor(props) { super(props) } rend...
app/components/LoadingIndicator/index.js
houlematt/matt-site
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...