path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
dev/components/QAList.js
the0neWhoKnocks/react.ask-trev
import React from 'react'; import { generateHash, objToArray } from '../utils.js'; import { dataFrom } from '../database.js'; import css from '../styles/QAList.styl'; import QANav from './QANav.js'; import QAListItem from './QAListItem.js'; export default class QAList extends React.Component { constructor(pr...
app/javascript/flavours/glitch/features/local_settings/page/index.js
Kirishima21/mastodon
// Package imports import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, FormattedMessage, injectIntl } from 'react-intl'; // Our imports import LocalSettingsPageItem from './item'; // * * * * * * * * * * * * * * * * * * ...
app/components/tutorialWelcomePage.js
CMP-Studio/TheWarholOutLoud
import React from 'react'; import { Text, View, Image, StyleSheet, } from 'react-native'; import { OFF_WHITE, TURQUOISE } from '../styles'; const styles = StyleSheet.create({ container: { flexDirection: 'column', marginHorizontal: 15, }, logo: { marginTop: 125, alignSelf: 'center', ...
test/fixtures/mjs-support/src/App.js
timlogemann/create-react-app
import React, { Component } from 'react'; import ApolloClient, { gql } from 'apollo-boost'; import { ApolloProvider, Query } from 'react-apollo'; const GET_PIKA = gql` { pokemon(name: "Pikachu") { name } } `; const client = new ApolloClient({ uri: 'https://graphql-pokemon.now.sh/graphql', }); cla...
test/specs/cartesian/LineSpec.js
sdoomz/recharts
import React from 'react'; import { expect } from 'chai'; import { Surface, Line } from 'recharts'; import { mount, render } from 'enzyme'; describe('<Line />', () => { const data = [ { x: 10, y: 50, value: 100 }, { x: 50, y: 50, value: 100 }, { x: 90, y: 50, value: 100 }, { x: 130, y: 50, value: 100...
src/components/Header.js
RucaLove/GameifyYoSummah
import React from 'react'; const Header = ({}) => { return ( <nav> <div className="nav-wrapper amber darken-2"> <div className="col s12"> <a href="#" className="brand-logo animated flip">Epic Weekend</a> </div> </div> </nav> ) } export default Header
js-old/Details.js
aramay/complete-intro-to-react-v2
import React from 'react' import { connect } from 'react-redux' import { getOMDBDetails } from './actionCreators' import Header from './Header' const { shape, string, func } = React.PropTypes const Details = React.createClass({ propTypes: { show: shape({ title: string, year: string, poster: str...
lib/components/term.js
ppot/hyper
/* global Blob,URL,requestAnimationFrame */ import React from 'react'; import {Terminal} from 'xterm'; import * as fit from 'xterm/lib/addons/fit/fit'; import * as webLinks from 'xterm/lib/addons/webLinks/webLinks'; import * as winptyCompat from 'xterm/lib/addons/winptyCompat/winptyCompat'; import {clipboard} from 'ele...
frontend/TabbedPane.js
jhen0409/react-devtools
/** * 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. * * @flow */...
svg-icons/device/screen-lock-landscape.js
dhavalbyteprophecy/material-ui-build
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
src/components/header.js
yvanbister/WeddingSite
import React, { Component } from 'react'; import Countdown from './countdown'; class Header extends Component { render() { return ( <div className="row" id="header"> <div className="col-6" id="nametag">Ineke & Yvan</div> <div className="col-6"> {/* <Countdown /> */} </div> </div> ); } } e...
src/svg-icons/device/settings-system-daydream.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSettingsSystemDaydream = (props) => ( <SvgIcon {...props}> <path d="M9 16h6.5c1.38 0 2.5-1.12 2.5-2.5S16.88 11 15.5 11h-.05c-.24-1.69-1.69-3-3.45-3-1.4 0-2.6.83-3.16 2.02h-.16C7.17 10.18 6 11.45 6 13c0 1....
fixtures/legacy-jsx-runtimes/react-17/cjs/react-jsx-dev-runtime.production.min.js
cpojer/react
/** @license React v17.0.0-rc.3 * react-jsx-dev-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict';require("object-assign");require("react");ex...
src/svg-icons/maps/hotel.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsHotel = (props) => ( <SvgIcon {...props}> <path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/> </SvgIcon> ); MapsHotel = pure(MapsHot...
client/components/SignUp/SignUpPage.js
Danielbook/liftinglog
import React from 'react'; import PropTypes from 'prop-types'; import SignUpForm from './SignUpForm'; class SignUpPage extends React.Component { /** * Class constructor. */ constructor(props, context) { super(props, context); // set the initial components state this.state = { errors: {}, ...
src/core/XConsole.js
whinc/xConsole
/* * Created by whincwu on 2017/10 */ import React from 'react' import ReactDOM from 'react-dom' import {Emitter} from 'event-kit' import './XConsole.css' import XConsoleView from './XConsoleView' import ConsolePlugin from '../plugins/ConsolePlugin' import NetworkPlugin from '../plugins/NetworkPlugin' import {isFunct...
src/components/icons/Linkedin.js
lmammino/loige.co
import React from 'react' const Linkedin = props => ( <svg aria-label="LinkedIn" viewBox="0 0 24 24" width="1em" height="1em" {...props} > <path fill="currentColor" d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414...
src/svg-icons/action/watch-later.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionWatchLater = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/> </SvgIcon> ); ActionWatchLater = pure(Ac...
app/component/AddFriend.js
icalF/piye-kabare
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, StyleSheet, Text, TextInput, TouchableHighlight, View } from 'react-native'; import styles from '../style/FormStyles'; export default class AddFriend extends Component { constructor(props) { super(props); this.s...
src/components/Image.js
billdevcode/spaceship-emporium
import React from 'react' import propTypes from 'prop-types' import AlphaClassXg1StarWing from 'assets/Alpha-class-Xg-1-Star-Wing.jpg' import BWingHeavyAssaultStarfighter from 'assets/B-wing-heavy-assault-starfighter.jpg' import LambdaClassT4AShuttle from 'assets/Lambda-class-T-4a-shuttle.jpg' import RZ1AWingIntercept...
docs/app/Examples/elements/Header/Types/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import { Message } from 'semantic-ui-react' const HeaderTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample ...
src/components/ReadingListPage.js
guilhermehn/manga-reader
import React from 'react' import EmptyReadingList from './reading-list/EmptyReadingList' import ReadingList from './reading-list/ReadingList' import ReadingListAPI from '../apis/ReadingListAPI' import ReadingListStore from '../stores/ReadingListStore' function getStateFromStores() { return { items: ReadingListS...
assets/js/vendor/jquery-1.9.1.min.js
sobkowiak/sobkowiak.github.io
/*! 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...
src/components/drafts.js
fc-io/mtg_draft_seatings_generator
// import _ from 'lodash' import React from 'react' import getDraftPods from '../services/get_draft_pods' import drafts from '../resources/drafts' import Draft from './draft' export default ({players}) => { var {pods, success} = getDraftPods(drafts, players) return ( <div> <div>## Draft Pods</div> ...
src/svg-icons/content/add-circle-outline.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAddCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.5...
packages/material-ui-icons/src/RssFeedRounded.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><circle cx="6.18" cy="17.82" r="2.18" /><path d="M5.59 10.23c-.84-.14-1.59.55-1.59 1.4 0 .71.53 1.28 1.23 1.4 2.92.51 5.22 2.82 5.74 5.74.12.7.69 1.23...
cli/base-antd-pro/src/components/Authorized/Secured.js
CFshuming/react-demo-gather
import React from 'react'; import Exception from '../Exception/index'; import CheckPermissions from './CheckPermissions'; /** * 默认不能访问任何页面 * default is "NULL" */ const Exception403 = () => ( <Exception type="403" style={{ minHeight: 500, height: '80%' }} /> ); /** * 用于判断是否拥有权限访问此view权限 * authority 支持传入 string ...
ajax/libs/ScrollMagic/2.0.4/ScrollMagic.js
dlueth/cdnjs
/*! * ScrollMagic v2.0.4 (2015-04-29) * The javascript library for magical scroll interactions. * (c) 2015 Jan Paepke (@janpaepke) * Project Website: http://scrollmagic.io * * @version 2.0.4 * @license Dual licensed under MIT license and GPL. * @author Jan Paepke - e-mail@janpaepke.de * * @file ScrollMagic m...
src/pages/admin/ReportsCustomersAdminPage.js
ihenvyr/react-app
import React from 'react'; import Helmet from 'react-helmet'; import { withRouter } from 'react-router'; const ReportsCustomersAdminPage = () => { return ( <div> <Helmet title="Customers Report - Admin" meta={[ { name: "description", content: "Customers Report - Admin" } ...
ajax/libs/forerunnerdb/1.3.348/fdb-core.min.js
froala/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/svg-icons/action/perm-contact-calendar.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermContactCalendar = (props) => ( <SvgIcon {...props}> <path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-...
packages/material-ui-icons/src/FiberManualRecordOutlined.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6 2.69-6 6-6m0-2c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8z" /></React.Fragment> , 'Fiber...
app/javascript/mastodon/components/extended_video_player.js
blackle/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class ExtendedVideoPlayer extends React.PureComponent { static propTypes = { src: PropTypes.string.isRequired, alt: PropTypes.string, width: PropTypes.number, height: PropTypes.number, time: PropTypes.number, contr...
ajax/libs/angular.js/0.9.13/angular-scenario.min.js
kentcdodds/cdnjs
/*! * 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. ...
ajax/libs/material-ui/4.9.11/TableContainer/TableContainer.js
cdnjs/cdnjs
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.styles = void 0; var _extends2 = _int...
lib/index.js
dstock48/weathrly
import React from 'react'; import ReactDOM from 'react-dom'; import Weathrly from './Weathrly/Weathrly'; import './index.css'; ReactDOM.render( <Weathrly />, document.getElementById('app') );
src/components/Time.js
angeloocana/angeloocana
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedDate } from 'react-intl'; const Time = (props) => { return ( <time {...props} dateTime={props.date}> <FormattedDate value={new Date(props.date)} month="long" day="numeric" year="numeric" /...
docs/src/examples/elements/List/Variations/ListExampleCelledOrdered.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { List } from 'semantic-ui-react' const ListExampleCelledOrdered = () => ( <List celled ordered> <List.Item>Cats</List.Item> <List.Item>Horses</List.Item> <List.Item> Dogs <List.List> <List.Item>Labradoodles</List.Item> <List.Item>Shiba Inu</Li...
packages/cf-component-link/src/Link.js
koddsson/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; import { routeTo } from 'cf-util-route-handler'; class Link extends React.Component { constructor(props, context) { if (!props.to && !props.onClick) { throw new Error('<Link/> requires either a `to` or `onClick` prop'); } super(props, ...
src/index.js
TalhaAwan/react-chess
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import Game from './components/game.js' ReactDOM.render( <Game />, document.getElementById('root') );
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js
wangkang0627/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import DialogActionCreators from 'actions/DialogActionCreators'; import DialogStore from 'stores/DialogStore'; import CreateGroupActionCreators from 'actions/CreateGro...
ajax/libs/forerunnerdb/1.3.524/fdb-core.min.js
sashberd/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/App.js
timbur/react-transform-boilerplate
import React, { Component } from 'react'; import { NICE, SUPER_NICE } from './colors'; class Counter extends Component { constructor(props) { super(props); this.state = { counter: 0 }; this.interval = setInterval(() => this.tick(), 1000); } tick() { this.setState({ counter: this.state.coun...
test/test_helper.js
Wishmaker888/react-redux-routes
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
packages/react-reconciler/src/__tests__/ReactBatchedMode-test.internal.js
cpojer/react
let React; let ReactFeatureFlags; let ReactNoop; let Scheduler; let ReactCache; let Suspense; let TextResource; describe('ReactBlockingMode', () => { beforeEach(() => { jest.resetModules(); ReactFeatureFlags = require('shared/ReactFeatureFlags'); ReactFeatureFlags.replayFailedUnitOfWorkWithInvokeGuarded...
webpack/components/EditableInput.js
theforeman/foreman_openscap
import React, { useState } from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import { Button, Split, SplitItem, Spinner, FormGroup, } from '@patternfly/react-core'; import { TimesIcon, CheckIcon, PencilAltIcon, ExclamationCircleIcon, } from '...
node_modules/react-router/es/IndexRoute.js
vallihe/wizarddemo
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './InternalPropTypes'; var func = React.PropTypes.func; /** * An <IndexRoute> i...
src/components/ContestList.js
anitailieva/fullstack-javascript
import React from 'react'; import ContestPreview from './ContestPreview'; const ContestList = ({ contests, onContestClick }) => ( <div className="ContestList"> {Object.keys(contests).map(contestId => <ContestPreview key={contestId} onClick={onContestClick} ...
src/components/entities/Grow.js
DelvarWorld/some-game
import React, { Component } from 'react'; import THREE, { Euler, Vector3, } from 'three'; import { easeInOutCubic } from 'easing-utils'; const rotationOffset = new Euler( Math.PI / 2, 0, 0 ); const billboardScale = new Vector3( 1, 1, 1 ).multiplyScalar( 0.6 ); const rotationSpeed = -0.08; const bounceSpeed = 0.0025; c...
dist/famous.js
NoraLou/famous_workshop
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Owner: mark@famo.us * @license MPL 2.0 * @copyright Famous Industries, Inc. 2014 */ define('famous/core/Enti...
docs/app/Examples/elements/Header/Types/HeaderExamplePage.js
vageeshb/Semantic-UI-React
import React from 'react' import { Header } from 'semantic-ui-react' const HeaderExamplePage = () => ( <div> <Header as='h1'>First Header</Header> <Header as='h2'>Second Header</Header> <Header as='h3'>Third Header</Header> <Header as='h4'>Fourth Header</Header> <Header as='h5'>Fifth Header</Head...
components/Navbar.js
amni/alanmni-portfolio
import React from 'react' import { config } from 'config' import { rhythm } from 'utils/typography' import { prefixLink } from 'gatsby-helpers' import NavbarItems from 'components/NavbarItems' class Navbar extends React.Component { render () { return ( <div style = {{textAlign:"left",backgroundColor:"white"...
app/containers/TimeLine/index.js
SakuB/Individual_website
import React, { Component } from 'react'; import QueueAnim from 'rc-queue-anim'; import styles from './styles.css'; class TimeLine extends Component { render() { return ( <section className={styles.timeline}> <QueueAnim type="bottom" className={styles.timeline_con}> <div className={style...
ajax/libs/highcharts/3.0.2/highcharts.src.js
stomita/cdnjs
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highcharts JS v3.0.2 (2013-06-05) * * (c) 2009-2013 Torstein Hønsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout...
js/redux/learn-redux/node_modules/react/lib/ReactLink.js
austinjalexander/sandbox
/** * 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...
packages/react-look/demo/client.js
obscene/Obscene-Stylesheet
import React from 'react' import { render } from 'react-dom' import { StyleSheet, LookRoot, Presets, Plugins } from '../modules' import App from './app.jsx' StyleSheet.addCSS({ '*': { padding: 0, margin: 0, fontFamily: '"Lato", sans-serif', fontWeight: 300, boxSizing: 'border-box', userSelec...
p216/src/App.js
Sylvestre67/packde16
import React, { Component } from 'react'; import injectTapEventPlugin from 'react-tap-event-plugin'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import PropTypes from 'prop-types'; import ReactSwipe from 'react-swipe'; import Illustration from './component/Illustration'; import MediaPlayer fro...
client/components/ModalPostman/MethodsList.js
YMFE/yapi
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Row, Icon, Input, Select, Tooltip } from 'antd'; import _ from 'underscore'; const Option = Select.Option; // 深拷贝 function deepEqual(state) { return JSON.parse(JSON.stringify(state)); } const METHODS_LIST = [ { name: 'md5', typ...
extras/chicago-brick-live/editor-server/app/js/components/NavBar.js
lankastersky/chicago-brick
/* Copyright 2016 Google Inc. All Rights Reserved. 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 wri...
src/svg-icons/action/settings-phone.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsPhone = (props) => ( <SvgIcon {...props}> <path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-...
examples/with-cerebral/components/Page.js
callumlocke/next.js
import React from 'react' import Link from 'next/link' import { connect } from '@cerebral/react' import { state, signal } from 'cerebral/tags' import Clock from './Clock' export default connect({ lastUpdate: state`clock.lastUpdate`, light: state`clock.light`, mounted: signal`clock.mounted`, unMounted: signal`c...
src/index.js
nkbt/react-plugin-test
import React from 'react'; const SafePlugin = React.createClass({ propTypes: { onRender: React.PropTypes.func }, render() { this.props.onRender(); return ( <div style={{minHeight: 300, background: 'rgba(0, 0, 255, 0.2)'}}> <h2>I am Safe Plugin</h2> </div> ); } }); const...
src/svg-icons/action/play-for-work.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPlayForWork = (props) => ( <SvgIcon {...props}> <path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z"/> </SvgIcon> ); ActionPlayForWork ...
stories/data/DataUtil.js
tidepool-org/viz
/* * == BSD2 LICENSE == * Copyright (c) 2017, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program ...
demo/js/components/body.js
rolyatmax/redux-resource-manager
// FIXME: figure out why eslint is messed up here import React from 'react'; // eslint-disable-line import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; // eslint-disable-line import store from '../store'; import { connectResourceManager } from '../../../src'; import { setUser } from '../a...
src/Time.js
Karkin/react-native-gifted-chat
import React from 'react'; import { StyleSheet, Text, View, } from 'react-native'; import moment from 'moment/min/moment-with-locales.min'; export default class Time extends React.Component { render() { return ( <View style={[styles[this.props.position].container, this.props.containerStyle[this.prop...
src/entypo/Document.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Document'; let EntypoDocument = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path fillRule="evenodd" clipRule="evenodd" d="M16,1H4C3.447,1,3,1.447,3,2v16c0,0.552,0.447,1,1,1h12c0.553...
ajax/libs/shariff/1.4.3/shariff.complete.js
SaravananRajaraman/cdnjs
/* * shariff - v1.4.2 - 30.11.2014 * https://github.com/heiseonline/shariff * Copyright (c) 2014 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli * Licensed under the MIT <http://www.opensource.org/licenses/mit-license.php> license */ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){...
3-Redux-weather/src/index.js
OscarDeDios/cursoUdemyReact
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware(...
packages/material-ui-icons/lib/NightlifeOutlined.js
mbrookes/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")...
accounts-ui/app/components/changePassword.js
CloudBoost/cloudboost
import React from 'react'; import { Link } from 'react-router' import axios from 'axios' import CircularProgress from 'material-ui/CircularProgress' class ChangePassword extends React.Component { constructor(){ super() this.state = { errorMessage:'', success: false, password:"...
ajax/libs/webshim/1.14.4-RC2/dev/shims/moxie/js/moxie.js
ripple0328/cdnjs
/** * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill * v1.2.1 * * Copyright 2013, Moxiecode Systems AB * Released under GPL License. * * License: http://www.plupload.com/license * Contributing: http://www.plupload.com/contributing * * Date: 2014-05-14 */ /** * Compiled inline version. (Library ...
ajax/libs/yui/3.7.1/event-custom-base/event-custom-base-coverage.js
AlexisArce/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...
ajax/libs/yui/3.7.0/datatable-core/datatable-core.js
aFarkas/cdnjs
YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @since 3.5.0 **/ var INVALID = Y.Attribute.INVALID_VALUE, Lang = Y.Lang, isFunction = Lang.isFunction, isObject = Lang.isO...
node_modules/react-router/lib/InternalPropTypes.js
nockgish/gish
'use strict'; exports.__esModule = true; exports.routes = exports.route = exports.components = exports.component = exports.history = undefined; exports.falsy = falsy; var _react = require('react'); var func = _react.PropTypes.func, object = _react.PropTypes.object, arrayOf = _react.PropTypes.arrayOf, one...
vendor/jquery/jquery.min.js
lesnek/Blog
/*! jQuery v1.12.4 | (c) jQuery Foundation | 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 window?window:this,fu...
app/components/inputs/InputText.react.js
shiminghua/front_end_practice
'use strict'; import React from 'react'; class InputText extends React.Component { constructor(props) { super(props); this.state = { value: props.defaultValue }; } handleChange(event) { if(this.props.onChange) { this.props.onChange(event); }...
test/WellSpec.js
deerawan/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Well from '../src/Well'; describe('Well', function () { it('Should output a well with content', function () { let instance = ReactTestUtils.renderIntoDocument( <Well> <strong>Content</strong> </Well> ...
frontend/src/app/components/RetireConfirmationDialog.js
clouserw/testpilot
import React from 'react'; export default class RetireConfirmationDialog extends React.Component { render() { return ( <div className="modal-container"> <div id="retire-dialog-modal" className="modal feedback-modal modal-bounce-in"> <header> <h3 className="title warning" data-...
src/Parser/Paladin/Protection/Modules/Features/AlwaysBeCasting.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import { formatPercentage } from 'common/format'; import CoreAlwaysBeCasting from 'Parser/Core/Modules/AlwaysBeCasting'; import { STATISTIC_ORDER } from 'Main/StatisticBox'; c...
spec/components/Children/Ordering.js
beplus/reflay
import React from 'react' import Layout from '../../../src/components/Layout' import Box from '../../../src/components/Box' const Ordering = () => ( <div> <h3>Ordering HTML elements</h3> <Layout direction='row'> <Box className='box' flex='auto' order={-1}> <p>[order="-1"]</p> </Box> ...
app/javascript/mastodon/containers/mastodon.js
koba-lab/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { BrowserRouter, Route } from 'react-router-dom'; import { ScrollContext } from 'react-router-scroll-4'; import UI from '../features/ui'; import { fetchCust...
ajax/libs/6to5/1.13.13/browser-polyfill.js
dada0423/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/babel-polyfill/6.1.4/polyfill.js
jdh8/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
packages/material-ui-icons/src/AssignmentReturnedSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M21 3h-6.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H3v18h18V3zm-9 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 15l-5-5h3V9h4v4h3l-5 5z" /...
src/modules/Button.js
markmiro/ui-experiments
import React from 'react'; import ms from './ms'; import {padding, margin} from './cssUtils'; let Button = props => ( <a {...props} style={{ display: 'inline-block', color: props.color || props.g.base(1), background: 'transparent', borderColor: 'inherit', borderWidth: ms.border(3), borderStyl...
node_modules/react-scripts/config/jest/babelTransform.js
preetam-yadav/tncReactApp
// @remove-file-on-eject /** * Copyright (c) 2014-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; const babelJest = require('babel-jest'); module.exports = babelJest.createTransformer({ preset...
src/main.js
SurfaceW/connectify_client
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import createStore from './store/createStore' import AppContainer from './containers/Ap...
src/decorators/flux.js
leonlin14/OpenStackHackathon
import React from 'react'; export default function(target) { var Component = target; if (target.isInitializer) Component = target.component; if (!Component.contextTypes) Component.contextTypes = {}; if (!Component.contextTypes.flux) Component.contextTypes.flux = React.PropTypes.object; Component.prototyp...
app/javascript/mastodon/features/compose/components/action_bar.js
tri-star/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ edit_profile: { id: 'a...
fields/types/color/ColorColumn.js
geminiyellow/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var ColorColumn = React.createClass({ displayName: 'ColorColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.obje...
test/DropdownToggleSpec.js
Terminux/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import DropdownToggle from '../src/DropdownToggle'; import {getOne} from './helpers'; describe('DropdownToggle', () => { const simpleToggle = <DropdownToggle open={false} title='herpa derpa' />; it('renders toggle button', () => {...
src/components/prompts/ReactRouterLeaveListener.js
knod/cliff-effects-1
import React from 'react'; import { Prompt } from 'react-router-dom'; /** * `<Prompt>` waits, invisible, till a user navigates * to another React 'page', then triggers the * `getUserConfirmation` prop that we gave it in * 'App.js'. The standard functionality is very * limited, though. Its component will only show...
app/router/routes.js
caiyongmin/react-todo
import React from 'react' import {Route, IndexRoute} from 'react-router' import App from './app' import Tasks from '../handler/tasks' import Task from '../handler/task' import FontAwesome from '../css/font-awesome.min.css' import IndexCSS from '../css/index.css' import NormalizeCSS from '../css/normalize.css' module...
assets/jqwidgets/jqwidgets-react/react_jqxslider.js
juannelisalde/holter
/* jQWidgets v4.5.4 (2017-June) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export default class JqxSlider extends React.Component { componentDidMount() { let options = this.manageAttributes(); this.createC...
ajax/libs/forerunnerdb/1.4.25/fdb-all.min.js
cdnjs/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/svg-icons/hardware/laptop.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareLaptop = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"/> </SvgIcon> ); HardwareLaptop = pure(Hardwa...
js/apps/system/_admin/aardvark/APP/react/src/views/shards/ShardsReactView.js
arangodb/arangodb
import React from 'react'; import { Provider } from 'react-redux'; import store from '../../configureStore'; import Overview from './overview'; class ShardsReactView { render () { return <Provider store={store}> <Overview/> </Provider>; } } window.ShardsReactView = ShardsReactView;
src/parser/rogue/assassination/modules/spells/GarroteUptime.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import StatisticBox fro...
sites/all/libraries/backbone/backbone.js
CCI-Studios/Hidden-Talents
// Backbone.js 1.0.0 // (c) 2010-2013 Jeremy Ashkenas, DocumentCloud Inc. // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(){ // Initial Setup // ------------- // Save a reference to the global object (`wi...