target
stringlengths
5
300
feat_repo_name
stringlengths
6
76
text
stringlengths
26
1.05M
src/DropDownItem.js
loktar00/react-custom-dropdown
import React, {Component, PropTypes} from 'react'; import Radium from 'radium'; let styles = { menuItem: { cursor: 'pointer', fontSize: '13px', padding: '6px 0 6px 20px', ':hover' : { backgroundColor: '#52a6fa', color: '#fff' } } }; @Radium expor...
packages/cf-component-card/src/CardContent.js
mdno/mdno.github.io
import React from 'react'; import PropTypes from 'prop-types'; class CardContent extends React.Component { render() { return ( <div className="cf-card__content"> <h3 className="cf-card__title"> {this.props.title} </h3> {this.props.children} {this.props.footerMessa...
src/svg-icons/image/filter-9-plus.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter9Plus = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 7V8c0-1.11-.9-2-2-2h-1c-1.1 0-2 .89-2 2v1c0 1.11.9 2 2 2h1v1H9v2h3c1.1 0 2-.89 2-2zm-3-3V8h1v1h-1zm10-8H7c-1.1...
frontend/src/Settings/Profiles/Quality/QualityProfileItemDragSource.js
geogolem/Radarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { DragSource, DropTarget } from 'react-dnd'; import { findDOMNode } from 'react-dom'; import { QUALITY_PROFILE_ITEM } from 'Helpers/dragTypes'; import QualityProfileItem from './QualityProfileItem';...
ajax/libs/react-bootstrap-table/2.5.4/react-bootstrap-table.js
seogi1004/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["react", "react-dom"], factory); else if(typeof exports === 'obje...
ajax/libs/webshim/1.15.1-RC1/dev/shims/es6.js
ahocevar/cdnjs
// ES6-shim 0.15.0 (c) 2013-2014 Paul Miller (http://paulmillr.com) // ES6-shim may be freely distributed under the MIT license. // For more details and documentation: // https://github.com/paulmillr/es6-shim/ webshim.register('es6', function($, webshim, window, document, undefined){ 'use strict'; var isCallableW...
test/app/containers/App.spec.js
jordanco/drafter-frontend
import React from 'react'; import expect from 'expect'; import { mount } from 'enzyme'; import { createStore, combineReducers, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import { Provider } from 'react-redux'; import App from '../../../src/app/containers/App'; // import configureStore fro...
packages/material-ui-icons/src/Toll.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z" /><path d="M3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.55 5.15 1 8.27 1 1...
src/mobile/NewsMobile.js
qingweibinary/binary-next-gen
import React, { Component } from 'react'; import Tabs from '../_common/Tabs'; import MobilePage from '../containers/MobilePage'; import NewsContainer from '../news/NewsContainer'; import VideoListContainer from '../video/VideoListContainer'; export default class NewsMobile extends Component { constructor(props) {...
src/setupTests.js
mdcarter/lunchfinder.io
import 'raf/polyfill'; import React from 'react'; import { configure } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import PlacesAutocomplete, { geocodeByAddress, getLatLng } from 'react-places-autocomplete'; import GoogleMapReact from 'google-map-react'; configure({ adapter: new Adapter() }); jest.m...
ajax/libs/yui/3.4.1/simpleyui/simpleyui.js
Amomo/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 names...
v0.0.1/app/header.js
reactjs-id/reactjs-id.github.io
import React from 'react'; var styles = { select: { appearance: 'none', '-webkit-appearance': 'none', '-moz-appearance': 'none', width: '100%', padding: '0 20px', border: 'none', color: '#000', borderRadius: 0, background: '#fff' }, im...
ajax/libs/react-native-web/0.0.0-4fd133e73/cjs/exports/ProgressBar/index.min.js
cdnjs/cdnjs
"use strict";exports.__esModule=!0,exports.default=void 0;var _StyleSheet=_interopRequireDefault(require("../StyleSheet")),_View=_interopRequireDefault(require("../View")),_react=_interopRequireWildcard(require("react"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;ret...
ajax/libs/plotly.js/1.39.2/plotly-finance.min.js
jonobr1/cdnjs
/** * plotly.js (finance - minified) v1.39.2 * Copyright 2012-2018, Plotly, Inc. * All rights reserved. * Licensed under the MIT license */ !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?...
test/focus-first-suggestion-clear-on-enter/AutosuggestApp.js
CoreFiling/react-autosuggest
import React, { Component } from 'react'; import sinon from 'sinon'; import Autosuggest from '../../src/Autosuggest'; import languages from '../plain-list/languages'; import { escapeRegexCharacters } from '../../demo/src/components/utils/utils.js'; import { addEvent } from '../helpers'; const getMatchingLanguages = va...
src/svg-icons/device/battery-30.js
lawrence-yu/material-ui
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 ...
examples/src/components/CustomRenderField.js
javier-garcia-anfix/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var CustomRenderField = React.createClass({ displayName: 'CustomRenderField', propTypes: { delimiter: React.PropTypes.st...
generators/component/templates/Component.js
gmmendezp/generator-nyssa-fe
import React, { Component } from 'react'; import { translate } from 'react-i18next'; import { style } from 'typestyle';<% if (container){%> import { connect } from 'react-redux';<% } %> export class <%= name %> extends Component { static defaultProps = { styles: {} } constructor() { super(); this.st...
app/private/indexerApp/imports/ui/pages/NewDocument.js
ericvrp/GameCollie
import React from 'react'; import DocumentEditor from '../components/DocumentEditor.js'; const NewDocument = () => ( <div className="NewDocument"> <h4 className="page-header">New Document</h4> <DocumentEditor /> </div> ); export default NewDocument;
app/src/components/Nav.js
alpcanaydin/github-stats-for-turkey
/* eslint-disable jsx-a11y/no-static-element-interactions */ import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class Nav extends Component { constructor(props) { super(props); this.state = { isMobileMenuOpened: false }; this.handleMobileMenuVisibility = this.handleMobi...
ajax/libs/react-bootstrap/0.29.0-alpha.0/react-bootstrap.js
AMoo-Miki/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["react", "react-dom"], factory); else if(typeof exports === 'obje...
src/app/screens/App/screens/Dashboard/components/Dashboard.js
docgecko/react-alt-firebase-starter
/*! React Alt Firebase Starter */ import './Dashboard.less'; import React from 'react'; export default class Dashboard extends React.Component { render() { return ( <div className='dashboard'> <h1>Welcome to the Dashboard...</h1> </div> ); } }
tools/start.js
kareems/tax-receipt
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import browserSync from 'browser-sync'; import webpack from 'webpack'; import hygienistMiddleware from 'hygienist-middleware'; import webpackDevMiddleware from 'webpack...
src/routes.js
mikeyhogarth/nasteroids
import React from 'react'; import { Router, Route, IndexRoute, hashHistory } from 'react-router'; import App from './components/app/app.component'; import Asteroids from './components/asteroids/asteroids.component'; import Asteroid from './components/asteroid/asteroid.component'; import About from './components/about/...
src/components/Group.js
dialob/dialob-fill-ui
/** * Copyright 2016 ReSys OÜ * * 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...
lib/SevenHour.js
danalvarez5280/Weatherly
import React from 'react'; import Card from './Card'; export default function SevenHour (props) { const hourlyInfo = props.sevenHourInfo.slice(0, 6) return ( <div className="hourly-forecast"> The 7 Hour Forecast <div className="seven-hour"> { hourlyInfo.map(obj => { return ...
node_modules/react-bootstrap/es/FormGroup.js
CallumRocks/ReduxSimpleStarter
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 ...
icons/communication/stay-primary-portrait.js
mikamaunula/react-material-icons
'use strict'; var React = require('react'); var mui = require('material-ui'); var SvgIcon = mui.SvgIcon; var createClass = require('create-react-class'); var CommunicationStayPrimaryPortrait = createClass({ displayName: 'CommunicationStayPrimaryPortrait', render: function render() { return React.createEleme...
src/routes/contact/index.js
ben-miller/adddr.io
/** * adddr (https://www.adddr.io/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../components/Layout'; impor...
app/config/routes.js
ldd/samosa-search
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Main from '../components/Main/Main'; import Sale from '../components/Sale/Sale'; import SaleMap from '../components/MapView/MapView'; export default ( <Route path='/' component={Main}> <Route path='sale' component={Sale} /> <...
src/components/home_screen/settings.js
shoumma/Mister-Poster
/** * the settings tab */ import React, { Component } from 'react' import { Text, View, TouchableOpacity, Alert, StyleSheet } from 'react-native' import { firebaseApp } from '../../firebase' import Icon from 'react-native-vector-icons/Ionicons' export default class Settings extends Component { construct...
src/interface/report/Results/Overview/index.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { hasPremium } from 'interface/selectors/user'; import Ad from 'interface/common/Ad'; import Checklist from './Checklist'; import Suggestions from './Suggestions'; class Overview extends React.PureComponent {...
tests/baselines/reference/tsxStatelessFunctionComponentOverload6.js
jwbay/TypeScript
//// [file.tsx] import React = require('react') export interface ClickableProps { children?: string; className?: string; } export interface ButtonProps extends ClickableProps { onClick: React.MouseEventHandler<any>; } export interface LinkProps extends ClickableProps { to: string; } export interfa...
ajax/libs/react-native-web/0.0.0-d48f63060/cjs/vendor/react-native/Animated/NativeAnimatedHelper.js
cdnjs/cdnjs
"use strict"; exports.__esModule = true; exports.generateNewAnimationId = generateNewAnimationId; exports.shouldUseNativeDriver = shouldUseNativeDriver; exports.default = void 0; var _NativeAnimatedModule = _interopRequireDefault(require("./NativeAnimatedModule")); var _NativeAnimatedTurboModule = _interopRequireDef...
test/integration/image-component/default/pages/priority.js
flybayer/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <p>Priority Page</p> <Image priority id="basic-image" src="/test.jpg" width="400" height="400" ></Image> <Image loading="eager" id="basic-im...
app/javascript/mastodon/features/ui/components/video_modal.js
tootsuite/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Footer from 'mastodon/features/picture_in_picture/components/footer'; import...
src/Popup.react.js
z-vr/react-popup
import React from 'react'; import PropTypes from 'prop-types'; import key from 'keymaster'; import PopupStore from './Store'; import Header from './Header.react'; import Footer from './Footer.react'; import Constants from './Constants'; const defaultKeyFilter = key.filter; const Store = new PopupStore(); const hasCla...
app/components/ChargesModal/index.js
seanng/web-server
/** * * ChargesModal * */ import React from 'react'; import { Modal, Form, FormControl } from 'react-bootstrap'; import Button from '../Button'; import ChargesList from '../ChargesList'; import styled from 'styled-components'; import { FormattedMessage, injectIntl } from 'react-intl'; import messages from './messages...
__tests__/share/lookup-input.js
haasDev/starter
import React from 'react'; import LookupInput from '../../src/share/lookup-input'; import {mount} from 'enzyme'; import snapshot from '../snapshot'; describe('LookupInput', () => { it('should render', () => { snapshot(<LookupInput img="search" />); }); it('should call onChange fn when text is updated with e...
src/modules/ShortText.js
broucz/mvu-react-form
import React from 'react'; import FieldValidationMessage from '../components/FieldValidationMessage'; import {shortText as inputStyle} from '../style'; // -- Model const model = ''; // -- Update const UPDATE = 'UPDATE'; const VALIDATE = 'VALIDATE'; const update = ( {state = model} = {}, {type, value} = {...
files/highstock/2.1.6/highstock.src.js
towerz/jsdelivr
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highstock JS v2.1.6 (2015-06-12) * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearT...
src/nls/es/strings.js
ropik/brackets
/* * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the ri...
egghead.io/react_fundamentals/lessons/14-build-compiler/App.js
andrisazens/learning_react
// https://jsbin.com/qonaga/edit?js,output import React from 'react'; class App extends React.Component { constructor(){ super(); this.state = { input: '/* add your jsx here */', output: '', err: '' } this.update = this.update.bind(this); } update(e){ let code = e.target.va...
src/svg-icons/file/cloud-upload.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudUpload = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4....
src/shared/components/signUpLink/signUpLink.js
hollomancer/operationcode_frontend
import React from 'react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; const SignUpLink = ({ text }) => ( <Link to="/join">{text}</Link> ); SignUpLink.propTypes = { text: PropTypes.string }; SignUpLink.defaultProps = { text: 'Sign up' }; export default SignUpLink;
js/jquery-1.10.2.min.js
adamwong246/github-issue-prioritizer
/*! 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...
app/node_modules/react-router/es6/IndexRedirect.js
lycha/masters-thesis
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var object = _React$PropTypes.object; /** * An <IndexRedir...
src/svg-icons/action/announcement.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAnnouncement = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"/> </SvgIcon> ); ActionAnnouncement = pu...
src/redux/__mocks__/react-redux.js
yeojz/react-form-addons
import React from 'react'; import noop from 'lodash/noop'; export const connect = (mapStateToProps, mapDispatchToProps) => (Component) => (overrides = {}) => { const stateProps = mapStateToProps({}); const dispatchProps = typeof mapDispatchToProps === 'function' ? mapDispatchToProps(noop) : mapDispatchToP...
App/db/entities/Structure/Collection.js
CaipiLabs/caipi
/* * Copyright (c) 2018. Wise Wild Web * * This File is part of Caipi and under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License * Full license at https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode * * @author : Nathanael Braun * @contact : caipilabs@gmail.com...
ajax/libs/backbone-react-component/0.6.1/backbone-react-component.js
skidding/cdnjs
// Backbone React Component // ======================== // // Backbone.React.Component v0.6.1 // // (c) 2014 "Magalhas" José Magalhães <magalhas@gmail.com> // Backbone.React.Component can be freely distributed under the MIT license. // // // `Backbone.React.Component` is a React.Component wrapper that serve...
test/markup-frame-test.js
sirbrillig/markup-frame
import React from 'react'; import ReactDOM from 'react-dom'; import { expect } from 'chai'; import MarkupFrame from '../src'; function mount( component ) { const contentArea = window.document.querySelector( '#content' ); ReactDOM.render( component, contentArea ); } describe( '<MarkupFrame />', function() { it( 're...
examples/counter/containers/CounterApp.js
andrew-codes/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'redux/react'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; @connect(state => ({ counter: state.counter })) export default class CounterApp extend...
wp-content/plugins/myplugin/resource_popular/res/jquery-validation-1.13.1/lib/jquery-1.8.3.js
phanngoc/cosomassage
/*! * jQuery JavaScript Library v1.8.3 * 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: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time) */ (function(...
files/videojs/5.0.0-rc.31/video.js
wallin/jsdelivr
/** * @license * Video.js 5.0.0-rc.31 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License...
src/svg-icons/av/snooze.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSnooze = (props) => ( <SvgIcon {...props}> <path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9...
src/components/Feedback/Feedback.js
aalluri-navaratan/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedba...
ajax/libs/vega/3.0.9/vega-core.js
jonobr1/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-request'), require('d3-dsv'), require('d3-time-format'), require('d3-array'), require('d3-shape'), require('d3-path'), require('d3-scale'), require('d3-scale-chromatic'), require('d3-interpolate'),...
ajax/libs/forerunnerdb/1.3.373/fdb-core+views.min.js
iwdmb/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...
sample/__tests__/index.ios.js
rnzyn/react-native-credit-card-input
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
TodoWonder/index.ios.js
lintonye/react-native-diary
/** * @flow */ import { AppRegistry, } from 'react-native'; import TodoWonder from './js/TodoWonder' AppRegistry.registerComponent('TodoWonder', () => TodoWonder);
ajax/libs/react-data-grid/0.12.23/react-data-grid.js
pvnr0082t/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...
src/components/cv/rating.js
ateixeira/andreteixeira.info
import React from 'react'; import FontAwesome from 'react-fontawesome'; module.exports = React.createClass({ // RENDER render: function() { var rating_bullets = []; [0,1,2,3,4].forEach((i) => { var is_active = i < this.props.level; if (is_active) { ...
src/components/Main.js
lanyulin/react-gallery
require('normalize.css/normalize.css'); require('styles/App.less'); import React from 'react'; import ReactDOM from 'react-dom'; let imagesData = require('../data/imagesData.json'); // 获取图片的地址路径 imagesData = (function getImagesURL(imagesDataArr){ for(var i=0;i<imagesDataArr.length; i++){ let oneImage = imagesData...
packages/react-server-website/components/homepage-body.js
lidawang/react-server
import React from 'react'; // import {Component} from 'react'; import Markdown from './Markdown'; import GetStartedSection from './content/HomeGetStartedSection.md'; import WhySection from './content/HomeWhySection.md'; import ContributingSection from './content/HomeContributingSection.md'; import {Link} from "react-se...
day19_todolist_style/src/components/TodoList.js
eyesofkids/ironman2017
//@flow import React from 'react' import TodoItem from './TodoItem' // 預先定義props的結構 type Props = { initText: string, } type Item = { text: string, isCompleted: boolean, } class TodoList extends React.Component { // 預先定義state的結構 state: { items: Array<Item>, inputValue: string, } //建...
src/js/client.js
huangkerui/react-basics
import React from "react"; import ReactDOM from "react-dom"; class Layout extends React.Component<any> { render() { return ( <h1>Hello world!</h1> ); } } ReactDOM.render(<Layout />, document.getElementById('app'));
blueocean-material-icons/src/js/components/svg-icons/action/thumbs-up-down.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionThumbsUpDown = (props) => ( <SvgIcon {...props}> <path d="M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1.38-.91l2.26-5.29c.07-.17.11-.36....
ajax/libs/mobx/2.6.5/mobx.min.js
menuka94/cdnjs
/** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */ "use strict";function e(e,n,r,o){return 1===arguments.length&&"function"==typeof e?V(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof n?V(e,n):1===arguments.length&&"string"==typeof e?t(e):t(n).apply(null,arguments)}function t(e){return...
src/components/PreviousMeetupsList.js
teamstrobe/mancreact-client
import React from 'react'; import { Link } from 'react-router-dom'; import { groupBy } from 'lodash'; import moment from 'moment'; const PreviousMeetupsList = ({ events }) => { const eventsByYear = groupBy(events, event => moment(event.time).format('YYYY')); const sortedYears = Object.keys(eventsByYear).sort()...
common/views/Dashboard/Dashboard.js
sauleddy/HomePortal
import React, { Component } from 'react'; import { Bar, Line } from 'react-chartjs-2'; import { Dropdown, DropdownMenu, DropdownItem, Progress } from 'reactstrap'; const brandPrimary = '#20a8d8'; const brandSuccess = '#4dbd74'; const brandInfo = '#63c2de'; const brandDanger = '#f86c6b'; // Card Chart 1 const ...
Firebase/node_modules/firebase-admin/node_modules/firebase/firebase-react-native.js
CodePath-Parse/MiAR
/*! @license Firebase v3.9.0 Build: rev-cc77c9e Terms: https://firebase.google.com/terms/ */ 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var firebase = require('./app'); require('./auth'); var Storage, XMLHttpRequest; require('./database'); require('./storage'); var AsyncStorage...
packages/material-ui-icons/src/SignalWifi3BarTwoTone.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5 23.64 7z" /><path d="M3.53 10.95L12 21.5l8.47-10.55C20.04 10.62 16.81 8 12 8s-8.04 2.62-8.47 2.95z" /></R...
src/pages/Profile.js
michaelfriedman/capstone-g40
import React, { Component } from 'react'; import axios from 'axios'; import Moment from 'react-moment'; import { Image, Panel, Col, Well, Modal, Button, Glyphicon, Collapse } from 'react-bootstrap'; import GoogleMap from '../features/map/GoogleMap'; class Profile extends Component { constructor(props) { super(pr...
node_modules/react-tools/src/utils/Transaction.js
rblin081/drafting-client
/** * 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. * * @providesModule ...
src/components/common/BookDeleteModal.js
sergey-shulyak/simple-quote
import React from 'react'; const BookDeleteModal = ({ book, handleBookDelete }) => { return ( <div className="ui tiny modal book delete confirm"> <div className="header"> Delete {book.title} </div> <div className="content"> <div className="description"> Are you sure yo...
node_modules/react-icons/io/map.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoMap = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m34.5 10.7c0.3 0.2 0.5 0.6 0.5 1.1v22c0 0.4-0.2 0.8-0.5 1-0.2 0.1-0.4 0.2-0.6 0.2-0.2 0-0.5 0-0.6-0.2l-7.6-5.1-7.6 5.1c-0.4 0.3-0.8 0.3-1.1 0l-7.6-5.1-7.6 5.1c-0.4 0.3-0....
src/svg-icons/navigation/fullscreen-exit.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFullscreenExit = (props) => ( <SvgIcon {...props}> <path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/> </SvgIcon> ); NavigationFullscreenExit = pure(NavigationF...
app/extensions/More/index-nativegrid.js
typesettin/manuscript
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ //TO DO: https://github.com/clh161/react-native-easy-grid-view import React, { Component } from 'react'; import { StyleSheet, Text, View, ListView, Image, Platform } from 'react-native'; // import styles from '../../comp...
app/javascript/src/components/charts/heatMap.js
michelson/chaskiq
// make sure parent container have a defined height when using // responsive component, otherwise height will be 0 and // no chart will be rendered. // website examples showcase many properties, // you'll often use just a few of them. import React from 'react' // import { ResponsiveCalendar } from '@nivo/calendar' impo...
src/components/pages/Admin/Services/AdminServices.js
ESTEBANMURUZABAL/bananaStore
/** * Imports */ import React from 'react'; import connectToStores from 'fluxible-addons-react/connectToStores'; import {FormattedMessage} from 'react-intl'; import {Link} from 'react-router'; // Flux import ServicesAddStore from '../../../../stores/Services/ServicesAddStore'; import ServicesListStore from '../../.....
ajax/libs/material-ui/4.10.1/Slider/Slider.min.js
cdnjs/cdnjs
"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.styles=void 0;var _toConsumableArray2=_interopRequireDefault(req...
packages/material-ui-icons/src/ToggleOnRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5zm0 8c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z" /> , 'ToggleOnRounded');
src/app/index.js
isaacjoh/foreseehome-test
import React from 'react'; import {render} from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import Main from './Main'; // Our custom react component // Needed for onTouchTap // http://stackoverflow.com/a/34015469/988941 injectTapEventPlugin(); // Render the main app react component into th...
core/static/admin/src/redux/utils/createDevToolsWindow.js
tjcunliffe/hoverfly
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import DevTools from '../../containers/DevToolsWindow' export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window `...
effcalculator/frontend/assets/js/routes/detectors/components/DetectorAnimatedList.js
alvcarmona/efficiencycalculatorweb
import React, {Component} from 'react' import {ListGroup, ListGroupItem, Glyphicon} from 'react-bootstrap' export default class DetectorAnimatedlistComponent extends Component { // Stiles in **** Detector list **** section App.css constructor(props) { super(props) this.state = {multipleSele...
examples/websdk-samples/LayerReactNativeSample/index.ios.js
layerhq/layer-js-sampleapps
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, View, Modal, StatusBar } from 'react-native'; import { Client, Query } from 'layer-websdk/index-react-native.js'; import LayerHelper from './sr...
src/components/Messages/Success/index.js
auth0-extensions/auth0-extension-ui
import React, { Component } from 'react'; import Alert from '../Alert'; class Success extends Component { static defaultProps = { show: true } render() { return ( <Alert show={this.props.show} type="success" title="Well done!" message={this.props.message} on...
src/components/Header/Header.js
quasicrial/quasicrial
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import { defineMessages, Format...
flow-typed/npm/react-dnd_vx.x.x.js
captainsafia/nteract
// flow-typed signature: 69a85c64ae3cdb527094585e3a41c762 // flow-typed version: <<STUB>>/react-dnd_v^2.4.0/flow_v0.54.0 /** * This is an autogenerated libdef stub for: * * 'react-dnd' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the *...
test/browser/helpers.js
jeffvan576/react-data-grid
var mergeInto = require("../../src/mergeInto"); var Grid = require('../../src/Grid'); var React = require('react'); var data = []; for (var i = 0; i < 2000; i++) { data.push({ 'key': i, 'supplier':{'value':'Supplier ' + i, 'editing':true}, 'format': 'fmt ' + i, 'start':'start', 'end':'end', '...
react-progressive-hydration/babel.config.js
GoogleChromeLabs/progressive-rendering-frameworks-samples
module.exports = { presets: [ ['@babel/preset-env', { useBuiltIns: 'usage', corejs: 3, modules: false, loose: true }], '@babel/preset-react' ], plugins: [ '@babel/syntax-dynamic-import' ] };
ajax/libs/yui/3.10.2/datatable-body/datatable-body-debug.js
NMastracchio/cdnjs
YUI.add('datatable-body', function (Y, NAME) { /** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-body @since 3.5.0 **/ var Lang = Y.Lang, isArray = Lang.isA...
node_modules/react-icons/io/social-usd.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoSocialUsd = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m32.1 23.7c0.2 0.8 0.4 1.5 0.4 2.2 0 1.7-0.4 3-1.1 4.2s-1.6 2-2.7 2.7-2.5 1.3-3.9 1.7c-0.8 0.1-1.5 0.2-2.3 0.3v2.7h-5v-2.7c-0.7-0.1-1.5-0.3-2.2-0.5-1.6-0.4-2.8-0.9-...
src/svg-icons/device/signal-wifi-4-bar.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi4Bar = (props) => ( <SvgIcon {...props}> <path d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/> </SvgIcon> ); DeviceSignalWifi4Bar = pure(Devic...
src/client/menu.js
uptownhr/hacker-menu
import React from 'react' export default class Menu extends React.Component { handleOnClick (e) { e.preventDefault() this.props.onQuitClick() } render () { var statusText = 'v' + this.props.version var buttonText = 'Quit' if (this.props.status === 'update-available') { statusText += ' ...
src/svg-icons/action/lock-open.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLockOpen = (props) => ( <SvgIcon {...props}> <path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 ...
src/TimePicker/TimePickerDialog.js
pradel/material-ui
import React from 'react'; import EventListener from 'react-event-listener'; import keycode from 'keycode'; import Clock from './Clock'; import Dialog from '../Dialog'; import FlatButton from '../FlatButton'; class TimePickerDialog extends React.Component { static propTypes = { autoOk: React.PropTypes.bool, ...
jekyll-admin/src/containers/views/tests/pageedit.spec.js
mparlak/mparlak.github.io
import React from 'react'; import { shallow } from 'enzyme'; import { PageEdit } from '../PageEdit'; import Errors from '../../../components/Errors'; import Button from '../../../components/Button'; import { config, page } from './fixtures'; const defaultProps = { page: page, errors: [], fieldChanged: false, ...
server/sonar-web/src/main/js/apps/overview/components/events-list-filter.js
vamsirajendra/sonarqube
import React from 'react'; import Select from 'react-select'; const TYPES = ['All', 'Version', 'Alert', 'Profile', 'Other']; export const EventsListFilter = React.createClass({ propTypes: { onFilter: React.PropTypes.func.isRequired, currentFilter: React.PropTypes.string.isRequired }, handleChange(sel...