path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
packages/material-ui-icons/src/AssignmentLateRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 15h-2v-2h2v2zm0-5c0 .55-.45 1-1 1s-1-.45-1-1V9c0-.55.45-1 1-1s1 .45 1 1v4zm-1...
packages/material-ui-icons/legacy/Battery80Outlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h10V5.33z" /><path d="M7 9v11.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V9H7z" /></React.F...
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js
littlefoot32/react-router
import React from 'react'; import { Link } from 'react-router'; export default class AnnouncementsSidebar extends React.Component { render () { var announcements = COURSES[this.props.params.courseId].announcements; return ( <div> <h3>Sidebar Assignments</h3> <ul> {announcemen...
src/svg-icons/image/assistant.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAssistant = (props) => ( <SvgIcon {...props}> <path d="M19 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5.12 10.88L12 17l-1.88-4.12L6 11l4.12-1.88L12 5l1.88 4.12L18 11...
app/components/header/header.js
firegoby/react-ecosystem-aurora
import React from 'react' import { Link } from 'react-router' if (process.env.BROWSER) require('./header.styl') class Header extends React.Component { constructor() { super() this.handleClick = this.handleClick.bind(this) } handleClick(ev) { const elem = React.findDOMNode(this.ref...
src/components/common/svg-icons/image/flash-auto.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlashAuto = (props) => ( <SvgIcon {...props}> <path d="M3 2v12h3v9l7-12H9l4-9H3zm16 0h-2l-3.2 9h1.9l.7-2h3.2l.7 2h1.9L19 2zm-2.15 5.65L18 4l1.15 3.65h-2.3z"/> </SvgIcon> ); ImageFlashAuto = pure(ImageFla...
src/components/icon/SineWaveIcon.js
reklawnos/synthesizer
import React from 'react'; export default function SineWaveIcon() { return ( <svg viewBox="0 25 100 50" className="waveform-icon"> <path d="M89.2 60.8c-4.5 0-6.6-5.3-8.6-10.4-1.8-4.5-3.6-9.1-6.8-9.1s-5 4.6-6.8 9.1c-2 5.1-4.1 10.4-8.6 10.4s-6.6-5.3-8.6-10.4c-1.8-4.5-3.6-9.1-6.8-9.1s-5 4.6-6.8 9.1c-2 5.1-4.1...
frontend/test/app/containers/ExperimentPage-test.js
clouserw/testpilot
import React from 'react'; import { expect } from 'chai'; import sinon from 'sinon'; import { shallow, mount } from 'enzyme'; import moment from 'moment'; import ExperimentPage, { ExperimentDetail } from '../../../src/app/containers/ExperimentPage'; import { initialState as newsletterState } from '../../../src/app/red...
src/js/components/home.js
JJVvV/react-blog
/** * Created by Administrator on 2015/7/2. */ import React from 'react'; import Authentic from './authenticatedComponent.js'; class Home extends React.Component{ render(){ return ( <h1>Hello {this.props.user}</h1> ); } } export default Authentic(Home);
common/components/App.js
j-klassen/react-redux-express-webpack-example
import React, { Component } from 'react'; export default class App extends Component { static propTypes = { children: React.PropTypes.node } render() { return ( <div> { this.props.children } </div> ); } }
src/components/Actions.js
TylerBriskie/client-portal-blackjack-UI
import React, { Component } from 'react'; import '../App.css'; class Actions extends Component { constructor(props) { super(); this.state={ isHittable: true, } } render() { return( <div className="actions-wrapper"> {this.props.isHittable ? <button cl...
app/containers/AboutView/FacebookIcon.js
juanda99/arasaac-frontend
import React from 'react' // import { black } from 'material-ui/styles/colors' import Facebook from 'components/SocialLogin/icons/svg/facebook' const FacebookIcon = () => ( <Facebook color='black' /> ) export default FacebookIcon
app/containers/SideBar/NavTree.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import TreeView from 'react-treeview'; import { Link } from 'react-router'; import { capitalize, getEntityType } from '../../utils'; import { filterBoundaries } from './utils'; import { collapsedProgramEntity, getBoun...
app/component/home/index.js
michelia-alba/music-player
import React from 'react' import Header from '../header/index.js' import Progress from '../progress/index.js' import MusicContent from '../musicContent/index.js' import Voice from '../voice/index.js' import $ from 'jquery' import jPlayer from 'jPlayer' import { MUSIC_LIST } from '../../config/musicList.js' import './st...
application/components/messages/MessagesView.js
buildreactnative/assemblies
import React, { Component } from 'react'; import { Navigator } from 'react-native'; import { flatten, uniq } from 'underscore'; import Profile from '../profile/Profile'; import Conversation from './Conversation'; import Conversations from './Conversations'; import { DEV, API } from '../../config'; import { globals } f...
webui/lib/connectApollo.js
stiftungswo/izivi_relaunch
import 'isomorphic-fetch'; import React from 'react'; import { ApolloProvider, getDataFromTree } from 'react-apollo'; import initClient from './initClient'; export default Component => ( class extends React.Component { static async getInitialProps(ctx) { const headers = ctx.req ? ctx.req.headers : {}; ...
app/components/header.js
yksdjx/react-music
import React from 'react' import './header.less' let Header = React.createClass({ getInitialState() { return { songName: '' } }, render(){ return ( <div className="component-header"> <div className="media"> <div className="media-left media-middle"> </div> <div className="m...
ajax/libs/rxjs/2.4.0/rx.lite.extras.js
BitsyCode/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'und...
app/src/components/PageHead/index.js
kshvmdn/github-list
import React from 'react'; import './index.css'; const PageHead = ({ children }) => ( <div className="pagehead"> <div className="pagehead--container"> {children} </div> </div> ); export default PageHead;
packages/icons/src/md/action/SwapHoriz.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdSwapHoriz(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z" /> </IconBase> ); } export default MdSwapHoriz;
example/server-side/server.js
kodyl/react-document-meta
import express from 'express'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import Root from '../components/root'; import Nested from '../components/page-one'; import DocumentMeta from '../../lib/server'; const server = express(); function ssr ( res, content ) { const meta = DocumentMet...
src/parser/monk/mistweaver/modules/features/MasteryStats.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatThousands } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import EssenceFontMastery from 'parser/monk/mistweaver/modules/features/EssenceFontMastery'; import EnvelopingMists fr...
files/react/0.12.2/react-with-addons.js
osxi/jsdelivr
/** * React (with addons) v0.12.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()}}(fu...
application/components/ListHeader.js
ultimagriever/todo-list-react-native
import React, { Component } from 'react'; import { View, TextInput, Dimensions } from 'react-native'; import Button from 'react-native-button'; import { Styles } from '../styles'; export default class ListHeader extends Component { constructor(props) { super(props); } render() { return ( <View sty...
examples/basic/src/components/CounterButton/CounterButton.js
styleguidist/react-styleguidist
import React, { Component } from 'react'; /** * Button that counts how many times it was pressed and exposes a `@public` method to reset itself. */ export default class CounterButton extends Component { constructor() { super(); this.state = { value: 0, }; } /** * Sets the counter to a particular value...
ajax/libs/flocks.js/0.16.18/flocks.min.js
fatso83/cdnjs
if("undefined"===typeof React)var React=require("react"); (function(){function f(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){return"undefined"===typeof a}function u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===type...
ajax/libs/clappr/0.0.61/clappr.js
camelotceo/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);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)...
renderer/component/Detail/CopyableText.js
toruta39/Markr
import React from 'react'; var CopyableText = (props) => <input className="form-control" disabled={ props.value == null } onMouseOver={ ({ target }) => target.select() } onMouseOut={ ({ target }) => target.blur() } onChange={ (e) => e.preventDefault() } value={ props.value } />; export default CopyableTex...
examples/js/manipulation/filter-table.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-console: 0 */ /* eslint guard-for-in: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { con...
src/components/home/HomeBanner.js
psongpin/Personal-Website-v2
import React from 'react' import { Container, Row, Col } from 'reactstrap' import Link from 'gatsby-link' import divider from '../../styles/Assets/Divider.svg' import paulImage from '../../styles/Assets/paulImage.svg' const HomeBaner = () => <Container className='home-banner'> <Row className='home-banner-row'> ...
fields/types/cloudinaryimages/CloudinaryImagesColumn.js
lastjune/keystone
import React from 'react'; import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; const moreIndicatorStyle = { color: '#888', fontSize...
src/components/RepoCard/RepoCard.js
Jotakuun/github-charts
import React from 'react'; import styles from './RepoCard.css'; import Card from '../shared/Card/Card'; export default class RepoCard extends React.Component { hightlight() { this.props.highlight(this.props.repo, this.props.color); } render() { let repo = this.props.repo; let homep...
app/components/pages/CookProfil/index.js
romainquellec/cuistot
import React from 'react'; import PropTypes from 'prop-types'; import { graphql, gql } from 'react-apollo'; import Header from '../../genericComponents/HeaderPages'; import Footer from '../../genericComponents/Footer'; import CookProfilWithData from 'components/specificComponents/CookProfilWithData'; import LoadingIn...
ajax/libs/forerunnerdb/1.3.697/fdb-core.js
wout/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
ajax/libs/forerunnerdb/1.3.669/fdb-core+persist.js
holtkamp/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
app/components/Home.js
SixSecondMonks/sos-electron
import React, { Component } from 'react'; import 'phaser-shim'; class Game extends Phaser.Game { constructor (height, width, type, element, funcs) { super(height, width, type, element, funcs); } } export default class Home extends Component { constructor(props) { super(props); this.game = new Game(8...
docs/src/pages/premium-themes/instapaper/components/molecules/ListItemText.js
Kagami/material-ui
import React from 'react'; import cx from 'classnames'; import MuiListItemText from '@material-ui/core/ListItemText'; import { LIST_ITEM_TEXT } from '../../theme/core'; const ListItemText = ({ className, category, subcategory, subcategoryPrimary, ...props }) => ( <MuiListItemText className={cx( LIST_ITEM_T...
actor-apps/app-web/src/app/components/SidebarSection.react.js
alihalabyah/actor-platform
import React from 'react'; import { Styles, Tabs, Tab } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; import ContactsSection from 'components/sidebar/ContactsSec...
app/js/components/containers/usersList.js
pedromrb/react-babel-react-router-webpack-boilerplate
import React from 'react'; const UsersList = ({ users }) => { return ( <ul className='list'> { users.map(user => <li className='list-item' key={ user.id }> { user.name } </li>, )} </ul> ); }; export default UsersList;
client/src/components/dashboard/messaging/conversation.js
hah-nan/papabear2
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import socket from '../../../actions/socket'; import { fetchConversation } from '../../../actions/messaging'; import MessageList from './message-list'; import ReplyMessage from './reply-message'; clas...
app/components/RecordProcedure.js
oroszms/nhshd17
// @flow import React, { Component } from 'react'; import { Link, hashHistory } from 'react-router'; import RaisedButton from 'material-ui/RaisedButton'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; import Slider from 'material-ui/Slider'; import Toggle from 'material-ui/Toggle'...
slides/the-speaker/components/Polygon.js
javivelasco/scaffolding-react-apps-slides
import React from 'react'; const Polygon = (props) => ( <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" {...props}> <polygon className="polygon" points="50,0 93.3,25 93.3,75 50,100 6.7,75 6.7,25 50,0" fill="#99E2DB"> <animate id="shape01" begin="0;shape02.end + 1s" attributeName="points" dur=...
4.ComponetLifeCycle/app.js
hiren2728/ReactDemo
import React from 'react'; import ReactDom from 'react-dom'; export class App extends React.Component { constructor(props){ super(props); console.log("Constructor called"); }; componentWillMount(){ console.log("Component Will Mount"); }; componentDidMount(){ console.l...
icon-builder/tpl/SvgIcon.js
bgribben/material-ui
import React from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import SvgIcon from '{{{ muiRequireStmt }}}'; const {{className}} = React.createClass({ mixins: [PureRenderMixin], render() { return ( <SvgIcon {...this.props}> {{{paths}}} </SvgIcon> ); } }); ...
modules/__tests__/History-test.js
buddhike/react-router
/*eslint-env mocha */ import expect from 'expect' import React from 'react' import History from '../History' import Router from '../Router' import Route from '../Route' import createHistory from 'history/lib/createMemoryHistory' describe('History Mixin', function () { let node beforeEach(function () { node = ...
ajax/libs/x-editable/1.4.5/bootstrap-editable/js/bootstrap-editable.js
developer-prosenjit/cdnjs
/*! X-editable - v1.4.5 * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery * http://github.com/vitalets/x-editable * Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */ /** Form with single input element, two buttons and two states: normal/loading. Applied as jQuery method to DIV tag (not to for...
public/js/components/activityfeed/Comment.react.js
TRomesh/Coupley
import React from 'react'; import Card from 'material-ui/lib/card/card'; import ListItem from 'material-ui/lib/lists/list-item'; import List from 'material-ui/lib/lists/list'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/lib/avatar'; var Comment = React.createClass({ render: fun...
src/components/FormErrors.js
Tanachi/PollerBears
import React from 'react'; export const FormErrors = ({formErrors}) => <div className='formErrors'> {Object.keys(formErrors).map((fieldName, i) => { if(formErrors[fieldName].length > 0){ return ( <p key={i}>{fieldName} {formErrors[fieldName]}</p> ) } else { r...
test/test_helper.js
BlakeRedwolf/reduxblog
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
ajax/libs/oojs-ui/0.15.1/oojs-ui.js
emmy41124/cdnjs
/*! * OOjs UI v0.15.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * * Date: 2016-01-26T21:14:23Z */ ( function ( OO ) { 'use strict'; /** * Namespace for all classes, static methods and s...
_demo_/app/container/centerView/index.js
shoplinksys/react-native-scandit
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */ import React from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import style from './style'; export default function CenterView(props) { return ( <View style={style.main}> {p...
src/components/adopters/AdopterListHeader.js
pisgrupo9/ash_web
import React from 'react'; import AddAdopterButton from './AddAdopterButton'; import '../../styles/animal-list.scss'; const AdopterListHeader = () => { return ( <div className="animal-header"> <div className="animal-header-title section-title adopter"> LISTADO <div className="float-...
example/src/screens/types/tabs/TabOne.js
yusufyildirim/react-native-navigation
import React from 'react'; import {View, Text} from 'react-native'; class TabOne extends React.Component { render() { return ( <View> <Text>Tab One</Text> </View> ); } } export default TabOne;
app/components/Loading.js
EleTeam/Shop-React-Native
/** * ShopReactNative * * @author Tony Wong * @date 2016-08-13 * @email 908601756@qq.com * @copyright Copyright © 2016 EleTeam * @license The MIT License (MIT) */ import React from 'react'; import { StyleSheet, View, Text, ActivityIndicator, } from 'react-native'; import Common from '../common...
node_modules/body-parser/node_modules/debug/src/browser.js
Clomez/Node-browser-gui-scanner
/** * This is the web browser implementation of `debug()`. * * Expose `debug()` as the module. */ exports = module.exports = require('./debug'); exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = 'undefined' != typeof chrom...
src/Autocomplete.js
mattBlackDesign/react-materialize
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import constants from './constants'; import Icon from './Icon'; import Row from './Row'; import Col from './Col'; class Autocomplete extends Component { constructor (props) { super(props); this.state =...
src/parser/paladin/holy/modules/talents/CrusadersMight.js
fyruna/WoWAnalyzer
import React from 'react'; import { Trans } from '@lingui/macro'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import Analyzer from 'parser/core/Analyzer'; import SpellUsable from 'parser/shared/modules/SpellUsable'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/Sta...
admin/client/App/shared/InvalidFieldType.js
creynders/keystone
/** * Renders an "Invalid Field Type" error */ import React from 'react'; const InvalidFieldType = function (props) { return ( <div className="alert alert-danger"> Invalid field type <strong>{props.type}</strong> at path <strong>{props.path}</strong> </div> ); }; InvalidFieldType.propTypes = { path: Reac...
app/src/components/Header/index.js
AlexandreBourdeaudhui/abourdeaudhui.fr
/* * Package Import */ import React, { Component } from 'react'; import classNames from 'classnames'; /* * Local Import */ // Component import Nav from './Nav'; /* * Component */ class Header extends Component { /* * State */ state = { menuOpen: false, }; /* * LifeCycle */ compone...
pootle/static/js/shared/mixins/ModelFormMixin.js
unho/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import _ from 'underscore'; im...
docs/src/app/components/pages/components/Checkbox/Page.js
kittyjumbalaya/material-components-web
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import checkboxReadmeText from './README'; import checkboxCode from '!raw!materi...
imports/modules/ezform/EzForm.js
evancorl/portfolio
import React from 'react'; import { _ } from 'meteor/underscore'; import { $ } from 'meteor/jquery'; import EzInput from './EzInput'; import EzValidator from './EzValidator'; class EzForm extends React.Component { constructor(props) { super(props); this.validator = new EzValidator(this.props.schema); ...
ajax/libs/analytics.js/1.3.8/analytics.min.js
fredericksilva/cdnjs
(function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resol...
ajax/libs/react/0.11.0-rc1/react-with-addons.min.js
mzdani/cdnjs
/** * React (with addons) v0.11.0-rc1 * * Copyright 2013-2014 Facebook, Inc. * * 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 * * Unle...
bower_components/backbone/backbone.js
deepaksisodiya/Backbone-Todo
// Backbone.js 1.1.2 // (c) 2010-2014 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(root, factory) { // Set up Backbone appropriately for ...
src/basic/Checkbox.js
sampsasaarela/NativeBase
import React, { Component } from 'react'; import { TouchableOpacity, Platform } from 'react-native'; import IconNB from 'react-native-vector-icons/Ionicons'; import { connectStyle } from 'native-base-shoutem-theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; import variable from '../theme/variabl...
techCurriculum/ui/solutions/4.5/src/components/TextInput.js
tadas412/EngineeringEssentials
/** * Copyright 2017 Goldman Sachs. * 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...
src/page/todo/components/Footer.js
xincyang/webpack-demo
import React from 'react' import FilterLink from '../containers/FilterLink.js' const Footer = () => ( <p> Show: {" "} <FilterLink filter="SHOW_ALL">ALL</FilterLink> {" "} <FilterLink filter="SHOW_ACTIVE">ACTIVE</FilterLink> {" "} <FilterLink filter="SHOW_COMP...
demos/buttons/demos/icon-default.js
isogon/styled-mdl-website
import React from 'react' import { Button, Icon } from 'styled-mdl' const demo = () => ( <Button icon> <Icon name="add" /> </Button> ) const caption = 'Icon Button' const code = ` <Button icon> <Icon name="add" /> </Button> ` export default { demo, caption, code }
src/components/Query/Query.js
SteMcLellan/queryman
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from './component.js'; import styles from './component.less'; import { getQueryFromProps } from './selectors.js'; import QueryMetrics from './QueryMetrics.js'; import QueryResult from './QueryResult.js'; import QueryEd...
src/universalMiddleware/index.js
DAppx/SharpReact
/* */ // Needed for redux-saga es6 generator support //import 'babel-polyfill'; import React from 'react'; import { renderToString } from 'react-dom/server'; import { ServerRouter, createServerRenderContext } from 'react-router'; import { Provider } from 'react-redux'; import { CodeSplitProvider, createRenderCon...
app/javascript/mastodon/features/reblogs/index.js
mstdn-jp/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchReblogs } from '../../actions/interactions'; import { ScrollContainer } from ...
ajax/libs/react-virtualized/7.0.2/react-virtualized.js
humbletim/cdnjs
!function(root, factory) { "object" == typeof exports && "object" == typeof module ? module.exports = factory(require("react"), require("react-dom")) : "function" == typeof define && define.amd ? define([ "react", "react-dom" ], factory) : "object" == typeof exports ? exports.ReactVirtualized = factory(require("rea...
src/features/Sponsors/Components.js
ubc-subbots/ubc-subbots.github.io
import React from 'react'; import Col from 'react-bootstrap/Col'; import Card from 'react-bootstrap/Card'; import './styles.scss'; export class SponsorCard extends React.Component { render() { return ( <Col sm={3}> <a href={this.props.link}> <Card className=...
modules/Clone.js
ryanflorence/react-clone
import React from 'react' const Clone = React.createClass({ propTypes: { element: React.PropTypes.node.isRequired }, render() { const { element, ...props } = this.props return React.cloneElement(element, props) } }) export default Clone
files/rxjs/2.3.19/rx.lite.js
as-com/jsdelivr
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false }; v...
imports/client/ui/pages/Home/SecondSection/index.js
focallocal/fl-maps
import React from 'react' import { Link } from 'react-router-dom' import { Container, Row, Col, Button } from 'reactstrap' import Item from './Item' import i18n from '/imports/both/i18n/en' import './styles.scss' const SecondSectionI18N = i18n.Home.second_section const { title, content } = SecondSectionI18N co...
tests/components/Header/Header.spec.js
atomdmac/roc-game-dev-gallery
import React from 'react' import { Header } from 'components/Header/Header' import { IndexLink, Link } from 'react-router' import { shallow } from 'enzyme' describe('(Component) Header', () => { let _wrapper beforeEach(() => { _wrapper = shallow(<Header />) }) it('Renders a welcome message', ...
ajax/libs/yasqe/1.3.2/yasqe.min.js
cloudrifles/cdnjs
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r){function n(s,a){if(!i[s]){if(!...
client/src/__mocks__/gatsby-link.js
HKuz/FreeCodeCamp
/* eslint-disable */ import React from 'react'; const mockComponent = name => props => React.createElement(name, props, props.children); export const navigateTo = () => {}; export default mockComponent('MockedLink');
client/scripts/components/footer.js
rubeniskov/web-palomasafe
import React from 'react'; export default class Footer extends React.Component { constructor(props) { super(props); } render() { return ( <div id="footer" className="e-block-skin"> <div className="container"> <div className="row"> <div className="col-sm-3"> ...
src/containers/__tests__/views/launch-view-test.js
Jenny-L/lumohacks2017
/** * Test to check if the component renders correctly */ /* global it expect */ import 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; import LaunchView from '@containers/Launch/LaunchView'; // Login prop expects a promise const mockPromise = new Promise((resolve) => { reso...
src/TabbedArea.js
insionng/react-bootstrap
import React, { cloneElement } from 'react'; import BootstrapMixin from './BootstrapMixin'; import ValidComponentChildren from './utils/ValidComponentChildren'; import Nav from './Nav'; import NavItem from './NavItem'; let panelId = (props, child) => child.props.id ? child.props.id : props.id && (props.id + '___panel...
tests/routes/Counter/components/Counter.spec.js
eunvanz/handpokemon2
import React from 'react' import { bindActionCreators } from 'redux' import { Counter } from 'routes/Counter/components/Counter' import { shallow } from 'enzyme' describe('(Component) Counter', () => { let _props, _spies, _wrapper beforeEach(() => { _spies = {} _props = { counter : 5, ...bindA...
ajax/libs/react-router/0.9.3/react-router.min.js
tonytlwu/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.ReactRouter=e()}}(function(){var define;return functi...
src/components/form/Form.js
kondoSoft/react-car-rental
import React, { Component } from 'react'; import { Header, Grid, Form, Input, Checkbox, Button, Icon, Divider} from 'semantic-ui-react' import DatePickerForm from '../date-picker/DatePickerForm' require ('react-datepicker/dist/react-datepicker.css') class FormMain extends Component { render() { return ( ...
src/components/common/icons/Checked.js
goodjoblife/GoodJobShare
import React from 'react'; /* eslint-disable */ const Checked = (props) => ( <svg {...props} width="148" height="148" viewBox="0 0 148 148"> <g fillRule="evenodd"> <path d="M106.432812,41.823875 L55.7566875,97.8349375 L39.7773125,80.174375 C38.0660625,78.278125 35.1384375,78.1370625 33.2468125,79.846 C31.3...
src/components/Static/FloridaSatellite/index.js
jmikrut/keen-2017
import React from 'react'; export default () => { return ( <div className="studio"> <h5>Satellite</h5> <p> <a href="https://goo.gl/maps/bUxrexSKrL22" target="_blank" rel="noopener noreferrer"> 1720 SW 4th Ave<br/> Pompano Beach, FL 33060<br/> United States </a> </p> </div> ) }
examples/huge-apps/routes/Course/components/Nav.js
schnerd/react-router
import React from 'react' import { Link } from 'react-router' const styles = {} styles.nav = { borderBottom: '1px solid #aaa' } styles.link = { display: 'inline-block', padding: 10, textDecoration: 'none' } styles.activeLink = { ...styles.link, color: 'red' } class Nav extends React.Component { rende...
components/Loading.js
PaRb/Extend
import React from 'react'; import PropTypes from 'prop-types'; import { View, Text, ActivityIndicator, StyleSheet } from 'react-native'; import colors from '../config/colors'; const Loading = ({ showText, fullScreen }) => <View style={fullScreen ? [styles.root, styles.rootFullScreen] : styles.root}> <ActivityIn...
node_modules/react-bootstrap/es/ControlLabel.js
geng890518/editor-ui
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 ...
test/helpers/shallowRenderHelper.js
citcen/eudora
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
App/Services/ExamplesRegistry.js
jeremy091/robospycat
import React from 'react' import { Text, View } from 'react-native' import R from 'ramda' import { ApplicationStyles } from '../Themes' import DebugConfig from '../Config/DebugConfig' let globalComponentExamplesRegistry = [] let globalPluginExamplesRegistry = [] export const addComponentExample = (title, usage = () =>...
docs/src/pages/components/text-fields/ValidationTextFields.js
lgollut/material-ui
import React from 'react'; import TextField from '@material-ui/core/TextField'; import { makeStyles } from '@material-ui/core/styles'; const useStyles = makeStyles((theme) => ({ root: { '& .MuiTextField-root': { margin: theme.spacing(1), width: 200, }, }, })); export default function Validatio...
example/css-modules/src/routes.js
iansinnott/react-static-webpack-plugin
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import { App, About, Home, NotFound } from './components/App.js'; export const routes = ( <Route path='/' component={App}> <IndexRoute title='App' component={Home} /> <Route path='about' title='App - About' component={About} /> ...
src/app/components/media/MediaAnalysis.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { createFragmentContainer, graphql } from 'react-relay/compat'; import { FormattedMessage } from 'react-intl'; import Box from '@material-ui/core/Box'; import Typography from '@material-ui/core/Typography'; import Divider from '@material-ui/core/Divi...
src/app/components/Login.js
nileshp-cuelogic/react-redux-training
import React from 'react'; export const LoginComponent = (props) => { return ( <div> <div className="container"> <div className="row"> <div className="col-xs-10 col-xs-offset-1"> <h3>Login</h3> </div> ...
stories/hoc.legacy.js
pbernasconi/react-plaid-link
import React from 'react'; import { PlaidLink } from '../src'; const App = props => { const onExit = (error, metadata) => console.log('onExit', error, metadata); const onEvent = (eventName, metadata) => console.log('onEvent', eventName, metadata); const onSuccess = (token, metadata) => console.log('onSu...
ajax/libs/analytics.js/2.8.14/analytics.min.js
jonobr1/cdnjs
(function umd(require){if("object"==typeof exports){module.exports=require("1")}else if("function"==typeof define&&define.amd){define(function(){return require("1")})}else{this["analytics"]=require("1")}})(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[...
src/components_backup/Header/Header.js
justincdalton/iso-birchbox
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Header.less'; import withStyles from '../../decorators/withStyles'; import Link from '../../utils/Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header { render() { ...