path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
src/svg-icons/notification/enhanced-encryption.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationEnhancedEncryption = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3....
src/client/components/work/CompareBooks/CompareBooks.component.js
DBCDK/content-first
import React from 'react'; import {some} from 'lodash'; import TruncateMarkup from 'react-truncate-markup'; import Text from '../../base/Text'; import Button from '../../base/Button'; import T from '../../base/T'; import Icon from '../../base/Icon'; import BookCover from '../../general/BookCover/BookCover.component';...
ajax/libs/yui/3.1.2/event-custom/event-custom.js
wil93/cdnjs
YUI.add('event-custom-base', function(Y) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module e...
[6]. Component/global_style/GlobalStyle.js
knightsj/RN_Demo
/** * 全局样式 * @flow */ import { Dimensions, } from 'react-native' const {height, width} = Dimensions.get('window'); //导出样式 module.exports ={ cellBottomLineStyle: { height: 0.4, opacity:0.5, backgroundColor: 'darkgray', }, cellSeperateLineStyle:{ backgroundColor: '#D...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch07/07_02/finish/src/index.js
yevheniyc/C
import React from 'react' import { render } from 'react-dom' // import routes from './routes' import MemberList from './components/ui/MemberList' window.React = React render( <MemberList />, document.getElementById('react-container'))
src/decorators/withViewport.js
danielxiaowxx/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
node_modules/react-router/es6/RoutingContext.js
jkahrs595/website
import React from 'react'; import RouterContext from './RouterContext'; import warning from './routerWarning'; var RoutingContext = React.createClass({ displayName: 'RoutingContext', componentWillMount: function componentWillMount() { process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has...
src/components/blog/blog-post.js
joefraley/ratticusscript
'use strict' import { createMarkup, getPost, nextPost } from '../../utilities' import Helmet from 'react-helmet' import Moment from 'moment' import { MoreButton } from './more-button' import React from 'react' export const BlogTags = ({ tags }) => { return <p>tagged: { tags }</p> } export const BlogPost = ({ params...
src/javascript/views/Draft/Index.js
temnoregg/redux-react-router-example-app
import React, { Component, PropTypes } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import AppBar from '../../containers/AppBar'; import { Paper, TextField, RaisedButton } from 'material-ui'; import * as BlogActions from '../../actions/BlogActions'; class Draft exten...
client/extensions/woocommerce/components/form-location-select/countries.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { localize } from 'i18n-calypso'; import { bindActionCreators } from 'redux'; /** * Internal dependencies */ import { areLocationsLoaded, get...
Paths/Jquery/04.jQuery Forms and Bootstrap 3/7-forms-m7-autocomplete-exercise-files/demos/forms-m7-autocomplete/packages/jQuery.1.9.1/Content/Scripts/jquery-1.9.1.min.js
phiratio/Pluralsight-materials
/*! 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){retur...
ajax/libs/react/0.11.0-rc1/JSXTransformer.js
neveldo/cdnjs
/** * JSXTransformer v0.11.0-rc1 */ !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.JSXTransformer=...
src/ListGroupItem.js
collinwu/react-bootstrap
import React, { cloneElement } from 'react'; import BootstrapMixin from './BootstrapMixin'; import classNames from 'classnames'; import SafeAnchor from './SafeAnchor'; const ListGroupItem = React.createClass({ mixins: [BootstrapMixin], propTypes: { bsStyle: React.PropTypes.oneOf(['danger', 'info', 'success', ...
app/store/configureStore.prod.js
caiizilaz/exchange-rate
// @flow import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import { createBrowserHistory } from 'history'; import { routerMiddleware } from 'react-router-redux'; import rootReducer from '../reducers'; import type { counterStateType } from '../reducers/counter'; const history = crea...
packages/material-ui-icons/src/MoneyOffSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12.5 6.9c1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-.39.08-.75.21-1.1.36l1.51 1.51c.32-.08.69-.13 1.09-.13zM5.47 3.92L4.06 5.33 7.5 8.77c0 2.08 1.56 3.22 3.91 3.91l3.51 3.51c...
website/src/AppFrame.js
kkamperschroer/react-navigation
import React from 'react'; import Link from './Link'; import Footer from './Footer'; import { addNavigationHelpers, } from 'react-navigation'; const NavigationLinks = ({navigation, className, reverse}) => { let links = [ ...navigation.state.routes.map((route, i) => { if (route.routeName === 'Home' || ro...
dist/assets/app.js
lingduzero/gallery-by-react
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="./assets/",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break...
ajax/libs/video.js/4.12.2/video.dev.js
tkirda/cdnjs
/** * @fileoverview Main function src. */ // HTML5 Shiv. Must be in <head> to support older browsers. document.createElement('video'); document.createElement('audio'); document.createElement('track'); /** * Doubles as the main function for users to create a player instance and also * the main library object. * ...
src/Toast.js
mattBlackDesign/react-materialize
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import Button from './Button'; class Toast extends Component { constructor (props) { super(props); this.onClick = this.onClick.bind(this); } render () { const { children, rounded } = this.prop...
project/react-ant-multi-pages/src/pages/index/containers/AssetProdMgmt/List/table.js
FFF-team/generator-earth
import React from 'react' import { Link } from 'react-router-dom' import { Table, Modal } from 'antd' import { CURRENT_PAGE, PAGE_SIZE, TOTAL } from 'ROOT_SOURCE/base/BaseConfig' import BaseContainer from 'ROOT_SOURCE/base/BaseContainer' const confirm = Modal.confirm export default class extends BaseContainer { ...
ajax/libs/forerunnerdb/1.3.22/fdb-core+views.min.js
hare1039/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...
ajax/libs/yui/3.3.0/simpleyui/simpleyui.js
arkaindas/cdnjs
/** * The YUI module contains the components required for building the YUI seed * file. This includes the script loading mechanism, a simple queue, and * the core utilities for the library. * @module yui * @submodule yui-base */ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** * The YUI global name...
ajax/libs/ember-data.js/1.0.0-beta.11/ember-data.js
ruslanas/cdnjs
(function(global){ var define, requireModule, require, requirejs; (function() { var _isArray; if (!Array.isArray) { _isArray = function (x) { return Object.prototype.toString.call(x) === "[object Array]"; }; } else { _isArray = Array.isArray; } var registry = {}, seen = {}, state = {}; ...
packages/material-ui-icons/src/MicOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z" /><path d="M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.9...
packages/zensroom/lib/components/admin/ReviewsDashboard.js
SachaG/Zensroom
/* Show a list of all reviews http://docs.vulcanjs.org/core-components.html#Datatable */ import React from 'react'; import { Components, registerComponent } from 'meteor/vulcan:core'; import compose from 'recompose/compose'; import { FormattedMessage } from 'meteor/vulcan:i18n'; import Reviews from '../../modules/...
ajax/libs/yui/3.9.1/event-custom-base/event-custom-base.js
masimakopoulos/cdnjs
YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @mo...
src/index.js
sunriseLix/gallery-by-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/components/tab3/addOptInfo.js
dfw-chris-diaz/react-demo
import React from 'react'; import { Glyphicon } from 'react-bootstrap'; export default class ADDOPTINFO extends React.Component { render() { return( <div> <br /> <a href="#" onClick={() => this.props.addRecord({})}><Glyphicon glyph="plus-sign" /></a> </div> ); } }
src/reactRedux/entries/reactRedux.js
JackZhangXL/react-redux
import React, { Component } from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import { createStore, applyMiddleware, compose } from 'redux'; import { createLogger } from 'redux-logger'; import { Provider } from 'react-redux'; // import Provider from '../lib/Provider'; im...
frontend/src/share/utils.js
cloudy9101/gpk_account
import $ from 'jquery'; import React from 'react'; import { isMobileView } from 'mdetect'; import { render as r } from 'react-dom'; import { showMessage } from '../actions'; export function parseErr(str) { let err; try { err = JSON.parse(str).errors[0]; } catch (e) { console.error(e); err = false; ...
anubis/ui/components/balloonpad/BalloonPadContainer.js
KawashiroNitori/Anubis
/** * Created by Nitori on 2017/3/26. */ import React from 'react'; import { connect } from 'react-redux'; import * as util from '../../misc/Util'; import i18n from '../../utils/i18n'; import BalloonPadListContainer from './BalloonPadListContainer'; const mapStateToProps = (state, ownProps) => ({ ...ownProps, ...
src/components/Console/Console.js
matthisk/es6console
import React, { Component } from 'react'; import { findDOMNode } from 'react-dom'; import { connect } from 'react-redux'; import * as actionCreators from 'store/ide'; import JSConsole from './jsconsole'; import './Console.scss'; const CTRL_KEY = 'Ctrl'; const HELP_TEXT = [ '`Welcome to the interactive ES6 console...
definitions/npm/react-navigation-stack_v1.x.x/test_react-navigation-stack.js
flowtype/flow-typed
// @flow import type { NavigationRoute, NavigationStackProp, } from 'react-navigation-stack'; import { createStackNavigator } from 'react-navigation-stack'; import React from 'react'; /** * Screens */ const FunctionalScreenComponent = ( { navigation }: {| navigation: NavigationStackProp<NavigationRoute> |},...
src/Video/Video.js
brz0/chart-suite
import React from 'react'; import Modal from 'react-modal'; // Svg import Play from './play.svg'; import Close from './close.svg'; import chartsHome from './chartshome.svg'; import VideoPhotoPath from './videobg.jpg'; const VideoPhoto = {backgroundImage: 'url(' + VideoPhotoPath + ')'} const customStyles = { overlay...
webpack/containers/Help.js
CDCgov/SDP-Vocabulary-Service
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { setSteps } from '../actions/tutorial_actions'; import { Button } from 'react-bootstrap'; import InfoModal from '../components/InfoModal'; class Help ...
05_react_redux_server/client/Routes.js
maximenajim/Universal-JavaScript-with-React-Node-and-Redux
import React from 'react'; import { Route } from 'react-router'; import App from './containers/App'; import Home from './containers/Home'; import About from './containers/About'; import User from './containers/User'; import NoMatch from './containers/NoMatch'; export default ( <Route component={App}> <Route path...
src/components/video_list.js
msfern/modern-react-udemy
import React from 'react'; import VideoListItem from './video_list_item'; const VideoList = (props) => { const videoItems = props.videos.map((video) => { return <VideoListItem key={video.etag} video={video}/> }); return ( <ul className="col-md-4 list-group"> {videoItems} ...
ajax/libs/material-ui/5.0.0-beta.5/legacy/Hidden/withWidth.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import * as React from 'react'; import PropTypes from 'prop-types'; import { getDisplayName } from '@material-ui/utils'; import { getThemeProps } from '@material-ui/syste...
assets/js/social.js
Subash/Sundar-Nepal
import React from 'react'; export default function() { return ( <div className="social"> <div className="fb-like" data-href="http://sundar-nepal.subash.me/" data-layout="standard" data-action="like" data-show-faces="false" data-share="true" /> </div...
ajax/libs/yui/3.14.0/event-focus/event-focus-coverage.js
ekeneijeoma/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/event-focus/event-focus.js']) { __coverage__['build/event-focus/event-focus.js'] = {"path":"build/event-focus/event-focus.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":0,"13":0,"14":0,"15":0,"...
src/components/pagination/Pagination/Pagination.js
CtrHellenicStudies/Commentary
import React from 'react'; // import PropTypes from 'prop-types'; import _ from 'underscore'; import { connect } from 'react-redux'; import PaginationButton from '../PaginationButton'; import './Pagination.css'; const Pagination = ({ limit, total, location, page }) => { let numPages = Math.ceil(total / limit); let...
js/components/sectionView.react.js
terry3/front_end_quiz
import React from 'react'; import { FeqActions } from '../actions/FeqActions'; import { FeqStore } from '../stores/FeqStore'; export default class SectionView extends React.Component { constructor(props) { super(props); this.state = this.getFeqSectionState(); } getFeqSectionState() { return { ...
ajax/libs/primereact/7.0.1/rating/rating.esm.min.js
cdnjs/cdnjs
import t,{Component as e}from"react";import{classNames as n}from"primereact/utils";import{tip as o}from"primereact/tooltip";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0...
stories/Dropdown/ExampleControlled.js
skyiea/wix-style-react
import React from 'react'; import Dropdown from 'wix-style-react/Dropdown'; const style = { display: 'inline-block', padding: '0 5px 0', width: '200px', lineHeight: '22px', marginBottom: '160px' }; const options = [ {id: 1, value: 'Option 1'}, {id: 2, value: 'Option 2'}, {id: 3, value: 'Option 3'}, ...
src/components/Link/index.js
iris-dni/iris-frontend
import React from 'react'; import { Link as RouterLink } from 'react-router'; import styles from './link.scss'; const createAttrs = (props) => ({ [props.external ? 'href' : 'to']: props.href || '#', className: props.className || styles[props.modifier || 'root'], onClick: props.onClick ? (e) => { e.preventD...
src/FormControlStatic.js
mmarcant/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import elementType from 'react-prop-types/lib/elementType'; import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils'; const propTypes = { componentClass: elementType, }; const defaultProps = { componentClass: 'p', }; class FormCo...
ajax/libs/yui/3.7.2/event-custom-base/event-custom-base.js
robinskumar73/cdnjs
YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @mo...
packages/core/admin/admin/src/pages/MarketplacePage/MarketplaceBanner/index.js
wistityhq/strapi
import React from 'react'; import { FormattedMessage, useIntl } from 'react-intl'; import { useTracking } from '@strapi/helper-plugin'; import Wrapper from './Wrapper'; import LogoStrapi from '../../../assets/images/banner_strapi-rocket.png'; const MarketplaceBanner = () => { const { formatMessage } = useIntl(); c...
src/components/MenuBar.js
Journey316/resume
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class MenuBar extends React.Component { constructor(props){ super(props); this.state = { selected : props.selected || 0 }; this.callHistory = this.callHistory.bind(this); } renderOverlay() { console.log(...
shared/jquery/jquery-1.4.2.min.js
BlakeLucchesi/chapterboard
/*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
examples/todos-with-undo/components/AddTodo.js
camsong/redux
import React, { Component, PropTypes } from 'react' export default class AddTodo extends Component { handleSubmit(e) { e.preventDefault() const node = this.refs.input const text = node.value.trim() if (text) { this.props.onAddSubmit(text) node.value = '' } } render() { return...
src/svg-icons/hardware/router.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareRouter = (props) => ( <SvgIcon {...props}> <path d="M20.2 5.9l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7zm-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6...
node_modules/react-icons/md/hourglass-empty.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdHourglassEmpty = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20 19.1l6.6-6.6v-5.9h-13.2v5.9z m6.6 8.4l-6.6-6.6-6.6 6.6v5.9h13.2v-5.9z m-16.6-24.1h20v10l-6.6 6.6 6.6 6.6v10h-20v-10l6.6-6.6-6.6-6.6v-10z"/></g> </Icon>...
src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/tests/jquery-1.6.3.js
simon66/brackets
/*! * jQuery JavaScript Library v1.6.3 * 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. ...
ajax/libs/monaco-editor/0.2.4/min/vs/editor/editor.main.nls.ko.js
jonobr1/cdnjs
/*!----------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.2.3(84e204b238a1eff25d4c6f611fdcd76a494005a7) * Released under the MIT license * https://github.com/Microsoft/vscode/blob/master/LICENSE.txt *-------------------------------------...
src/components/AppComponent.js
codevinsky/deep-ellum-jukebox-ui
require('styles/paper-theme.css'); require('styles/App.css'); import React from 'react'; import { TestComponent, Header, CurrentlyPlayingComponent, Navigation, Menu } from './index'; import _ from 'lodash'; import { Grid, Row, Col, Button, Glyphicon } from 'react-bootstrap'; class AppComponent extends React.Component ...
react-native-life/ReactNativeLife/js/Components/WebView/WebViewExample.js
CaMnter/front-end-life
/** * @author CaMnter */ import React from 'react'; import { StyleSheet, Text, TextInput, TouchableWithoutFeedback, TouchableOpacity, View, WebView, } from 'react-native'; let HEADER = '#3b5998'; let BGWASH = 'rgba(255,255,255,0.8)'; let DISABLED_WASH = 'rgba(255,255,255,0.25)'; let TEX...
views/status_line.js
toxic88/black-screen
import React from 'react'; export default React.createClass({ render() { return ( <div className="status-line"> <CurrentDirectory currentWorkingDirectory={this.props.currentWorkingDirectory}/> <VcsData data={this.props.vcsData}/> </div> ) ...
js/components/checkbox/index.js
YeisonGomez/RNAmanda
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Button, Icon, List, ListItem, CheckBox, Text, Left, Right, Body } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import styles from './styles'; class NHCheckbox extends...
playground/client/src/components/Nav/Nav.js
JHerrickII/NewsTree
import React, { Component } from 'react'; import { NavigationContainer, NavItem } from './Nav.style.js'; class NavigationBar extends Component { render() { return ( <NavigationContainer> <NavItem id="home">Home</NavItem> <NavItem id="about">About</NavItem> </NavigationContainer> )...
app/javascript/mastodon/features/standalone/public_timeline/index.js
theoria24/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { expandPublicTimeline, expandCommunityTimeline } from 'mastodon/actions/timelines'; import Masonry from 'react-masonry-infinite'; import { List as Imm...
ajax/libs/vkui/4.26.0/cssm/components/ChipsSelect/ChipsSelect.js
cdnjs/cdnjs
import _typeof from "@babel/runtime/helpers/typeof"; import _extends from "@babel/runtime/helpers/extends"; import _defineProperty from "@babel/runtime/helpers/defineProperty"; import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutPr...
test/EndToEnd/ProjectTemplates/JScriptVisualBasicLightSwitchProjectTemplate.zip/jquery-1.9.1.min.js
alluran/node.net
/*! jQuery v1.9.1 Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website’s terms of use; or (ii) using the files as included with a Microsoft product subject to that product’s license terms. Micro...
examples/src/components/CustomRender.js
glowka/react-select
import React from 'react'; import Select from 'react-select'; var DisabledUpsellOptions = React.createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: React.PropTypes.string, }, getInitialState () { return {}; }, setValue (value) { this.setState({ value }); console.log('Support level sel...
definitions/npm/react-css-modules_v3.x.x/flow_v0.32.x-v0.52.x/test_react-css-modules-v3.js
gaborsar/flow-typed
// @flow import React, { Component } from 'react'; import CSSModules from 'react-css-modules'; const styles = { test: '123' }; class ExampleModule extends Component { props: { foo: string, styles: typeof styles, }; render() { return <div className={this.props.styles}>{this.props.foo}</div>; } } ...
ajax/libs/cyclejs-dom/3.0.0/cycle-dom.js
hanbyul-here/cdnjs
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.CycleDOM = f()...
packages/create-react-app/index.js
emvu/create-react-app
#!/usr/bin/env node /** * 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 direc...
src/layouts/PrimaryLayout.js
algernon/mad-tooter
// @flow /* The Mad Tooter -- A Mastodon client * Copyright (C) 2017 Gergely Nagy * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your o...
client/utils/verifyToken.js
andela-jomadoye/JedDoc-Manager
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { addFlashMessage } from '../actions/flashMessages'; /** * This function verifies the token being used on the frontend * * @export * @param {ReactComponent} ComposedComponent * @returns {ReactComponent} ...
imports/ui/components/Loading.js
KyneSilverhide/expense-manager
import React from 'react'; const Loading = () => ( <div> <i className="fa fa-spinner fa-spin fa-5x fa-fw" /> </div> ); export default Loading;
scripts/apps/contacts/directives/ContactList.js
mugurrus/superdesk-client-core
/* eslint-disable react/no-render-return-value */ import React from 'react'; import ReactDOM from 'react-dom'; import {ItemList as ItemListComponent} from 'apps/contacts/components'; ContactList.$inject = [ '$timeout', '$filter', 'search', 'datetime', 'Keys', 'gettextCatalog', '$rootScope...
assets/drag-drop.js
letsgojuno/rxjs-tech-talk
import React from 'react'; import { Observable } from 'rxjs'; import { componentFromStream, createEventHandler } from 'recompose'; const DragDrop = componentFromStream(props$ => { const { handler: onDown, stream: mouseDown$ } = createEventHandler(); const { handler: onMove, stream: mouseMove$ } = createEventHandle...
app/javascript/mastodon/components/column.js
masto-donte-com-br/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { supportsPassiveEvents } from 'detect-passive-events'; import { scrollTop } from '../scroll'; export default class Column extends React.PureComponent { static propTypes = { children: PropTypes.node, label: PropTypes.string, bindToDoc...
test/CollapsibleMixinSpec.js
rapilabs/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import CollapsibleMixin from '../src/CollapsibleMixin'; import classNames from 'classnames'; describe('CollapsibleMixin', function () { let Component, instance; beforeEach(function(){ Component = React.createClass({ mixin...
packages/examples-counter-metareducer/src/containers/CounterApp.js
kastigar/borex
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; class CounterApp extends Component { render() { const { counter, dispatch } = this...
app/renderer/views/Header.js
blenoski/movie-night
import React from 'react' import styled from 'styled-components' import { ImportMovies, SearchMovies } from '../controller' import Logo from './Logo' export default () => <Header> <Logo /> <AppControls> <SearchMovies /> <ImportMovies /> </AppControls> </Header> const Header = styled.header...
src/svg-icons/toggle/star.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStar = (props) => ( <SvgIcon {...props}> <path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/> </SvgIcon> ); ToggleStar = pure(ToggleStar); ToggleStar.disp...
src/index.js
karki011/karki011.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import 'bootstrap/dist/css/bootstrap.min.css'; import './App.css' import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, ...
clients/packages/admin-client/src/mobrender/widgets/donations/component.js
nossas/bonde-client
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, intlShape, injectIntl } from 'react-intl'; import { FormGroup, ControlLabel, HelpBlock, FormControl, RadioGroup, Radio, } from '../../../components/forms'; import { SettingsForm } from '../../../ux/components'; import...
ajax/libs/react-native-web/0.0.0-b096cd2d/cjs/exports/createElement/index.js
cdnjs/cdnjs
"use strict"; exports.__esModule = true; exports.default = void 0; var _AccessibilityUtil = _interopRequireDefault(require("../../modules/AccessibilityUtil")); var _createDOMProps = _interopRequireDefault(require("../../modules/createDOMProps")); var _react = _interopRequireDefault(require("react")); function _int...
src/Merchello.Web.UI/Umbraco/Js/umbraco.controllers.js
Merchello/Merchello.Bazaar
/*! umbraco * https://github.com/umbraco/umbraco-cms/ * Copyright (c) 2016 Umbraco HQ; * Licensed */ (function() { /** * @ngdoc controller * @name Umbraco.MainController * @function * * @description * The main application controller * */ function MainController($scope, $rootScope, $location, ...
server/apps/views-handler.js
Mathieu-R/Portfolio
const path = require('path'); const fs = require('fs'); const express = require('express'); const app = express(); const adaro = require('adaro'); const iterateHelper = require('dustmotes-iterate'); const markdownHelper = require('dustjs-helpers-markdown'); const marked = require('marked'); const production = process....
ajax/libs/yui/3.3.0/loader/loader-base.js
bsquochoaidownloadfolders/cdnjs
YUI.add('loader-base', function(Y) { /** * The YUI loader core * @module loader * @submodule loader-base */ if (!YUI.Env[Y.version]) { (function() { var VERSION = Y.version, BUILD = '/build/', ROOT = VERSION + BUILD, CDN_BASE = Y.Env.base, GALLERY_VERSI...
third_party/react-dates/bundle.js
jmadler/amphtml
AMP.require=function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c='function'==typeof AMP.require&&AMP.require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error('Cannot find module \''+i+'\'');throw a.code='MODULE_NOT_FOUND',a;}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e...
js/components/Navbar/Navbar.react.js
ryantang333/dashboard-prototype
import React, { Component } from 'react'; import { connect } from 'react-redux'; const Sidebar = () => { return ( <div id="navbar"> Hello. </div> ); }; // Which props do we want to inject, given the global state? const select = (state) => ({ data: state }); // Wrap the component to inject dispatch a...
app/components/Sidebar.js
alexpell00/FRCUltimateManager
/* * @Author: alexpelletier * @Date: 2016-03-20 15:30:15 * @Last Modified by: alexpelletier * @Last Modified time: 2016-03-22 00:44:41 */ import React from 'react'; import { Router, Route, IndexRoute, Link, IndexLink, browserHistory } from 'react-router' const ACTIVE = { 'font-weight': 'bold' } var Sidebar = Rea...
tests/lib/rules/vars-on-top.js
ABaldwinHunter/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const rule = require(".....
packages/cf-component-checkbox/example/basic/component.js
koddsson/cf-ui
import React from 'react'; import { Checkbox, CheckboxGroup } from 'cf-component-checkbox'; class CheckboxComponent extends React.Component { constructor(props) { super(props); this.state = { checkbox1: true, checkbox2: false, checkboxValues: ['option1'] }; this.onCheckboxGroupChang...
src/svg-icons/navigation/arrow-drop-up.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropUp = (props) => ( <SvgIcon {...props}> <path d="M7 14l5-5 5 5z"/> </SvgIcon> ); NavigationArrowDropUp = pure(NavigationArrowDropUp); NavigationArrowDropUp.displayName = 'NavigationArrowDrop...
eitu/static/app/index.js
christianknu/eitu
import React from 'react' import App from './app' import thunkMiddleware from 'redux-thunk' import rootReducer from './reducers/rootReducer' import { render } from 'react-dom' import { Provider } from 'react-redux' import { createStore, applyMiddleware } from 'redux' import { Router, Route, IndexRoute, browserHistor...
src/docs/ComponentPage.js
thomashoggard/ps-react-tom
import React from 'react'; import PropTypes from 'prop-types'; import Example from './Example'; import Props from './Props'; const ComponentPage = ({component}) => { const {name, description, props, examples} = component; return ( <div className="componentpage"> <h2>{name}</h2> <p>{description}</p...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
Vyt45/webas
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
client/app/bundles/ToDo/components/page/sign_in.js
macbury/basket
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { reduxForm, Field } from 'redux-form'; import { renderTextField } from '../helpers/inputs'; import RaisedButton from 'material-ui/RaisedButton'; import signInStyles from './sign_in.scss'; import { signInAction } from '../../acti...
react/redux-start/react-redux-todos-review/src/containers/LinkFilter.js
kobeCan/practices
import React from 'react'; import Link from '../components/Link'; import { connect } from 'react-redux'; import { setFilter } from '../actions'; const mapStateToProps = (state, ownProps) => ({ active: state.visibilityFilter === ownProps.filter }); const mapDispatchToProps = (dispatch, ownProps) => ({ onClick: () =>...
docs/js/apache-maven-fluido-1.6.min.js
daverix/zxing
/*! * jQuery JavaScript Library v1.11.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-12-17T15:27Z */ (function(b,a){if(typeof module==="ob...
app/components/Home.js
migueloop/1streaction
import React from 'react'; import {Link} from 'react-router'; import HomeStore from '../stores/HomeStore' import HomeActions from '../actions/HomeActions'; import ShapesList from './ShapesList'; class Home extends React.Component { constructor(props) { super(props); this.state = HomeStore.getState(); thi...
test/integration/image-component/default/pages/layout-raw.js
azukaru/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <p>Layout Raw</p> <div id="image-container1"> <Image id="raw1" src="/wide.png" width="1200" height="700" layout="raw" loading="eager" ...
imports/ui/home/nav.js
dououFullstack/atomic
import React from 'react'; import { browserHistory } from 'react-router'; export default class FootBar extends React.Component { render() { return ( <div className="weui_tabbar"> <a href="javascript:;" className="weui_tabbar_item" onClick={()=> browserHistory.push('/')}> <div className=...
src/screens/Admin/index.js
nadavspi/react-bookshelf
import React from 'react'; import { Link } from 'react-router'; export default React.createClass({ propTypes: { children: React.PropTypes.object }, render () { return ( <div> <h1>Admin</h1> <nav> <Link to="/admin/bookshelf/add">Add a book</Link> </nav> {th...
examples/styled-components/src/my-command.js
weaintplastic/react-sketchapp
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components/primitives'; import { render } from 'react-sketchapp'; import chroma from 'chroma-js'; // take a hex and give us a nice text color to put over it const textColor = (hex) => { const vsWhite = chroma.contrast(hex, 'whi...