target
stringlengths
5
300
feat_repo_name
stringlengths
6
76
text
stringlengths
26
1.05M
src/route/home/section.js
vicvinc/yimanga
import React, { Component } from 'react'; export const withComicData = (WrappedComponent, { data, title }) => { return class extends Component { static defaultProps = { comicList: data, topicTitle: title || 'marvel comics', } render() { const { comicList, topicTitle } = this.props; ...
ajax/libs/yui/3.0.0/event-custom/event-custom.js
reustle/cdnjs
YUI.add('event-custom-base', function(Y) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module e...
test/DropdownButtonSpec.js
jamon/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import DropdownButton from '../src/DropdownButton'; import MenuItem from '../src/MenuItem'; import DropdownMenu from '../src/DropdownMenu'; import Button from '../src/Button'; describe('DropdownButton', function () { let instance; a...
src/components/search-page/SearchForm.js
CodeDraken/IdeaZone
// Using inline searchform instead // import React, { Component } from 'react'; // class SearchForm extends Component { // render() { // return ( // <div> // <header className="text-center clearfix"> // <h1>Find Project Ideas or Add an Idea<i className="fa fa-plus-circle float-right" dat...
src/components/common/FormGroup.js
redux-autoform/redux-autoform-material-ui
import React from 'react'; import PropTypes from 'prop-types'; export default class FormGroup extends React.Component { static propTypes = { //Node props children: PropTypes.node, //String props component: PropTypes.string, displayName: PropTypes.string, name: PropTypes.string, help: PropTypes.string, ...
docs/app/Examples/elements/Header/Types/HeaderPageHeadersExample.js
jcarbo/stardust
import React from 'react' import { Header } from 'stardust' const HeaderPageHeadersExamples = () => ( <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</Heade...
app/containers/HomePage/index.js
hukid/shootingstudio
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor it and remove * the ...
examples/react-router/app/views/lists/index.js
leobauza/microcosm
import React from 'react' import Presenter from 'microcosm/addons/presenter' import { set } from 'microcosm/' import ListForm from './parts/list-form' import ListList from './parts/list-list' class ListIndex extends Presenter { getModel() { return { lists: this.getListsWithCounts } } getListsWithC...
packages/material-ui-icons/src/TimerOffTwoTone.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="M12 6c-1.12 0-2.18.27-3.12.74L11 8.86V8h2v2.86l5.26 5.26c.47-.94.74-2 .74-3.12 0-3.87-3.13-7-7-7zM12 20c1.29 0 2.49-.35 3.52-.96L5.96 9.48C5....
client/src/components/AppContainer.js
no-stack-dub-sack/alumni-network
import Account from './dashboard/Account'; import { CatchAll } from '../App'; import Community from './dashboard/Community'; import { connect } from 'react-redux'; import GitterEmbed from './dashboard/GitterEmbed'; import Landing from './dashboard/Landing'; import Mentorship from './dashboard/Mentorship'; import { popu...
client/js/jquery-1.12.3.min.js
xeecos/RubikCubeSolver
/*! jQuery v1.12.3 | (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...
modules/RouteUtils.js
trotzig/react-router
import React from 'react' import warning from 'warning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componentName, p...
web/react360/src/components/locs/Hero/HeroIcon.js
JamesMillercus/Portfolio-Website
/*eslint max-len: ["error", { "code": 800 }]*/ import React from 'react'; import { View, asset, VrButton, NativeModules, StyleSheet } from 'react-360'; import { ImageBackground } from 'react-native'; import { connect } from 'react-redux'; import LoadingBar from './../LoadingBar/LoadingBar'; import { fetchHer...
node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/babel-types/node_modules/babel-runtime/helpers/jsx.js
template01/editthispost
"use strict"; exports.__esModule = true; var _for = require("../core-js/symbol/for"); var _for2 = _interopRequireDefault(_for); var _symbol = require("../core-js/symbol"); var _symbol2 = _interopRequireDefault(_symbol); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; ...
src/components/theme-legacy/form/target-select/custom.js
MoveOnOrg/mop-frontend
import React from 'react' import PropTypes from 'prop-types' const CustomTargetSelect = ({ selected, remove, onSelect, customInputs, onChangeInputs }) => ( <div> <div id='selected_targets_div' className='selected_targets' /> <div id='more_custom_group'> {selected.map(target => ( <div ...
src/presentation/components/layout.component.js
vilellaj/tweet-sense
'use strict'; import React from 'react'; import { Link } from 'react-router'; import HeaderComponent from './header.component'; import BackGroundComponent from './background.component'; export default class LayoutComponent extends React.Component { constructor(props) { super(props); } render()...
src/Parser/Hunter/BeastMastery/Modules/Talents/AMurderOfCrows.js
enragednuke/WoWAnalyzer
import React from 'react'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellUsable from 'Parser/Core/Modules/SpellUsable'; import SPECS from 'common/SPECS'; import StatisticBox from 'Main/StatisticBox'; import SpellIco...
bower_components/jquery.ui/tests/jquery-1.8.1.js
slickplaid/baby-pool
/*! * jQuery JavaScript Library v1.8.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Thu Aug 30 2012 17:17:22 GMT-0400 (Eastern Daylight Time) */ (function(...
lib/components/CurrentWeatherCard.js
thatPamIAm/weathrly
import React, { Component } from 'react'; import Greeting from './Greeting'; import icons from '../weather_icons/WeatherIcons'; const CurrentWeatherCard = ({ currentForecast, forecast }) => { if (!currentForecast) { return ( <Greeting/> ); } const forecastWeather = forecast.txt_forecast.forecastd...
test/OverlayDeprecationSpec.js
albertojacini/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Position from '../src/Position'; import Transition from '../src/Transition'; import Portal from '../src/Portal'; import { shouldWarn } from './helpers'; describe('Components moved to react-overlays', () => { it('should warn ab...
gatsby-config.js
lol-russo/designsystems.email
module.exports = { siteMetadata: { title: `Design Systems Digest` }, plugins: [ `gatsby-plugin-react-helmet`, { resolve: `gatsby-plugin-google-analytics`, options: { trackingId: "UA-77015609-3" } } ] };
js/main.js
n8e/memoirs
import 'babel-polyfill'; import React from 'react'; import Relay from 'react-relay'; import { render } from 'react-dom'; import { applyRouterMiddleware, Route, hashHistory, IndexRedirect, Router } from 'react-router'; import useRelay from 'react-router-relay'; import global from 'global'; import App from './views/cont...
_theme/template/Articles.js
ElemeFE/react-amap
import React from 'react'; import Layout from './Layout'; import SideMenu from './Menu/SideMenu'; import PureArticle from './Content/PureArticle'; export default function Article(props) { const pageData = props.pageData; return <Layout route={props.route}> <div id="doc"> <aside id="aside"> <SideM...
src/components/common/svg-icons/image/blur-on.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurOn = (props) => ( <SvgIcon {...props}> <path d="M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-...
static/src/components/ProtectedView.js
idahu29/payment-redis
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as actionCreators from '../actions/data'; function mapStateToProps(state) { return { data: state.data, token: state.auth.token, loaded: state.data.loaded, isFetchin...
test/PanelGroupSpec.js
brynjagr/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PanelGroup from '../src/PanelGroup'; import Panel from '../src/Panel'; describe('PanelGroup', function () { it('Should pass bsStyle to Panels', function () { let instance = ReactTestUtils.renderIntoDocument( <PanelGrou...
app/javascript/mastodon/components/attachment_list.js
glitch-soc/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon';...
packages/material-ui-icons/src/BallotSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M13 9.5h5v-2h-5v2zm0 7h5v-2h-5v2zm8 4.5H3V3h18v18zM6 11h5V6H6v5zm1-4h3v3H7V7zM6 18h5v-5H6v5zm1-4h3v3H7v-3z" /></React.Fragment> , 'BallotSharp')...
frontend/src/modules/otherlocales/components/OtherLocales.js
jotes/pontoon
/* @flow */ import React from 'react'; import { Localized } from '@fluent/react'; import './OtherLocales.css'; import Translation from './Translation'; import type { Entity, OtherLocaleTranslation } from 'core/api'; import type { NavigationParams } from 'core/navigation'; import type { UserState } from 'core/user';...
pages/demos/avatars.js
Kagami/material-ui
import 'docs/src/modules/components/bootstrap'; // --- Post bootstrap ----- import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; const req = require.context('docs/src/pages/demos/avatars', false, /\.md|\.js$/); const reqSource = require.context('!raw-loader!../../docs/src/pag...
FourtyTwo.Client/src/components/history-list-item.js
valorl/FourtyTwo
import {ListItem} from 'material-ui/lib/lists'; import FontIcon from 'material-ui/lib/font-icon'; import { grey700 } from 'material-ui/lib/styles/colors'; import React from 'react'; import moment from 'moment'; class HistoryListItem extends React.Component { componentWillMount() { console.log(this.props); t...
src/physics/p2/Body.js
CB-Webspace/Phaser
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2014 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * The Physics Body is typically linked to a single Sprite and defines properties that determine how the physics body i...
assets/assets/advanced-datatable/extras/Scroller/media/docs/media/js/jquery.js
ashshofar/ydb
/*! * 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. ...
misc/webgui/src/pages/Settings.js
ChainsAutomation/chains
import React from 'react' import PageHeader from '../components/Pageheader'; export default class Settings extends React.Component { render() { return ( <div className="ui main container"> <PageHeader name="Settings" desc="Configure chains settings here"/> </div> ); } }
src/components/common/svg-icons/action/language.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLanguage = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 ...
src/index.js
TonCoder/react-music-player
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/app'; ReactDOM.render( <App /> , document.querySelector('.container'));
app/scripts/Mobilization/createRoutes.js
igr-santos/bonde-client
import React from 'react' import { Route } from 'react-router' import { SidebarContainer } from '../Dashboard/containers' import { MobilizationContainer, NewMobilizationContainer, MobilizationDashboardContainer, MobilizationSettingsContainer } from './containers' import { MobilizationListPage, Mobilizatio...
src/containers/AppContainer.js
danhipke/my-lacroix-rankings
import React, { Component, PropTypes } from 'react' import { browserHistory, Router } from 'react-router' import { Provider } from 'react-redux' class AppContainer extends Component { static propTypes = { routes : PropTypes.object.isRequired, store : PropTypes.object.isRequired } shouldComponentUpdate ...
examples/huge-apps/routes/Calendar/components/Calendar.js
davertron/react-router
import React from 'react'; class Calendar extends React.Component { render () { var events = [{ id: 0, title: 'essay due' }]; return ( <div> <h2>Calendar</h2> <ul> {events.map(event => ( <li key={event.id}>{event.title}</li> ))} </ul> ...
docs/src/utils/PageLayout.js
gocreating/redux-draft
import React from 'react'; import { Helmet } from 'react-helmet'; import { NavLink } from 'react-router-dom'; import GithubButton from './GithubButton'; let PageLayout = ({ children }) => ( <div className="rd wrapper"> <Helmet> <script async defer src="https://buttons.github.io/buttons.js"></script> </...
ajax/libs/react-modal/1.7.7/react-modal.js
froala/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/forerunnerdb/1.3.432/fdb-core.min.js
brix/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...
www/static/src/admin/index.js
helinjiang/xman-admin
import React from 'react'; import ReactDOM from 'react-dom'; import 'babel-polyfill'; import {Router, Route, IndexRedirect, useRouterHistory} from 'react-router'; import {createHistory} from 'history'; import App from './component/App'; import Dashboard from './component/page-dashboard'; import Index from './componen...
app/components/Template/Header.js
sysrex/sysrex
import React from 'react'; import { Link } from 'react-router-dom'; import Hamburger from './Hamburger'; import routes from '../../data/routes'; const Header = () => ( <header id="header"> <h1 className="index-link"> {routes.filter(l => l.index).map(l => ( <Link key={l.label} to={l.path}>{l.label}...
web/src/configuration/sources/imageSourceTypes.js
bolddp/pixerva
import React from 'react'; import FolderSource from './FolderSource'; export default [ { type: 'folder', newSourceText: 'Folder on image server', configHeaderText: 'Folder on image server', createNew: () => { return { type: 'folder', name: '', config: { path: '...
imports/ui/components/effective-date.js
gagpmr/app-met
import React from 'react'; import ReactDOM from 'react-dom'; import { Loading } from './loading.js'; import { updateEffectiveDate } from '/imports/api/dates/methods.js'; import { browserHistory } from 'react-router'; var DatePicker = require('react-datepicker'); var moment = require('moment'); require('/imports/ui/lay...
src/PageItem.js
omerts/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import SafeAnchor from './SafeAnchor'; const PageItem = React.createClass({ propTypes: { href: React.PropTypes.string, target: React.PropTypes.string, title: React.PropTypes.string, disabled: React.PropTypes.bool, previous: React.Pr...
src/__tests__/fields/TextareaField.js
crudlio/crudl
/* globals jest, require, test, expect, describe, it, beforeEach */ import React from 'react' import { render, shallow } from 'enzyme' import field from '../../admin-schema/field' import { TextareaField } from '../../fields/TextareaField' const desc = { after: '', before: '', field: 'field', id: 'id',...
src/app/components/section.js
matthewsimo/kawaii-faces
import React, { Component, PropTypes } from 'react'; import CopyText from './copy-text'; const Section = (props) => { const { title, data, onCopy } = props; return ( <section> <h3>{title}</h3> <ul className={`section-list ${title.toLowerCase()}-section`}> { data.map( (item, i) =...
ajax/libs/react-data-grid/2.0.40/react-data-grid.js
sashberd/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...
files/core-js/0.9.1/core.js
hubdotcom/jsdelivr
/** * Core.js 0.9.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(undefined){ 'use strict'; var __e = null, __g = null; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******...
ajax/libs/phaser/2.0.6/custom/p2.js
fatso83/cdnjs
/** * The MIT License (MIT) * * Copyright (c) 2013 p2.js authors * * 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 rights * to ...
src/DropdownMenu.js
bbc/react-bootstrap
import React from 'react'; import keycode from 'keycode'; import classNames from 'classnames'; import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper'; import ValidComponentChildren from './utils/ValidComponentChildren'; import createChainedFunction from './utils/createChainedFunction'; class DropdownMenu e...
examples/huge-apps/components/Dashboard.js
brandonlilly/react-router
import React from 'react'; import { Link } from 'react-router'; class Dashboard extends React.Component { render () { let { courses } = this.props; return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of ...
node_modules/react-icons/fa/arrow-circle-o-right.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaArrowCircleORight = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m28.7 20q0 0.3-0.2 0.5l-7.1 7.2q-0.2 0.2-0.5 0.2-0.3 0-0.5-0.3t-0.3-0.5v-4.2h-7.8q-0.3 0-0.5-0.3t-0.2-0.5v-4.2q0-0.3 0.2-0.5t0.5-0.3h7.8v-4.2q0-0.4 0.2-0.6t...
ajax/libs/core-js/1.2.1/library.js
jonobr1/cdnjs
/** * core-js 1.2.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require f...
ajax/libs/primereact/6.6.0/menu/menu.esm.js
cdnjs/cdnjs
import React, { Component } from 'react'; import { OverlayService, DomHandler, ZIndexUtils, ConnectedOverlayScrollHandler, classNames, ObjectUtils, CSSTransition, Portal } from 'primereact/core'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cann...
src/Components/Comment/CommentList.js
Shereminskiy/reactPJ
import React, { Component } from 'react'; import Comment from './Comment' export default class CommentList extends Component { constructor(props) { super(props); } render() { var commentNodes = this.props.data.map(function (comment) { return ( <Comment author={co...
webpack/test-utils/react-testing-lib-wrapper.js
johnpmitsch/katello
// For react-testing-library helpers, overrides, and utilities // All elements from react-testing-library can be imported from this wrapper. // See https://testing-library.com/docs/react-testing-library/setup for more info import React from 'react'; import thunk from 'redux-thunk'; import Immutable from 'seamless-immut...
lib/PasswordStrength/PasswordStrength.js
folio-org/stripes-components
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import camelCase from 'lodash/camelCase'; import noop from 'lodash/noop'; import { FormattedMessage } from 'react-intl'; import TextField from '../TextField'; import InfoPopover from '../InfoPopover'; i...
node_modules/react-bootstrap/es/CarouselItem.js
NickingMeSpace/questionnaire
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 ...
dist/1.11.1/jquery-ajax-css-dimensions-event-alias-offset.js
michael829/jquery-builder
/*! * jQuery JavaScript Library v1.11.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-css,-css/addGetHookIf,-css/curCSS,-css/defaultDisplay,-css/hiddenVisibleSelectors,-css/support,-css/swap,-css/var/cssExpand,-css/var/isHidd...
test/common/components/App-test.js
ChrisWphoto/react-ccms
import test from 'ava'; import React from 'react'; import { shallow } from 'enzyme'; import App from '../../../src/common/components/App'; test('render with container div', t => { const wrapper = shallow(React.createElement(App)); t.is(wrapper.find('#container').length, 1); });
mod09/demo/src/App.js
mauricedb/mwd-2017-02-20
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class Hello extends React.Component { render() { return <h1>Hello world</h1>; } } class App extends Component { render() { return ( <div className="App"> <div className="App-header"> ...
es/components/viewer2d/area.js
cvdlab/react-planner
import React from 'react'; import PropTypes from 'prop-types'; import polylabel from 'polylabel'; import areapolygon from 'area-polygon'; var STYLE_TEXT = { textAnchor: 'middle', fontSize: '12px', fontFamily: '"Courier New", Courier, monospace', pointerEvents: 'none', fontWeight: 'bold', //http://stackove...
src/clincoded/static/libs/render_publish_status.js
ClinGen/clincoded
'use strict'; import React from 'react'; import moment from 'moment'; import { sortListByDate } from './helpers/sort'; /** * Method to render the publication status of a given GDM's classification * @param {array} snapshots - List of snapshots associated with classification * @param {boolean} stringOnly - Whether r...
app/Components/Atoms/Text/TextInfo.js
martinvarelaaaa/tintina
import React from 'react'; import PropTypes from 'prop-types'; import { Text } from 'react-native'; import styles from './styles'; import theme from '../../../theme'; const { color } = theme; const TextInfo = ({ value, col, alignCenter }) => (alignCenter ? <Text style={[styles.infoCenter, { color: col }]}>{val...
src/page/NotFoundPage.js
dovydasvenckus/time-tracker-web
import React from 'react'; import { useLocation } from 'react-router-dom'; const NotFoundPage = () => { const location = useLocation(); return ( <div> <h1 className="title"> Page <code>{location.pathname}</code> not found </h1> </div> ); }; export default NotFoundPage;
Native/Learn_mapKit/index.ios.js
renxlWin/React-Native_Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import MapView from './mapView.js' var Dimensions = require('Dimensions'); //必须要写这一行,否则报错,无法找到这个变量 var ScreenWi...
examples/huge-apps/routes/Course/components/Course.js
AnSavvides/react-router
import React from 'react'; import Dashboard from './Dashboard'; import Nav from './Nav'; var styles = {}; styles.sidebar = { float: 'left', width: 200, padding: 20, borderRight: '1px solid #aaa', marginRight: 20 }; class Course extends React.Component { render () { let { children, params } = this.pro...
front/components/map/map-container.js
bigkangtheory/wanderly
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; //import components below: import WanderMap from '../map/map'; //import action(s) related to container from the action folder: import { addMarkers } from '../../actions/map-actions'; const mapStateToProps = ...
examples/counter/containers/CounterApp.js
konce/redux-devtools
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; class CounterApp extends Component { render() { const { counter, dispatch } = this...
src/universalRouter.js
clintonhalpin/react-redux-universal-hot-example
import React from 'react'; import Router from 'react-router'; import createRoutes from './views/createRoutes'; import { Provider } from 'react-redux'; const getFetchData = (component={}) => { return component.DecoratedComponent ? getFetchData(component.DecoratedComponent) : component.fetchData; }; export fu...
demo/src/models/users/Filters.js
shrimpliu/shradmin
import React from 'react'; import { Input } from 'antd'; import { Filters, FormField } from '../../../../src'; export default (props) => ( <Filters {...props}> <FormField source="name" input={<Input/>}/> </Filters> );
packages/apps/admin/src/routes/entities/components/EntityRoute/EntityRoute.js
tocco/tocco-client
import PropTypes from 'prop-types' import {Redirect, Route, Switch} from 'react-router-dom' import Action from '../../subroutes/action' import Create from '../../subroutes/create' import List from '../../subroutes/list' import Record from '../../subroutes/record' const EntityRoute = ({match}) => ( <Switch> <Rou...
tests/layout.js
goto-bus-stop/bulmare
import React from 'react' import test from 'tape' import { shallow, render } from 'enzyme' import { Container, Header, Hero, Section, Footer } from '../src' test('Containers should have class "container"', (t) => { t.ok(shallow(<Container />).hasClass('container')) t.end() }) test('Containers should render their ...
app/containers/NotFoundPage/index.js
luandro/luandro.me
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor i...
ajax/libs/react-native-web/0.11.2/exports/TouchableOpacity/index.js
cdnjs/cdnjs
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } f...
app/javascript/mastodon/components/animated_number.js
koba-lab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedNumber } from 'react-intl'; import TransitionMotion from 'react-motion/lib/TransitionMotion'; import spring from 'react-motion/lib/spring'; import { reduceMotion } from 'mastodon/initial_state'; const obfuscatedCount = count => { if (co...
tests/baselines/reference/reactDefaultPropsInferenceSuccess.js
SaschaNaz/TypeScript
//// [reactDefaultPropsInferenceSuccess.tsx] /// <reference path="/.lib/react16.d.ts" /> import React from 'react'; interface BaseProps { when?: ((value: string) => boolean) | "a" | "b"; error?: boolean; } interface Props extends BaseProps { } class FieldFeedback<P extends Props = BaseProps> extends React.Comp...
fields/types/geopoint/GeoPointColumn.js
vokal/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var GeoPointColumn = React.createClass({ displayName: 'GeoPointColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue...
ajax/libs/6to5/2.10.1/browser.js
mathiasrw/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return...
examples/backbone/node_modules/backbone/backbone.js
griffiti/todomvc
// Backbone.js 1.2.2 // (c) 2010-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(factory) { // Establish the root object, `window` (`se...
app/components/CloseButton.js
Byte-Code/lm-digital-store-private-test
import React from 'react'; import PropTypes from 'prop-types'; import BlockIcon from 'material-ui/svg-icons/navigation/close'; const style = (fill, top, right, backgroundColor) => ({ fill, backgroundColor, top, right, width: 80, height: 80, position: 'absolute', cursor: 'pointer' }); const CloseButto...
app/views/Player/LifeBar.js
thomasboyt/bipp
import React from 'react'; import RenderedCanvas from '../lib/RenderedCanvas'; const LifeBar = React.createClass({ propTypes: { width: React.PropTypes.number.isRequired, height: React.PropTypes.number.isRequired, hp: React.PropTypes.number.isRequired, }, renderCanvas(ctx) { const percentFilled...
node_modules/react-bootstrap/es/Radio.js
Chen-Hailin/iTCM.github.io
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 ...
examples/js/manipulation/default-search-table.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; const fruits = [ 'banana', 'apple', 'orange', 'tomato', 'strawberries' ];...
packages/material-ui-icons/src/SkipNextTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M8 9.86v4.28L11.03 12z" opacity=".3" /><path d="M14.5 12L6 6v12l8.5-6zM8 9.86L11.03 12 8 14.14V9.86zM16 6h2v12h-2z" /></React.Fragment> , 'SkipN...
src/components/applayout/ContentSection.js
kryptnostic/gallery
import React from 'react'; import styled from 'styled-components'; import StyledFlexContainerStacked from '../flex/StyledFlexContainerStacked'; import StyledFlexContainerStackedCentered from '../flex/StyledFlexContainerStackedCentered'; const OuterSectionContainer = styled(StyledFlexContainerStackedCentered)` back...
bower_components/polymer/polymer.js
dmikalova/strava-api
/** * @license * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be f...
app/dashboard/views/scripts/jquery.js
davidmerfield/Blot-core
/*! 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...
doc/api/lib/jquery.js
fmlab-iis/LibRef
/*! jQuery v1.8.2 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d===...
stories/Icons/AllIcons.js
skyiea/wix-style-react
import React from 'react'; import * as Icons from 'wix-style-react/Icons'; import s from './style.scss'; const renderIcon = name => { console.log(name); return ( <div className={s.singleIconView} key={name}> <span>{React.createElement(Icons[name])}</span> <span className={s.iconName}>{name}</span> ...
generators/app/templates/src/main.js
ZCY-frontend/generator-zcyrrrw
import 'utils/polyfill' import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' //调试环境加入 import Perf from 'react-addons-perf' window.Perf = Perf // ======================================================== // Store...
ajax/libs/react-ace/2.8.0/react-ace.min.js
ahocevar/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ReactAce=t():e.ReactAce=t()}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return ...
packages/material-ui-icons/src/ExpandLessOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z" /> , 'ExpandLessOutlined');
ajax/libs/video.js/5.0.0-rc.58/video.novtt.js
LeaYeh/cdnjs
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.videojs = f()}...
publisher/config/defaults/gadgets/stacked-bar-chart/js/jquery.js
cnapagoda/wso2Store
/*! * 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) *...
addons/storyshots/storyshots-core/stories/required_with_context/Async.stories.js
kadirahq/react-storybook
import React from 'react'; export const EXPECTED_VALUE = 'THIS IS SO DONE'; export const TIMEOUT = 5; class AsyncTestComponent extends React.Component { constructor(props) { super(props); this.state = { value: '', }; } componentDidMount() { setTimeout(() => { this.setState({ ...
inlineStyles/src/components/Example/Example.js
3mundi/React-Bible
import React from 'react'; import styles from './styles'; class Example extends React.Component { render() { return ( <p style={styles.announcement}>{this.props.content}</p> ); } } Example.propTypes = { content: React.PropTypes.string.isRequired }; export default Example;