target
stringlengths
5
300
feat_repo_name
stringlengths
6
76
text
stringlengths
26
1.05M
src/svg-icons/maps/add-location.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsAddLocation = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z"/> </SvgIcon> ); MapsAddLocation = pure(Map...
src/svg-icons/action/camera-enhance.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCameraEnhance = (props) => ( <SvgIcon {...props}> <path d="M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.2...
templates/rubix/demo/src/routes/BarColSeries.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import { Row, Col, Panel, PanelBody, PanelContainer, } from '@sketchpixy/rubix'; class Chart extends React.Component { render() { return ( <PanelContainer> <Panel> <PanelBody style={{padding: 25}}> <div id={this.props.id}></div> ...
ajax/libs/jquery/1.7.1/jquery.min.js
miketheman/cdnjs
/*! jQuery v1.7.1 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde...
examples/src/components/MultiSelectField.js
daviferreira/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 MultiSelectField = React.createClass({ displayName: 'MultiSelectField', propTypes: { label: React.PropTypes.string, ...
components/__tests__/StyledText-test.js
flyerq/movie-list
import 'react-native'; import React from 'react'; import { MonoText } from '../StyledText'; import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create(<MonoText>Snapshot test!</MonoText>).toJSON(); expect(tree).toMatchSnapshot(); });
ajax/libs/forerunnerdb/1.3.49/fdb-legacy.min.js
CyrusSUEN/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
src/components/OrderForm.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import { pick, get } from 'lodash'; import { withApollo } from 'react-apollo'; import { Button, Col, Form, FormGroup, Row } from 'react-bootstrap'; import colors from '../constants/colors'; import TierComponent from './Tier'; import InputField from './Inp...
fields/types/geopoint/GeoPointColumn.js
helloworld3q3q/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...
project/Forms/js/jquery-1.5.2.min.js
tatikh/webdev
/*! * jQuery JavaScript Library v1.5.2 * 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. ...
docs/src/app/components/pages/components/Badge/ExampleSimple.js
rhaedes/material-ui
import React from 'react'; import Badge from 'material-ui/Badge'; import IconButton from 'material-ui/IconButton'; import NotificationsIcon from 'material-ui/svg-icons/social/notifications'; const BadgeExampleSimple = () => ( <div> <Badge badgeContent={4} primary={true} > <NotificationsIcon...
src/components/PetitionImage/index.js
iris-dni/iris-frontend
import React from 'react'; import styles from './petition-image.scss'; import ImageContainer from 'components/ImageContainer'; import mapImageSizeToNewAttrs from 'helpers/mapImageSizeToNewAttrs'; const PetitionImage = ({ src, alt, attrs, ratio }) => ( src ? <div className={styles.root}> <ImageContainer s...
ajax/libs/formsy-react/0.7.1/formsy-react.min.js
Piicksarn/cdnjs
!function t(i,e,n){function s(o,u){if(!e[o]){if(!i[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(r)return r(o,!0);var h=new Error("Cannot find module '"+o+"'");throw h.code="MODULE_NOT_FOUND",h}var p=e[o]={exports:{}};i[o][0].call(p.exports,function(t){var e=i[o][1][t];return s(e?e:t)},p,p.ex...
src/packages/@ncigdc/components/analysis/SetOperations/OpsTable.js
NCI-GDC/portal-ui
import React from 'react'; import { connect } from 'react-redux'; import { compose } from 'recompose'; import urlJoin from 'url-join'; import { AUTH_API, MAX_SET_SIZE } from '@ncigdc/utils/constants'; import Table, { Tr, Td, TdNum, ThNum, } from '@ncigdc/uikit/Table'; import { stringifyJSONParam } from '@ncigdc/util...
packages/material-ui-icons/src/FilterHdr.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let FilterHdr = props => <SvgIcon {...props}> <path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z" /> </SvgIcon>; FilterHdr = pure(FilterHdr); FilterHdr.muiName = 'SvgIcon'; export ...
src/index.js
oguennec/react-native-redux-todos
import React, { Component } from 'react'; import { createStore, applyMiddleware } from 'redux'; import { connect, Provider } from 'react-redux'; import { createLogger } from 'redux-logger'; import thunk from 'redux-thunk'; import App from './components/App'; import reducer from './reducers'; import { getTodos } from '....
ajax/libs/parsley.js/2.4.2/parsley.js
joeyparrish/cdnjs
/*! * Parsley.js * Version 2.4.2 - built Wed, Jun 15th 2016, 9:15 am * http://parsleyjs.org * Guillaume Potier - <guillaume@wisembly.com> * Marc-Andre Lafortune - <petroselinum@marc-andre.ca> * MIT Licensed */ // The source code below is generated by babel as // Parsley is written in ECMAScript 6 // var _slice = Array...
public/js/components/App.js
richardison/audition-project
import React from 'react'; import MessageList from './MessageList.js'; import MessageForm from './MessageForm.js'; import Instructions from './Instructions.js'; import { Col } from 'react-bootstrap'; export default class App extends React.Component { constructor(props) { super(props); this.state =...
www/src/pages/404.js
niklasvh/html2canvas
import React from 'react'; import Layout from '../components/layout'; const NotFoundPage = () => <Layout> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout>; export default NotFoundPage;
vgdb-frontend/src/components/loader/Loader.js
mattruston/idb
import React, { Component } from 'react'; import './Loader.css'; class Loader extends Component { render() { return ( <div className="loading-container"> <div className="sk-folding-cube"> <div className="sk-cube1 sk-cube"></div> <...
ajax/libs/flocks.js/0.15.2/flocks.js
panshuiqing/cdnjs
/** @jsx React.DOM */ /* jshint node: true, browser: true, newcap: false */ /** * The Flocks library module. * * @module Flocks * @main Flocks * @class Flocks */ // if it's in a <script> it's defined already // otherwise assume commonjs if (typeof React === 'undefined') { var Reac...
fields/types/email/EmailField.js
matthieugayon/keystone
import Field from '../Field'; import React from 'react'; import { FormInput } from 'elemental'; /* TODO: - gravatar - validate email address */ module.exports = Field.create({ displayName: 'EmailField', renderField () { return ( <FormInput name={this.props.path} ref="focusTarget" value={this.pr...
src/svg-icons/device/signal-wifi-0-bar.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi0Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" 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> ); DeviceSignalWifi...
client/src/js/components/Display/Display.js
Siddharth11/iTunes-Remote
// essentials import React from 'react' import DisplayTrack from './DisplayTrack' import DisplayProgress from './DisplayProgress' import TogglePlaylist from './TogglePlaylist' import ToggleTracklist from './ToggleTracklist' import Visual from './Visual' const Display = () => ( <div className="display" > <...
packages/cf-component-card/test/CardToolbarLink.js
koddsson/cf-ui
import React from 'react'; import renderer from 'react-test-renderer'; import CardToolbarLink from '../src/CardToolbarLink'; test('should render', () => { const component = renderer.create( <CardToolbarLink id="link" isActive={false} onClick={() => {}}> CardToolbarLink </CardToolbarLink> ); expect(...
packages/material-ui-icons/src/Wallpaper.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Wallpaper = props => <SvgIcon {...props}> <path d="M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h...
node_modules/react-router/es6/Router.js
937aaron/reduxblog
var _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; }; function _objectWithoutProperties(obj, keys) { var target = {...
packages/material-ui-icons/src/LensSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" /> , 'LensSharp');
warmup/bower_components/react/react-with-addons.min.js
paf31/lambdaconf-2015
/** * React (with addons) v0.12.2 * * Copyright 2013-2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same...
ajax/libs/oojs-ui/0.19.2/oojs-ui.js
froala/cdnjs
/*! * OOjs UI v0.19.2 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * * Date: 2017-02-14T22:47:20Z */ ( function ( OO ) { 'use strict'; /** * Namespace for all classes, static methods and s...
project-structure/src/banner/bannerContainer.js
shariati/learn-react
import React, { Component } from 'react'; import BannerComponent from './bannerComponent'; import APIServices from '../service/apiService' export default class BannerContainer extends Component { constructor() { super() this.state = { movies : [] } } componentWillM...
__tests__/js/scenes/Profile.js
arcturus/journey
import 'react-native'; import React from 'react'; import { Profile } from '../../../js/scenes/Profile'; import renderer from 'react-test-renderer'; jest.mock('../../../js/components/Header', () => 'Header'); it('renders correctly', () => { const tree = renderer.create( <Profile/> ); });
src/routes/home/Home.js
chaudhryjunaid/chaudhryjunaid.com
/** * React Starter Kit (https://www.reactstarterkit.com/) * * 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 PropTypes from 'prop-...
public/javascripts/react-addons-css-transition-group.js
dgynn/canvas-lms
define(['react'], function(React) { return React.ReactCSSTransitionGroup; });
packages/material-ui-icons/src/RecentActors.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let RecentActors = props => <SvgIcon {...props}> <path d="M21 5v14h2V5h-2zm-4 14h2V5h-2v14zM14 5H2c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM8 7.75c1.24 0 2.25 1.01 2.25 2.25S9....
ajax/libs/yui/3.8.0pr1/event-focus/event-focus.js
xymostech/cdnjs
YUI.add('event-focus', function (Y, NAME) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Event = Y.Event, YLang = Y.Lang, isString = YLang.isString, arrayIndex = Y.Array.indexOf, useActivate = (function() { ...
docs/src/app/components/pages/components/IconButton/ExampleSimple.js
pomerantsev/material-ui
import React from 'react'; import IconButton from 'material-ui/IconButton'; const IconButtonExampleSimple = () => ( <div> <IconButton iconClassName="muidocs-icon-custom-github" /> <IconButton iconClassName="muidocs-icon-custom-github" disabled={true} /> </div> ); export default IconButtonExampleSimple;
src/svg-icons/device/sd-storage.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSdStorage = (props) => ( <SvgIcon {...props}> <path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/> </SvgIcon> ); DeviceSdStorage ...
src/createMatchMediaConnect.js
malte-wessel/react-matchmedia-connect
import React, { Component } from 'react'; import shallowEqual from 'shallowequal'; import throttle from './utils/throttle'; import pick from './utils/pick'; function pickState(pickProperties, stateToPickFrom) { if (!pickProperties.length) return stateToPickFrom; return pick(stateToPickFrom, ...pickProperties);...
dispatch/static/manager/src/js/components/inputs/ConfirmButton.js
ubyssey/dispatch
import React from 'react' import { Button, Alert, Intent } from '@blueprintjs/core' export default class ConfirmButton extends React.Component { constructor(props) { super(props) this.state = { alertOpen: false } } onConfirm() { this.setState({alertOpen: false}, () => { this.props....
src/Badge.js
chrishoage/react-bootstrap
import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; import classNames from 'classnames'; const Badge = React.createClass({ propTypes: { pullRight: React.PropTypes.bool }, getDefaultProps() { return { pullRight: false }; }, hasContent() { re...
ajax/libs/video.js/5.4.2/alt/video.novtt.js
dakshshah96/cdnjs
/** * @license * Video.js 5.4.2 <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> */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}e...
src/React/Widgets/AnnotationEditorWidget/ManyScore/index.js
Kitware/paraviewweb
import React from 'react'; import PropTypes from 'prop-types'; import style from 'PVWStyle/ReactWidgets/AnnotationEditorWidget.mcss'; import CollapsibleWidget from '../../CollapsibleWidget'; import ScoreSelector from '../ScoreSelector'; import BGSelector from '../BackgroundScore'; import SelectionEditorWidget from '...
packages/core/admin/admin/src/content-manager/components/InjectionZoneList/index.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import { Box } from '@strapi/design-system/Box'; import { useInjectionZone } from '../../../shared/hooks'; const InjectionZoneList = ({ area, ...props }) => { const compos = useInjectionZone(area); if (!compos) { return null; } // TODO retu...
src/svg-icons/maps/add-location.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsAddLocation = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z"/> </SvgIcon> ); MapsAddLocation = pure(Map...
source/client/components/sub-components/MovieCommentsPanel.js
achobanov/ReactJS-Fundamentals-lab
import React from 'react'; import CommentForm from './CommentsForm'; export default class MovieCommentsPanel extends React.Component { render() { console.log('[MovieCommentsPanel]', this.props); let comments = this.props.comments.map(comment => { return ( <div ...
src/index.js
jlhinson/BCA-Spirit-Store-Client
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; //import { createStore } from 'redux'; import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import appState from './store/reducers.js'; import { App } from './app.jsx'; req...
dist/1.11.0/jquery-css-deprecated-dimensions-event-alias.min.js
michael829/jquery-builder
/*! jQuery v1.11.0 -css,-css/addGetHookIf,-css/curCSS,-css/defaultDisplay,-css/hiddenVisibleSelectors,-css/support,-css/swap,-css/var/cssExpand,-css/var/isHidden,-css/var/rmargin,-css/var/rnumnonpx,-effects,-effects/Tween,-effects/animatedSelector,-effects/support,-dimensions,-offset,-deprecated,-event-alias | (c) 2005...
ajax/libs/parsley.js/2.3.6/parsley.js
honestree/cdnjs
/*! * Parsley.js * Version 2.3.6 - built Wed, Mar 23rd 2016, 10:57 am * http://parsleyjs.org * Guillaume Potier - <guillaume@wisembly.com> * Marc-Andre Lafortune - <petroselinum@marc-andre.ca> * MIT Licensed */ // The source code below is generated by babel as // Parsley is written in ECMAScript 6 // var _slice = Arra...
ajax/libs/react/0.11.2/react.js
luanlmd/cdnjs
/** * React v0.11.2 */ !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.React=e()}}(function(){var d...
src/app.js
fjoder/indecision-app
import React from 'react'; import ReactDOM from 'react-dom'; import IndecisionApp from './components/IndecisionApp'; import 'normalize.css/normalize.css'; import './styles/styles.scss'; ReactDOM.render(<IndecisionApp />, document.getElementById('app'));
src/parser/demonhunter/havoc/modules/talents/MasterOfTheGlaives.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; import Events from 'parser/core/Events'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; /** * Example ...
packages/mineral-ui-icons/src/IconLeakRemove.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconLeakRemove(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPro...
javascript/AddOn/Waiting.js
AppStateESS/stories
import React from 'react' import PropTypes from 'prop-types' const Waiting = (props) => { let message if (props.message.length === 0) { message = <span>Loading {props.label}...</span> } else { message = props.message } return ( <div className="lead text-center"> <i className="fa fa-cog fa-s...
examples/todomvc/test/components/Footer.spec.js
camsong/redux
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import Footer from '../../components/Footer' import { SHOW_ALL, SHOW_ACTIVE } from '../../constants/TodoFilters' function setup(propOverrides) { const props = Object.assign({ completedCount: 0, activeCount: ...
src/containers/DevTools/DevTools.js
ptim/react-redux-universal-hot-example
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="H" changePositionKey="Q"> <LogMonitor /> </Dock...
app/containers/AdminFournisseur/components/ProduitForm.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { reduxForm, Field } from 'redux-form'; import MenuItem from 'material-ui/MenuItem'; import CustomSelectField from 'components/CustomSelectField'; import { TextField } from 'redux-form-material-ui'; import { Editor } from 'react-draft-...
client/components/Landing.js
MusicConnectionMachine/VisualizationG6
import React from 'react' import Searchbar from './Searchbar' import LandingWidgets from './static/LandingWidgets' import CheckOurStats from './static/CheckOurStats' import headerImage from '../../style/img/logo/logo-landing.svg' import '../../style/landing.scss' const Landing = React.createClass({ render () { r...
src/modules/modals/APIRespondModal/APIRespondModal.js
hellofresh/janus-dashboard
import React from 'react' import PropTypes from 'prop-types' import Modal from '../../../components/Modal/Modal' import Button from '../../../components/Button/Button' const propTypes = { closeModal: PropTypes.func.isRequired, isOpen: PropTypes.bool.isRequired, message: PropTypes.string.isRequired, redirectOn...
[5]. Utils/ViewUtils.js
knightsj/RN_Demo
import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, TouchableOpacity, TouchableHighlight } from 'react-native'; export var FlAG_SETTINGITEMTYPE= {flag_top:'top',flag_middle:'middle',flag_bottom:'bottom',flag_single:'single'}; export default class ViewUtils{ ...
client/app/components/Footer/index.js
katharosada/bus-shaming
import React from 'react'; import { Link } from 'react-router-dom'; import './styles.less'; /** * Footer component. **/ export default function Header() { return ( <footer id="main-footer"> <div className="column"> Made by <a href="https://katiebell.net">Katie Bell</a> </div> ...
local-cli/templates/HelloWorld/index.android.js
esauter5/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class HelloWorld extends Component { render() { return ( <View style={styles.containe...
src/components/User/Sprint/Views/Mobile/index.js
Ftornik/forwardteam.space
/** * [IL] * Library Import */ import React from 'react'; import cx from 'classnames'; /** * [IS] * Style Import */ import Styles from './Styles/main.scss'; import SprintImage from 'components/Assets/Pins/Sprint'; function Sprint(props) { const { user, sprint } = props; const sprintProgress = user.prog...
wrappers/html.js
grand-crew/grand-crew.github.io
import React from 'react' module.exports = React.createClass({ propTypes () { return { router: React.PropTypes.object, } }, render () { const post = this.props.route.page.data return ( <div className="markdown"> <h1 dangerouslySetInnerHTML={{ __html: post.title }} /> <...
packages/material-ui-icons/src/AccessibilityTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z" /></g></React.Fragment> , 'AccessibilityTwoTone');
node_modules/yui/scrollview-base/scrollview-base-coverage.js
AllenHunn/aurelia-fetch-client-extensions
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/scrollview-base/scrollview-base.js']) { __coverage__['build/scrollview-base/scrollview-base.js'] = {"path":"build/scrollview-base/scrollview-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":...
client/src/HeaderPresenter.js
ahorrocks2/what_sounds_good_to_you
import React from 'react'; const HeaderPresenter = () => { return ( <div className="header"> <h1 className="headerText">the hanger helper.</h1> </div> ); } export default HeaderPresenter;
client/app/containers/Blending/index.js
vulcan-estudios/pwa-examples
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import { startBlending, stopBlending } from 'client/app/actions'; import Blender from 'client/app/components/Blender'; const mapStateToProps = function (state) { return { app: state.app, ...
files/knockout.validation/2.0.3/knockout.validation.js
as-com/jsdelivr
/*============================================================================= Author: Eric M. Barnard - @ericmbarnard License: MIT (http://opensource.org/licenses/mit-license.php) Description: Validation Library for KnockoutJS Version: 2.0.3 ===================...
src/routes/Maps/containers/Container.js
dingchaoyan1983/ReactRedux
import React from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux' import classnames from 'classnames'; import { fetchMapData } from '../modules/reducer'; import _get from 'lodash/object/get'; import css from './maps.css'; import GoogleMap from 'components/GoogleMap'; import Mapsliderba...
admin/client/Signin/index.js
concoursbyappointment/keystoneRedux
/** * The signin page, it renders a page with a username and password input form. * * This is decoupled from the main app (in the "App/" folder) because we inject * lots of data into the other screens (like the lists that exist) that we don't * want to have injected here, so this is a completely separate route and...
actor-apps/app-web/src/app/components/modals/Contacts.react.js
hejunbinlan/actor-platform
// // Deprecated // import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import ContactStore from 'stores/ContactStore'; import Modal from...
ajax/libs/webshim/1.15.3/dev/shims/es6.js
athanclark/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...
packages/material-ui-icons/src/WatchLaterSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><defs><path id="a" d="M0 0h24v24H0z" /></defs><g><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" /></g></React.Fragment> , 'Watc...
addons/knobs/src/components/GroupTabs.js
rhalff/storybook
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { baseFonts } from '@storybook/components'; const styles = { empty: { flex: 1, display: 'flex', ...baseFonts, fontSize: 11, letterSpacing: '1px', textTransform: 'uppercase', alignItems: 'center', just...
packages/material-ui-icons/src/AlarmOffOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M10.04 6.29C10.66 6.11 11.32 6 12 6c3.86 0 7 3.14 7 7 0 .68-.11 1.34-.29 1.96l1.56 1.56c.47-1.08.73-2.27.73-3.52 0-4.97-4.03-9-9-9-1.25 0-2.4...
src/components/StateComp2.js
nchathu2014/reactApp
import React from 'react'; export default class StateComp2 extends React.Component{ _handleOnClick(){ console.log("_handleOnClick fires"); } render(){ var data = this.props.data; return( <div> State 2 : {data} <br/> <button onClick={this._handleOnClick}>Click Me</button> </div> ); } }
modules/RouteContext.js
mozillo/react-router
import React from 'react' const { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitions. */ const RouteContext = { prop...
examples/express-nunjucks-postcss-unstyled-react-webpack-mocha-sqlite-twitter/app/routes.js
sahat/megaboilerplate
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import App from './components/App'; import Home from './components/Home'; import Contact from './components/Contact'; import NotFound from './components/NotFound'; import Login from './components/Account/Login'; import Signup from './component...
blueprints/route/files/src/routes/__name__/components/__name__.js
easingthemes/easingthemes.github.io
import React from 'react' import classes from './<%= pascalEntityName %>.scss' export const <%= pascalEntityName %> = () => ( <div className={classes['<%= pascalEntityName %>']}> <h4><%= pascalEntityName %></h4> </div> ) export default <%= pascalEntityName %>
docs/pages/examples/validation/index.js
Limenius/liform-react
import React from 'react' import ReactDOM from 'react-dom' import { createStore, combineReducers } from 'redux' import { reducer as formReducer } from 'redux-form' import { Provider } from 'react-redux' import Liform from '../../../../src/' import { SubmissionError } from 'redux-form' const sleep = ms => new Promise(r...
ajax/libs/clappr/0.0.31/clappr.js
tambien/cdnjs
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]...
www/src/containers/survey/SurveyUserListContainer.js
cygwin255/SimpleSurvey
import React from 'react' import * as actions from 'actions' import { connect } from 'react-redux' import { surveysCollectionSelector, surveysCurrentPageSelector, surveysTotalPagesSelector, surveysTotalSurveysSelector } from 'reducers/surveyReducer/SurveysReducer' import SurveyUserList from 'components/survey/S...
app/javascript/mastodon/features/compose/components/navigation_bar.js
narabo/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import IconButton from '../../../components/icon_button'; import DisplayName from '../../../components/display_name'; import Permalink from '../../../components/permalink'; import { Fo...
docs/app/Examples/modules/Progress/Variations/Color.js
jamiehill/stardust
import React from 'react' import { Progress } from 'stardust' const ProgressColorExample = () => ( <div> <Progress percent={32} color='red' /> <Progress percent={59} color='orange' /> <Progress percent={13} color='yellow' /> <Progress percent={37} color='olive' /> <Progress percent={83} color='gr...
src/svg-icons/action/info-outline.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionInfoOutline = (props) => ( <SvgIcon {...props}> <path d="M11 17h2v-6h-2v6zm1-15C6.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.59 8 8-3.59 8-8 8zM11 9h...
src/components/trello/plain-wordmark/TrelloPlainWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './TrelloPlainWordmark.svg' /** TrelloPlainWordmark */ function TrelloPlainWordmark({ width, height, className }) { return ( <SVGDeviconInline className={'TrelloPlai...
src/collections/Table/TableFooter.js
shengnian/shengnian-ui-react
import React from 'react' import { customPropTypes, getUnhandledProps, META, } from '../../lib' import TableHeader from './TableHeader' /** * A table can have a footer. */ function TableFooter(props) { const { as } = props const rest = getUnhandledProps(TableFooter, props) return <TableHeader {...rest}...
ajax/libs/yui/3.17.1/datatable-core/datatable-core.js
schoren/cdnjs
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @sinc...
src/components/prompts/ConfirmLeave.js
shp54/cliff-effects
import React from 'react'; /** * Ask the user for confirmation to leave the page. * @extends React.Component * * @param props {object} * @param props.isBlocking {boolean} - Whether the component should block * @param props.message {string} - The message the browser shows, maybe */ class ConfirmLeave extends Rea...
subfind_web/ui/src/components/AdminLTE.js
thongdong7/subfind
import React from 'react' export default class AdminLTE extends React.Component { render() { return ( <div className="container"> {this.props.children} </div> ) } }
examples/todos-with-undo/components/Footer.js
edge/redux
import React from 'react' import FilterLink from '../containers/FilterLink' const Footer = () => ( <p> Show: {" "} <FilterLink filter="SHOW_ALL"> All </FilterLink> {", "} <FilterLink filter="SHOW_ACTIVE"> Active </FilterLink> {", "} <FilterLink filter="SHOW_COMPLETED">...
src/components/video_list_item.js
izabelka/redux-simple-starter
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { const imageUrl = video.snippet.thumbnails.default.url; return ( <li onClick={() => onVideoSelect(video)} className="list-group-item"> <div className="video-list media"> <div className="media-left"> <img class...
examples/huge-apps/components/Dashboard.js
neebz/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 ...
src/svg-icons/action/swap-vert.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapVert = (props) => ( <SvgIcon {...props}> <path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"/> </SvgIcon> ); ActionSwapVert = pure(ActionSwapVert); ActionSwapVert.displa...
src/layouts/CoreLayout.js
todvora/extrade
import React from 'react' import { Link } from 'react-router' import 'bootstrap/dist/css/bootstrap.css' import 'bootstrap/dist/js/bootstrap.min.js' import '../styles/core.scss' import '../styles/main.less' // Note: Stateless/function components *will not* hot reload! // react-transform *only* works on component clas...
src/components/student/question.js
scottbrassfield/Assess.js
import React from 'react' const Question = ({ problem }) => ( <div style={{fontSize: 24}}> {problem.question} </div> ) export default Question
src/routes.js
Ftornik/forwardteam.space
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import * as Page from 'containers'; const componentRoutes = ( <Route> <IndexRoute component={ Page.Home }/> <Route path="id/:id" component={ Page.User }/> <Route path="team/:id" component={ Page.Team }/> <R...
ajax/libs/react-instantsearch/5.3.1/Connectors.min.js
cdnjs/cdnjs
/*! React InstantSearch 5.3.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e.ReactInstantSearch=e.ReactInstantSearch||{},e.Re...
examples/js/src/client/index.js
yusinto/universal-hot-reload
import React from 'react'; import { hydrate } from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import App from '../universal/app'; hydrate( <BrowserRouter> <App /> </BrowserRouter>, document.getElementById('reactDiv'), );