path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/components/Sponsor.js
nickhsine/twreporter-react
import { sourceHanSansTC as fontWeight } from '@twreporter/core/lib/constants/font-weight' import DonationLink from '@twreporter/react-components/lib/donation-link-with-utm' import mq from '../utils/media-query' import React from 'react' import Sizing from './sizing' import styled from 'styled-components' const Contai...
packages/material-ui-icons/src/VolumeMuteTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M9 13h2.83L14 15.17V8.83L11.83 11H9z" opacity=".3" /><path d="M7 9v6h4l5 5V4l-5 5H7zm7-.17v6.34L11.83 13H9v-2h2.83L14 8.83z" /></React.Fragment> , 'VolumeMuteTwoTone');
ajax/libs/rxjs/4.1.0/rx.lite.extras.js
boneskull/cdnjs
// Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'function': true, 'object': true }; function checkGlobal(value) { return (value && value.Object === Object) ? value : null; } var freeExports ...
ajax/libs/rxjs/2.2.17/rx.lite.compat.js
hcxiong/cdnjs
// 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, 'u...
stubo/static/node_modules/react-tools/src/classic/class/ReactDoNotBindDeprecated.js
Stub-O-Matic-BA/stubo-app
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ...
client/modules/Workout/components/WorkoutListItem.js
Danielbook/liftinglog
import React from 'react'; import PropTypes from 'prop-types'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import ContentRemove from 'material-ui/svg-icons/content/remove'; import { ListItem } from 'material-ui/List'; import { Link } from 'react-router'; function WorkoutListItem(props) { ret...
client/src/logos/twitterLogo.js
juandaco/voting-app
import React from 'react'; const twitterLogo = iconStyle => { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300.00006 244.18703" style={iconStyle} height="35" width="35" version="1.1" > <g transform="translate(-539.18 -568.86)"> <path ...
src/containers/Accounts/Verify/Pass/index.js
westoncolemanl/tabbr-web
import React from 'react' import Link from 'react-router-dom/Link' import Card, { CardActions, CardContent } from 'material-ui/Card' import Typography from 'material-ui/Typography' import Button from 'material-ui/Button' import { CardLogoHeader } from 'components' export default () => <Card raised > ...
ajax/libs/jquery.serialScroll/1.2.3/jquery.serialScroll.js
jamzgoodguy/cdnjs
/*! * jQuery.SerialScroll * Copyright (c) 2007-2013 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com * Licensed under MIT. * * @projectDescription Animated scrolling of series. * @author Ariel Flesler * @version 1.2.3 * * http://flesler.blogspot.com/2008/02/jqueryserialscroll.html */ ;(fun...
src/js/components/music-controller.js
olejrosendahl/shader-player
import React from 'react'; import { Button, Glyphicon } from 'react-bootstrap'; let PlayButton = React.createClass({ getInitialState: function() { return {playing: false}; }, render() { if (!this.state.playing) return ( <Button onClick={this._handlePlay}> <Glyphicon glyph='play' /...
src/renderer/components/header.js
marcus-sa/Venobo
import React from 'react' import {dispatch} from '../lib/dispatcher' import config from '../../config' import {withTranslate} from '../utils/react-multilingual' class Header extends React.Component { userHover = () => { $(this.refs.user).children('.details.authenticated').addClass('active-hover') } userLe...
src/components/ListItem.js
merrettr/school-ui
import React from 'react'; import Panel from 'react-bootstrap/lib/Panel'; import Glyphicon from 'react-bootstrap/lib/Glyphicon'; const ListItem = ({ children, icon, style, onClick }) => <Panel onClick={onClick} style={{ padding: '1em', marginBottom: 0, cursor: 'pointer', ...style, ...
examples/app/js/pages/about.js
openslack/openslack-html5
import React from 'react'; import ReactDOM from 'react-dom'; import { Container, NavBar, Group, } from 'amazeui-touch'; const About = React.createClass({ render() { return ( <Container {...this.props}> <Group header="关于 Amaze UI Touch" footer="ver __VERSION__" > ...
packages/lore-hook-forms-bootstrap/src/blueprints/destroy/Overlay/Overlay.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import _ from 'lodash'; import { result as _result } from 'lore-utils'; import { SchemaForm } from 'lore-react-forms'; import { Overlay, Request, RequestError, SuccessMessage } from 'lore-react-forms-bootst...
src/@ui/ContentView/index.js
NewSpring/Apollos
import React from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import { compose, pure, setPropTypes } from 'recompose'; import styled from '@ui/styled'; import Placeholder from '@ui/Placeholder'; import { VideoHeader, ImageHeader, AudioBanner } from './Media'; export { default as ...
tools/flow/definitions/react.js
wcrowe/makeqachecklist
/* @flow */ // Note: we already have the definitions from // https://github.com/facebook/flow/blob/master/lib/react.js // so the below are merely helpful extensions. import React from 'react'; declare type $React$Element = React.Element<*>; declare type $React$Node = string | number | $React$Element | Array<$React$...
src/basic/Thumbnail.js
sampsasaarela/NativeBase
import React, { Component } from 'react'; import { Image } from 'react-native'; import { connectStyle } from 'native-base-shoutem-theme'; import computeProps from '../Utils/computeProps'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class Thumbnail extends Component { render() { return ( ...
src/Parser/Druid/Restoration/CONFIG.js
hasseboulen/WoWAnalyzer
import React from 'react'; import { blazyb, sref } from 'CONTRIBUTORS'; import SPECS from 'common/SPECS'; import Wrapper from 'common/Wrapper'; import CombatLogParser from './CombatLogParser'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People do...
ajax/libs/react-native-web/0.15.1/exports/Touchable/index.js
cdnjs/cdnjs
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @format */ 'use strict'; function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var targ...
react_frontend/chinook_consumer/src/components/InvoicesComponent.js
Limmen/chinook
/** * InvoicesComponent. * * Component that fetches a list of invoices from the REST-API and renders it in a datatable. */ 'use strict'; import React from 'react'; import {Table, Column, Cell} from 'fixed-data-table'; import Dimensions from 'react-dimensions' import Formsy from 'formsy-react'; import TextInputCom...
web_frontend/src/routes.js
suribit/Lucy25
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { App, Home, NotFound, Clean } from 'containers'; export default () => { return ( <Route path="/" component={App}> <IndexRoute component={Home}/> <Route path="clean/:url" component={Clean} /> <R...
packages/material/src/components/Footer.js
wq/wq.app
import React from 'react'; import { useComponents } from '@wq/react'; export default function Footer() { const { Typography, FooterContent } = useComponents(); return ( <div style={{ height: '3em', display: 'flex', alignItems: 'center', ...
src/pages/page-2.js
TotalLag/hello-world
import React from 'react' import Link from 'gatsby-link' const SecondPage = () => ( <div> <h1>Hi from the second page</h1> <p>Welcome to page 2</p> <Link to="/">Go back to the homepage</Link> </div> ) export default SecondPage
ajax/libs/react-data-grid/1.0.6/react-data-grid.ui-plugins.js
maruilian11/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/boardgame-io/0.49.1/esm/react-native.js
cdnjs/cdnjs
import 'nanoid/non-secure'; import { _ as _inherits, a as _createSuper, b as _createClass, c as _defineProperty, d as _classCallCheck, e as _objectWithoutProperties, f as _objectSpread2 } from './Debug-f39f426b.js'; import 'redux'; import './turn-order-406c4349.js'; import 'immer'; import 'lodash.isplainobject'; import...
public/lib/jquery/jquery-1.11.3.min.js
teresolteam1/meanjsmysql
/*! jQuery v1.11.3 | (c) 2005, 2015 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...
packages/material-ui-icons/src/TagFacesSharp.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.01 2C6.49 2 2.02 6.48 2.02 12s4.47 10 9.99 10c5.53 0 10.01-4.48 10.01-10S17.54 2 12.01 2zm.01 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8...
src/js/components/pages/Login.js
pankajpatel/playlists
import React from 'react'; import Header from 'js/components/elements/Header'; import Form from '../elements/Form'; import Button from '../elements/Button'; import FormBlock from '../elements/FormBlock'; export default class Login extends React.Component { constructor(props) { super(props); } render(){ ...
RN/RNFluxDemo/index.android.js
puyanLiu/LPYFramework
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class RNFluxDemo extends Component { render() { return ( <View style={styles.container}> <Te...
packages/material-ui-icons/src/NotesTwoTone.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="M21 11.01L3 11v2h18zM3 16h12v2H3zM21 6H3v2.01L21 8z" /></g></React.Fragment> , 'NotesTwoTone');
src/client/app/page_list_sidebar/sub_components/PageLink.js
raghuveerkancherla/yata
import React from 'react'; import styles from './styles.less'; var PageLink = React.createClass({ propTypes: { identifier: React.PropTypes.string.isRequired, displayText: React.PropTypes.string.isRequired, displaySubText: React.PropTypes.string, onClick: React.PropTypes.func, pageType: React.Pro...
src/components/BarChart.react.js
codeforamerica/nyc-january-project
import React, { Component } from 'react'; import commaNumber from 'comma-number'; function compareNumbers(a, b) { return a - b; } export default class BarChart extends Component { constructor() { super(); this.state = { series: ['CEO Income vs Poverty Threshold'], labels: ['CEO Income', 'Poverty Th...
ajax/libs/forerunnerdb/1.2.11/fdb-core+views.js
BitsyCode/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.ForerunnerDB=e()}}(function(){var define,module,expor...
ajax/libs/yui/3.5.0pr4/event-focus/event-focus.js
Piicksarn/cdnjs
YUI.add('event-focus', function(Y) { /** * 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 = YLang.isFunction( Y...
assets/js/application/test/imaginery/components/ImagineryTest.js
ominidi/ominidi-web
import assert from 'assert'; import sinon from 'sinon'; import React from 'react'; import { shallow } from 'enzyme'; import Imaginery from '../../../src/imaginery/component/Imaginery'; describe('#Imaginery', () => { let sandbox, getRatio, values = { width: 800, height: 6...
ajax/libs/angular-google-maps/2.0.12/angular-google-maps.js
johan-gorter/cdnjs
/*! angular-google-maps 2.0.12 2014-12-15 * AngularJS directives for Google Maps * git: https://github.com/angular-ui/angular-google-maps.git */ ; (function( window, angular, undefined ){ 'use strict'; /* ! The MIT License Copyright (c) 2010-2013 Google, Inc. http://angularjs.org Permission is hereby granted, ...
docs/client/components/pages/Linkify/SimpleLinkifyEditor/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import Editor from 'draft-js-plugins-editor'; // eslint-disable-line import/no-unresolved import createLinkifyPlugin from 'draft-js-linkify-plugin'; // eslint-disable-line import/no-unresolved import editorStyles from './editorStyles.css'...
ajax/libs/analytics.js/2.8.25/analytics.min.js
pcarrier/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/Sidebar.js
aalselius/Test
import React from 'react'; import Nav from './Nav.js'; const Sidebar = (props) => { return ( <div className="sidebar"> <Nav /> </div> ); } export default Sidebar;
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js
chenbk85/actor-platform
import _ from 'lodash'; import React from 'react'; import mixpanel from 'utils/Mixpanel'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import MyProfileActions from '../../actions/MyProfileActionCreators'; import LoginActionCreators...
assets/jqwidgets/demos/react/app/complexinput/validation/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxComplexInput from '../../../jqwidgets-react/react_jqxcomplexinput.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; class App extends React.Component { componentDidMount() { this.refs.myButton.on('click', () =>...
assets/javascripts/sso/pages/AdminAppsPage.js
laincloud/sso
import StyleSheet from 'react-style'; import React from 'react'; import {History} from 'react-router'; import AdminNewAppCard from '../components/AdminNewAppCard'; import AdminListAppCard from '../components/AdminListAppCard'; import AdminAuthorizeMixin from '../components/AdminAuthorizeMixin'; import {Admin} from '.....
src/views/FilterScreenView/index.js
r1cebank/react-native-boilerplate
import React from 'react'; import { connect } from 'react-redux'; import { Animated, View, ScrollView } from 'react-native'; import { Components, Colors, Assets, Actions } from '../../global/globalIncludes'; import Styles from './resources/styles'; class FilterScreen extends React.Component { props: { is...
ajax/libs/aui/5.6.4/aui/js/aui-all.js
a8m/cdnjs
!function(){"use strict";function a(a,c){var d=new b(a,c),e=function(){var b=document.createElement(a);return d.init(b),b};return e.listener=d,e}function b(b,c){c||(c={}),"function"==typeof c&&(c={insert:c}),this.component=c,this.id=b,j(this.component,a.defaults),this.component.ready&&u(this),this.component.listen&&thi...
src/index.js
RMCoder198/chat.susi.ai
import './index.css'; import * as ChatWebAPIUtils from './utils/ChatWebAPIUtils'; import * as Actions from './actions/'; import App from './App'; import MessageStore from './stores/MessageStore'; import React from 'react'; import ReactDOM from 'react-dom'; import UserPreferencesStore from './stores/UserPreferencesStore...
node_modules/react-hot-loader/index.js
hdngo/skate-life-frontend-test
'use strict'; var path = require('path'), SourceNode = require('source-map').SourceNode, SourceMapConsumer = require('source-map').SourceMapConsumer, makeIdentitySourceMap = require('./makeIdentitySourceMap'); module.exports = function (source, map) { if (this.cacheable) { this.cacheable(); } v...
src/Ripple/test/RippleSpec.js
suitejs/suite
import React from 'react'; import { getDOMNode } from '@test/testUtils'; import Ripple from '../Ripple'; describe('Ripple', () => { it('Should render a Ripple', () => { const instance = getDOMNode(<Ripple />); assert.include(instance.className, 'rs-ripple'); }); it('Should call onMouseDown callback', do...
src/DatePicker/DatePicker.spec.js
hai-cea/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import DatePicker from './DatePicker'; import getMuiTheme from '../styles/getMuiTheme'; import TextField from '../TextField'; describe('<DatePicker />', () => { const muiTheme = getMuiTheme(); const shal...
test/todolist.spec.js
pekkis/diktaattoriporssi-2016
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import TodoLists from '../src/components/TodoLists'; import TodoList from '../src/components/TodoList'; import TodoForm from '../src/components/TodoForm'; import Todo from '../src/components/Todo'; import { List, Range } from 'immutable'; impor...
static/src/components/DetermineAuth.js
idahu29/payment-redis
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as actionCreators from '../actions/auth'; function mapStateToProps(state) { return { token: state.auth.token, userName: state.auth.userName, isAuthenticated: state.auth.isA...
packages/react-router-native/NativeRouter.js
DelvarWorld/react-router
import React from 'react' import PropTypes from 'prop-types' import MemoryRouter from 'react-router/MemoryRouter' import { Alert } from 'react-native' /** * The public API for a <Router> designed for React Native. Gets * user confirmations via Alert by default. */ const NativeRouter = (props) => ( <MemoryRouter {...
ajax/libs/jquery/1.8.0/jquery-1.8.0.js
gabceb/cdnjs
/*! * jQuery JavaScript Library v1.8.0 * 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 09 2012 16:24:48 GMT-0400 (Eastern Daylight Time) */ (function(...
docs/src/pages/demos/lists/SimpleList.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List'; import Divider from 'material-ui/Divider'; import InboxIcon from '@material-ui/icons/Inbox'; import DraftsIcon from '@material-ui...
client/components/login/index.js
marcusnielsen/mn-labs-wild-development
import React from 'react'; function getClassNames(selectedName, name) { return name.startsWith(selectedName) ? 'text-success' : ''; } function handleChange(event) { this.props.names.indexOf(event.target.value); this.setState({ selectedName: event.target.value, }); } function getInitialState() { return...
LimiaUrbanus.WebSite/Scripts/kendo/2016.1.226/jquery.min.js
MiguelCosta/limiaurbanus
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return...
templates/rubix/rubix-bootstrap/src/Timeline.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import classNames from 'classnames'; import Icon from './Icon'; export class TimelineView extends React.Component { static propTypes = { centered: React.PropTypes.bool, withHeader: React.PropTypes.bool }; render() { var classes = classNames({ 'rubix-timeline-view': ...
plugins/jquery/jquery.js
hak11/SIKLH
/*! * jQuery JavaScript Library v1.12.4 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-05-20T17:17Z */ (function( global, factory ) { if ( typeof module =...
app/javascript/mastodon/features/ui/components/follow_requests_nav_link.js
musashino205/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { fetchFollowRequests } from 'mastodon/actions/accounts'; import { connect } from 'react-redux'; import { NavLink, withRouter } from 'react-router-dom'; import IconWithBadge from 'mastodon/components/icon_with_badge'; import { List as ImmutableList }...
src/svg-icons/device/signal-cellular-4-bar.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular4Bar = (props) => ( <SvgIcon {...props}> <path d="M2 22h20V2z"/> </SvgIcon> ); DeviceSignalCellular4Bar = pure(DeviceSignalCellular4Bar); DeviceSignalCellular4Bar.displayName = 'DeviceSign...
src/client/assets/js/features/examples/components/ExampleManager/ExampleManager.js
me-box/platform-sdk
import React, { Component } from 'react'; import {connect} from 'react-redux'; import { bindActionCreators } from 'redux'; import Drawer from 'react-md/lib/Drawers'; import Toolbar from 'react-md/lib/Toolbars'; import Button from 'react-md/lib/Buttons'; import Avatar from 'react-md/lib/Avatars'; import ListItem from ...
src/svg-icons/hardware/desktop-mac.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDesktopMac = (props) => ( <SvgIcon {...props}> <path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-2 3v1h8v-1l-2-3h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V4h18v10z"/> </SvgIcon> ); HardwareDesktopM...
app/user/post/PostItem.js
in42/internship-portal
import React from 'react'; import { Link } from 'react-router-dom'; import { Card, Icon } from 'semantic-ui-react'; import PropTypes from 'prop-types'; import Axios from 'axios'; import Auth from '../../auth/modules/Auth'; import User from '../../auth/modules/User'; export default class PostItem extends React.Componen...
ajax/libs/angular-google-maps/2.0.4/angular-google-maps.js
F2X/cdnjs
/*! angular-google-maps 2.0.4 2014-10-22 * AngularJS directives for Google Maps * git: https://github.com/angular-ui/angular-google-maps.git */ (function() { String.prototype.contains = function(value, fromIndex) { return this.indexOf(value, fromIndex) !== -1; }; String.prototype.flare = function(flare)...
stories/components/atoms/menu-item/index.js
one-love/storybook
import React from 'react'; import { Link } from 'react-router'; import cssModules from 'react-css-modules'; import styles from './menu-item.scss'; function MenuItem(props) { let styleName = 'item'; if (props && props.active === 'yes') { styleName += '-active'; } return ( <li styleName={styleName}> ...
node_modules/native-base/src/basic/Right.js
tausifmuzaffar/bisApp
import React, { Component } from 'react'; import { View } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class Right extends Component { render() { return ( <View ref={c => this._root = c} {...this.props} /> ); } ...
packages/react-scripts/template/src/index.js
svrcekmichal/react-scripts
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/ModalBody.js
HorizonXP/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalBody extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalBody.prop...
es6/DatePicker/MountBody.js
yurizhang/ishow
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
src/components/BookingsTable/Components/TableRow.js
humancatfood/bat-fe-test
import React from 'react'; import PropTypes from 'prop-types'; import MuiTableRow from '@material-ui/core/TableRow'; function TableRow ({isSelected, ...otherProps}) { return ( <MuiTableRow hover selected={isSelected} {...otherProps} /> ); } TableRow.propTypes = { isSelected: PropTyp...
node_modules/react-dom/dist/react-dom-server.js
lzm854676408/big-demo
/** * ReactDOMServer v15.3.0 * * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same d...
ajax/libs/analytics.js/2.3.13/analytics.min.js
Teino1978-Corp/Teino1978-Corp-cdnjs
(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n...
src/pages/music.js
Aquellex/aquellexws
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { graphql } from 'gatsby'; import ResponsiveEmbed from 'react-responsive-embed'; import Page from '../components/Page'; import Music from '../components/Music'; import SpoilerBox from '../components/SpoilerBox'; im...
ajax/libs/preact/1.5.0/preact.js
tholu/cdnjs
!function(e,t){if("function"==typeof define&&define.amd)define(["exports"],t);else if("undefined"!=typeof exports)t(exports);else{var n={exports:{}};t(n.exports),e.preact=n.exports}}(this,function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,...
src/templates/guide.js
hologram-io/docs
import React from 'react' import RenderMarkdown from '../components/renderHAST' import { GuideNav, Navbar, Link, StickyBar } from '../components' import PageAnimator from '../components/Animate/PageAnimator.js' import UpDownRating from '../components/UpDownRating/UpDownRating.js' class GuideTemplate extends React.Comp...
V1/vendors/Flot/jquery.js
ajinkyadeshpande/mystartup
/*! * jQuery JavaScript Library v1.8.3 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time) */ (function(...
src/conversations/ConversationsCard.js
saketkumar95/zulip-mobile
/* @flow */ import React, { Component } from 'react'; import { View, StyleSheet } from 'react-native'; import { STATUSBAR_HEIGHT } from '../styles'; import { OnNarrowAction, PushRouteAction, } from '../types'; import { privateNarrow, groupNarrow } from '../utils/narrow'; import { ZulipButton } from '../common'; import...
pages/api/container.js
allanalexandre/material-ui
import 'docs/src/modules/components/bootstrap'; // --- Post bootstrap ----- import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './container.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default Page;
src/views/UploadFieldView.js
nitrog7/nl-fluid
import React from 'react'; import * as components from 'components'; const { Box, Code, Component, Container } = components; export default class UploadFieldView extends Component { constructor(props) { super(props); this.state = { }; } render() { return ( <Container directio...
src/svg-icons/content/add-box.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAddBox = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/> </SvgIcon> ); ContentAddBox = pu...
packages/material-ui-icons/src/ShoppingCartSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M17 18c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM7 15l1.1-2h7.45c.75 0 1.41-...
frontend/src/Components/Form/EnhancedSelectInputSelectedValue.js
geogolem/Radarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import styles from './EnhancedSelectInputSelectedValue.css'; function EnhancedSelectInputSelectedValue(props) { const { className, children, isDisabled } = props; return ( <div className={classNam...
assets/admin/plugins/jcrop/js/jquery.min.js
dyarfi/dentsu.digital
/*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc...
website/src/components/slanting-graphic.js
IBM-Swift/kitura.io
import React from 'react' import styles from './slanting-graphic.module.css' const slantingGraphic = ({ type }) => { if (type === "main") { return ( <div className={styles.mainParentContainer}> <div className={styles.mainTopGraphic}> <div className={styles.mainBottomGraphic}></div> ...
src/holding.js
ngzhian/TopBloc
import React from 'react'; import AddButton from './addButton'; var Dancer = React.createClass({ render: function() { let addToFormation = <span />; let {inFormation, addDancerToFormation, removeDancer} = this.props; if (!inFormation) { addToFormation = ( <button onClick={addDancerToFormat...
src/components/Demo.js
FaureWu/Resume
require('styles/Demo.css'); import React from 'react'; import Tool from './Tool'; class Demo extends React.Component { constructor(props) { super(props); this.state = { } } render() { let self = this; let items = this.props.data; return ( <div className="demo"> <div classN...
react-flux-mui/js/material-ui/src/svg-icons/action/settings-cell.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsCell = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"...
src/segment/StatisticSegment.js
alelk/houses-building-website
/** * Statistic Segment * * Created by Alex Elkin on 31.10.2017. */ import './StatisticSegment.css' import React from 'react' import PropTypes from 'prop-types' import {Container, Header, Icon, Segment, Statistic} from 'semantic-ui-react' const mapStatistics = (statistic, key) => { const {color, topLabel, val...
FloatRatingView.js
ymmuse/react-native-float-rating-view
/* * @flow * @providesModule react-native-float-rating-view */ 'use strict'; import React from 'react' import ReactNative, {UIManager, View, requireNativeComponent, Image, resolveAssetSource} from 'react-native' var RCTFloatRatingView = requireNativeComponent('RCTFloatRatingView', null) const PropTypes = requir...
packages/core/admin/admin/src/content-manager/components/DynamicComponentCard/index.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import Wrapper from './Wrapper'; const DynamicComponentCard = ({ children, componentUid, friendlyName, icon, onClick }) => { return ( <Wrapper onClick={e => { e.preventDe...
Libraries/Components/MapView/MapView.js
CodeLinkIO/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
js/src/dapps/tokenreg/Inputs/Text/container.js
nipunn1313/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
admin/client/App/screens/List/components/Filtering/ListFiltersAddForm.js
jacargentina/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import Popout from '../../../../shared/Popout'; import { Filters } from 'FieldTypes'; var ListFiltersAddForm = React.createClass({ propTypes: { field: React.PropTypes.object.isRequired, maxHeight: React.PropTypes.number, onApply: React.PropTypes.func...
app/containers/HomePage/index.js
iPhaeton/todo-list
/* * 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 necessity for you then you can refactor it and remove * the l...
src/components/Goodyear/Years.js
Hypnosphi/goodyear-react
import React, { Component } from 'react'; import { calHeight, yearLength, yearHeight, linear } from './consts'; import moment from 'moment'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Goodyear.scss'; import cx from 'classnames'; let scrollTO; class Years extends Component { co...
src/docs/Example.js
alexcondorachi/ps-react-alexc
import React from 'react'; import PropTypes from 'prop-types'; import CodeExample from './CodeExample'; class Example extends React.Component { constructor(props) { super(props); this.state = { showCode: false }; } toggleCode = event => { event.preventDefault(); this.setState(prevState => { ...
plugins/Hosting/js/components/header.js
NebulousLabs/Sia-UI
import React from 'react' import BigNumber from 'bignumber.js' import WarningBar from './warningbar.js' import HostStatus from './hoststatus.js' const Header = ({ numContracts, earned, expected, walletsize, walletLocked, workingstatus, connectabilitystatus }) => ( <header className='header'> <div c...
src/imports/ui/builder/components/product/ProductVariationSelect.js
hwillson/meteor-recommendation-builder
import React from 'react'; import { FormGroup, FormControl } from 'react-bootstrap'; import products from '../../../../api/products/collection'; const ProductVariationSelect = ({ product }) => ( <FormGroup className="product-variation-select"> <FormControl componentClass="select" onChange={(event) =...
ajax/libs/webshim/1.15.0-RC1/dev/shims/moxie/js/moxie-html4.js
wenzhixin/cdnjs
/** * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill * v1.2.1 * * Copyright 2013, Moxiecode Systems AB * Released under GPL License. * * License: http://www.plupload.com/license * Contributing: http://www.plupload.com/contributing * * Date: 2014-05-14 */ /** * Compiled inline version. (Library ...
src/components/__tests__/NavMenu-test.js
fkasper/sitrep-frontend
import React from 'react'; // import ReactDOM from 'react-dom'; import {renderIntoDocument} from 'react-addons-test-utils'; import { expect} from 'chai'; import { NavMenu } from 'components'; import { Provider } from 'react-redux'; import {reduxReactRouter} from 'redux-router'; import createHistory from 'history/lib/cr...
curator-web/src/js/components/frame/header.js
rajeshnaroth/curator
import React from 'react' import { Link } from 'react-router' const Header = () => ( <nav className="navbar navbar-default navbar-fixed-top"> <section className="userMenu"> <li><Link to='/curate'><span>Curate</span></Link></li> </section> <Link to='/'><h1>Tube2Flix</h1></Link> ...