path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
source/components/FilterBar.js
mikey1384/twin-kle
import React from 'react'; import PropTypes from 'prop-types'; import { borderRadius, Color, mobileMaxWidth } from 'constants/css'; import { css } from 'emotion'; import { connect } from 'react-redux'; FilterBar.propTypes = { children: PropTypes.node, className: PropTypes.string, color: PropTypes.string, borde...
src/CollapsibleMixin.js
albertojacini/react-bootstrap
import React from 'react'; import TransitionEvents from './utils/TransitionEvents'; import deprecationWarning from './utils/deprecationWarning'; const CollapsibleMixin = { propTypes: { defaultExpanded: React.PropTypes.bool, expanded: React.PropTypes.bool }, getInitialState() { const defaultExpanded...
src/svg-icons/toggle/star-half.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStarHalf = (props) => ( <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15....
node_modules/react-icons/fa/vine.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaVine = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m36.4 18.5v4.4q-2.2 0.5-4.4 0.5-1.5 3-3.7 6t-4 4.9-2.9 2.3q-1.8 1-3.6 0-0.6-0.4-1.4-1t-1.9-1.9-2.3-2.8-2.4-4.1-2.3-5.5-2.1-7-1.5-8.7h6.3q0.6 4.8 1.6 8.9t2.3 7.1 2.7 5.2 ...
src/svg-icons/action/add-shopping-cart.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAddShoppingCart = (props) => ( <SvgIcon {...props}> <path d="M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-...
ajax/libs/reactive-coffee/1.2.0/reactive-coffee.min.js
Assalaam/cdnjs
(function(){var a,b=[].slice,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a};a=function(a,c){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V...
ajax/libs/clappr/0.0.3/clappr.js
dryajov/cdnjs
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]...
react/features/app/components/App.web.js
bgrozev/jitsi-meet
// @flow import { AtlasKitThemeProvider } from '@atlaskit/theme'; import React from 'react'; import { DialogContainer } from '../../base/dialog'; import { ChromeExtensionBanner } from '../../chrome-extension-banner'; import '../../base/user-interaction'; import '../../chat'; import '../../external-api'; import '../.....
definitions/npm/react-image-crop_v4.x.x/test_react-image-crop_v4.x.x.js
doberkofler/flow-typed
import { describe, it } from 'flow-typed-test'; import React from 'react'; import ImageCrop, { makeAspectCrop, containCrop, getPixelCrop } from 'react-image-crop'; describe('react-image-crop', () => { const noop = () => {}; const percentCrop = { x: 0, y: 0, width: 100, height: 100 }; const aspectCrop = { ...pe...
ajax/libs/react/0.10.0/JSXTransformer.js
nagyist/OpenF2-cdnjs
/** * JSXTransformer v0.10.0 */ !function(e){if("object"==typeof exports)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=e()}}(function(){var define,module,...
client/modules/Request/pages/ManageAuthenticationPage.js
jeojoe/emplist
import React, { Component } from 'react'; import { withRouter } from 'react-router'; import callApi from '../../../util/apiCaller'; import { setToken } from '../../Admin/authToken'; import sListDetailPage from '../../List/pages/ListDetailPage.css'; import { LoaderWithText } from '../../App/components/Loader'; class Ma...
public/docs/api/latest/@stdlib/blas/ext/base/gapx/benchmark_bundle.js
stdlib-js/www
// modules are defined as an array // [ module function, map of requireuires ] // // map of requireuires is short require name -> numeric require // // anything defined in a previous bundle is accessed via the // orig method which is the requireuire for previous bundles (function outer (modules, cache, entry) { //...
src/js/components/manifest.js
campinas-front-end/institucional
'use strict' import React from 'react' export default () => ( <section className='section' id='manifest'> <header className='page-header'> <h3 className='title'>Manifesto</h3> </header> <article> <p> Nosso objetivo é aumentar e fortalecer a comunidade de desenvolvedores web de Campin...
modules/__tests__/Router-test.js
AnSavvides/react-router
/*eslint-env mocha */ /*eslint react/prop-types: 0*/ import expect from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import Router from '../Router' import Route from '../Route' describe('Router', function () { let node beforeEach(function () { node = document....
admin/static/js/2.6d3aaff5.chunk.js
ioBroker/ioBroker.web
/*! For license information please see 2.6d3aaff5.chunk.js.LICENSE.txt */ (this["webpackJsonpweb-admin"]=this["webpackJsonpweb-admin"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(222)},function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=ar...
src/components/PillowModal.js
andresilveira/stendebach_pillows
import React from 'react'; import ReactModal from 'react-modal'; import loading from '../assets/loading.gif'; import '../bootstrap.min.css'; const PillowModal = ({ showModal, onCloseModalClick, pillow }) => ( <ReactModal isOpen={showModal} contentLabel="Mein perfektes kissen"> <button className='btn btn-outli...
wrappers/yaml.js
lukevance/personal_site
import React from 'react' import yaml from 'js-yaml' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> <h1>{data.title}</h1> <p>Raw view of yaml file</p> ...
js/vendor/jquery-1.10.2.min.js
Jooordan/track-project
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
ajax/libs/material-ui/5.0.0-alpha.9/withWidth/withWidth.min.js
cdnjs/cdnjs
"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.isWidthDown=exports.isWidthUp=void 0;var _extends2=_interopRequi...
admin/client/components/ImageSelector.js
nickhsine/keystone
'use strict'; import { Button, Modal, Pagination } from 'elemental'; import { parseImageAPIResponse } from '../../../lib/parseAPIResponse'; import ImagesEditor from './ImagesEditor'; import ImageSelection from './ImageSelection'; import SelectorMixin from './mixins/SelectorMixin'; import React from 'react'; import merg...
app/javascript/mastodon/features/direct_timeline/components/conversations_list.js
yukimochi/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ConversationContainer from '../containers/conversation_container'; import ScrollableList from '../../../components/scroll...
packages/material-ui-icons/src/HdOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <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-2zm0 16H5V5h14v14zM7.5 13h2v2H11V9H9.5v2.5h-2V9H6v6h1.5zM18 14v-4c0-.55-.45-1-1-1h-4v6h4c.55 0 1-.45 1-1zm-1.5-.5h-2v-3h2v3z...
common/static/js/vendor/pdfjs/viewer.js
angelapper/edx-platform
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* Copyright 2012 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licen...
node_modules/material-ui/svg-icons/av/playlist-add-check.js
andrycodestuffs/atom-sync-packages
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
services/ui/src/components/AddTask/components/DrushRsyncFiles.js
amazeeio/lagoon
import React from 'react'; import { Mutation } from 'react-apollo'; import gql from 'graphql-tag'; import ReactSelect from 'react-select'; import Button from 'components/Button'; import withLogic from 'components/AddTask/components/logic'; import { bp, color, fontSize } from 'lib/variables'; const taskDrushRsyncFiles ...
src/backup/components/List.js
zzzzail/order-system-front-end-demo
import React from 'react'; import {connect} from 'react-redux'; const List = ({name, text}) => { return ( <div className="list"> <div>{name}</div> <div>{text}</div> </div> ) } export default connect()(List)
src/routes/dashboard/components/comments.js
zhouchao0924/SLCOPY
import React from 'react' import PropTypes from 'prop-types' import { Table, Tag } from 'antd' import styles from './comments.less' import { color } from '../../../utils' const status = { 1: { color: color.green, text: 'APPROVED', }, 2: { color: color.yellow, text: 'PENDING', }, 3: { colo...
ajax/libs/6to5/2.4.6/browser-polyfill.js
rlugojr/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/iCheck/1.0.1/demo/js/jquery.js
chrillep/cdnjs
/*! * jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:...
ajax/libs/js-data/1.0.0-alpha.5-2/js-data.js
pcarrier/cdnjs
/** * @author Jason Dobry <jason.dobry@gmail.com> * @file js-data.js * @version 1.0.0-alpha.5-2 - Homepage <http://www.js-data.io/> * @copyright (c) 2014 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Data store. */ !function(e){if("object"==typeof exports&&"undefined...
modules/RoutingContext.js
clloyd/react-router
import React from 'react' import invariant from 'invariant' import getRouteParams from './getRouteParams' const { array, func, object } = React.PropTypes /** * A <RoutingContext> renders the component tree for a given router state * and sets the history object and the current location in context. */ const RoutingC...
node_modules/react-icons/io/social-pinterest-outline.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoSocialPinterestOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m17.5 2.5c9.7 0 17.5 7.8 17.5 17.5s-7.8 17.5-17.5 17.5-17.5-7.8-17.5-17.5 7.8-17.5 17.5-17.5z m10.6 28.1c2.8-2.8 4.4-6.6 4.4-10.6s-1.6-7.8-4.4-10.6-6.6...
client/src/components/common/Header.js
natalie-elizabeth/doczy
import React from 'react'; import { Link } from 'react-router-dom'; class LoggedInView extends React.Component { constructor(props) { super(props); this.logout = this.logout.bind(this); } logout() { window.localStorage.removeItem('token'); this.context.router.history.push('/'); }; render()...
src/svg-icons/action/search.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSearch = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1...
user_guide/searchindex.js
JuHonggang/Server
Search.setIndex({envversion:42,terms:{represent:[25,114,13,78],mybackup:74,yellow:[6,128],poorli:90,four:[148,86,52,134,53,124,120,129,123],prefix:[93,2,86],oldest:129,hate:130,optimize_databas:74,consider:[52,29],whose:29,accur:[0,29,113,150,40,92],aug:90,my_control:[100,109],site_url:[80,95,21,7,29],illustr:[132,95,1...
ajax/libs/zxcvbn/4.1.0/zxcvbn.js
redmunds/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.zxcvbn = f()}}...
src/routes/Login/components/Register.js
SHBailey/echo-mvp
import React from 'react' import classes from './Register.scss' export const Register = () => ( <div> <form> <div> <label for="name"> User Name: </label> <input type="text" placeholder="Pick a User Name"/> </div> <div> <label for="mail">E-mail:</label> <input type="email" id=...
doc/src/pages/examples/extend-editor.js
mapillary/mapillary-js
/** * 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 */ import React from 'react'; import Layout from '@theme/Layout'; import {Code} from '../../js/components/Code'; import...
Libraries/Components/TextInput/TextInput.js
Guardiannw/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...
src/svg-icons/action/important-devices.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionImportantDevices = (props) => ( <SvgIcon {...props}> <path d="M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1....
ajax/libs/react/0.12.0/react.min.js
yogeshsaroya/cdnjs
/** * React v0.12.0 * * Copyright 2013-2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. *...
docs/src/pages/styles/basics/AdaptingHOC.js
kybarg/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/styles'; import Button from '@material-ui/core/Button'; const styles = { root: { background: props => props.color === 'red' ? 'linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)' : 'linear-...
src/spicy-datatable/components/DatatableSearchBar.js
filipdanic/spicy-datatable
/** * @fileoverview DatatableSearchBar.js * Pure component that renders a search field for the table. */ import React from 'react'; import { DatatableSearchBarPropTypes } from '../PropTypes.js'; const DatatableSearchBar = ({ label, onChange, value, placeholder }) => <div className="spicy-datatableoptions-search"...
Public/Wap/css/store/js/jquery.min.js
fuhongliang/2015weitonghui
/*! jQuery v1.7.2 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde...
examples/src/Footer/Footer.js
mrcodemonkey/react-autosuggest
require('./Footer.less'); import React, { Component } from 'react'; export default class Footer extends Component { render() { return ( <div className="footer"> <img src="https://gravatar.com/avatar/e56de06f4b56f6f06e4a9a271ed57e26?s=32" alt="Misha Moroshko" /> <span> ...
docs/src/pages/getting-started/page-layout-examples/dashboard/Title.js
allanalexandre/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import Typography from '@material-ui/core/Typography'; export default function Title(props) { return ( <Typography component="h2" variant="h6" color="primary" gutterBottom> {props.children} </Typography> ); } Title.propTypes = { childr...
js/jquery.js
birdcheng/example
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
lib/yuilib/3.17.2/scrollview-base/scrollview-base.js
andreyamin/moodlebites-dev-course
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview *...
src/components/Byline/index.js
andywillis/uws
// Dependencies import React from 'react'; import PropTypes from 'prop-types'; // React import Keyword from '../Keyword'; // Style import './style.css'; function getByline(type, value) { if (value) { return ( <div className="Byline"> Arranged by {type} <Keyword keyword={value} /> <...
src/shared/components/change_password.js
foundersandcoders/sail-back
import React from 'react' import { reduxForm } from 'redux-form' import ChangePasswordForm from './change_password_form.js' export default ({ changed_password, update_password }) => <ChangePasswordReduxForm onSubmit={update_password} changedPassword={changed_password} /> const validate = values => { co...
webpack.client.js
brysgo/react-transmit
var webpack = require("webpack"); var path = require("path"); module.exports = { target: "web", cache: false, context: __dirname, devtool: false, entry: ["./src/example"], output: { path: path.join(__dirname, "static/dist"), filename: "client.js", chunkFilename: "[name].[id].js", publ...
ajax/libs/yui/3.17.2/scrollview-base/scrollview-base-debug.js
robfletcher/cdnjs
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview *...
docs/src/pages/premium-themes/onepirate/SignUp.js
lgollut/material-ui
import withRoot from './modules/withRoot'; // --- Post bootstrap ----- import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import Link from '@material-ui/core/Link'; import { Field, Form, FormSpy } from 'react-final-form'; import Typography from '...
manager/src/components/common/Input.js
victorditadi/IQApp
import React, { Component } from 'react'; import { TextInput, View, Text } from 'react-native'; const Input = ({ label, value, onChangeText, placeholder, secure }) => { const { inputStyle, labelStyle, containerStyle } = styles; return ( <View style={containerStyle}> <Text style={labelStyle}>{label}</Te...
app/javascript/mastodon/features/ui/util/react_router_helpers.js
blackle/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import ColumnLoading from '../components/column_loading'; import BundleColumnError from '../components/bundle_column_error'; import BundleContainer from '../containers/bundle_container'; // Small wrapper t...
app/hybrid/app.js
Princess310/antd-demo
// Needed for redux-saga es6 generator support import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; // Import root app import App from 'hybrid/containers/App'; import 'sanitize.css/sanitize.css'; // Import fast click import FastClick from 'assets/lib/fastclick'; // Load the favic...
src/components/Navigation/Navigation.js
tlin108/chaf
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import cx from 'classnames';...
src/store.js
nigel-sirisomphone/narwhal
/** * @param {Function} * @param {*} * @return {Object} */ export default function (initialState, actionHandler) { let state let listeners = [] // halt if actionHandler isn't a function if (typeof actionHandler !== 'function') throw new Error( 'Expected action handler to be a function' ) // chec...
src/routes.js
oliver-jk-redding/mywebsite
import React from 'react' import {Router, Route, browserHistory} from 'react-router' import Home from './components/Home' import Resume from './components/Resume' export default ( <Router history={browserHistory}> <Route path='/' component={Home} /> <Route path='/resume' component={Resume} /> </Router> )
ajax/libs/analytics.js/2.3.22/analytics.js
shallaa/cdnjs
(function outer(modules, cache, entries){ /** * Global */ var global = (function(){ return this; })(); /** * Require `name`. * * @param {String} name * @param {Boolean} jumped * @api public */ function require(name, jumped){ if (cache[name]) return cache[name].exports; if (mo...
src/components/skins.js
MarcoPolo/emoji-mart
import React from 'react' export default class Skins extends React.Component { constructor(props) { super(props) this.state = { opened: false, } } handleClick(skin) { var { onChange } = this.props if (!this.state.opened) { this.setState({ opened: true }) } else { onCh...
src/js/containers/Login.js
soundchain/soundchain-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { replace } from 'react-router-redux'; //import { loginContainerSelector } from 'selectors'; // for nextPathname /* import Loader from 'components/Loa...
app/components/Header/index.js
Princess310/onehower-frontend
/** * * Header * */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import UserCard from 'containers/UserCard'; import Drawer from 'material-ui/Drawer'; import MenuHeader from './MenuHeader'; import messages from './messages'; class Header extends React.PureComponent { // eslint-disable-lin...
packages/kickoff-scripts/fixtures/kitchensink/src/features/syntax/Generators.js
TryKickoff/create-kickoff-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function* load(limit) { let i = 1; while (i <= limit)...
ajax/libs/vue-smart-table/2.6.0-beta4/vue-smart-table.js
brix/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("Vue")); else if(typeof define === 'function' && define.amd) define(["Vue"], factory); else if(typeof exports === 'object') exports["SmartTable"] = factory(...
examples/with-custom-babel-config/src/server.js
jaredpalmer/razzle
import { StaticRouter } from 'react-router-dom'; import App from './App'; import React from 'react'; import express from 'express'; import { renderToString } from 'react-dom/server'; const assets = require(process.env.RAZZLE_ASSETS_MANIFEST); const cssLinksFromAssets = (assets, entrypoint) => { return assets[entry...
client/modules/core/components/.stories/navigation.js
hacksong2016/angel
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import Navigation from '../navigation'; storiesOf('core.Navigation', module) .add('default view', () => { return ( <Navigation /> ); });
src/pages/Home.js
mianuddin/GPA-Goal-Graph
import React from 'react'; import HomeFormContainer from '../components/HomeFormContainer'; import { Card, CardMedia, CardTitle, CardText } from 'material-ui'; import '../styles/partials/_Home'; const Home = () => ( <div> <div className="row"> <div className="col-xs-12"> <Card> <CardMed...
test/specs/addons/TextArea-test.js
clemensw/stardust
import React from 'react' import TextArea from 'src/addons/TextArea/TextArea' import { sandbox } from 'test/utils' import * as common from '../commonTests' // ---------------------------------------- // Wrapper // ---------------------------------------- // we need to unmount the dropdown after every test to ensure a...
ajax/libs/extjs/4.2.1/src/form/field/ComboBox.js
SirenHound/cdnjs
/* This file is part of Ext JS 4.2 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in...
packages/material-ui-icons/src/ChevronLeftSharp.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="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z" /></React.Fragment> , 'ChevronLeftSharp');
src/components/views/elements/RoomDirectoryButton.js
aperezdc/matrix-react-sdk
/* Copyright 2017 Vector Creations Ltd 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 in writing, sof...
packages/ringcentral-widgets-docs/src/app/pages/Components/FormattedMessage/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
app/javascript/mastodon/features/compose/containers/upload_form_container.js
abcang/mastodon
import { connect } from 'react-redux'; import UploadForm from '../components/upload_form'; const mapStateToProps = state => ({ mediaIds: state.getIn(['compose', 'media_attachments']).map(item => item.get('id')), }); export default connect(mapStateToProps)(UploadForm);
app/containers/LanguageProvider/index.js
FlorianVoct/monPropreMix
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
app/tests/components/MainSection-test.js
ayumiknight/react-webpack-node
import React from 'react'; import ReactTestUtils from 'react-addons-test-utils'; import expect from 'expect'; import { wrap } from 'react-stateless-wrapper'; import MainSection from 'components/MainSection'; import TopicItem from 'components/TopicItem'; const WrappedMainSection = wrap(MainSection); describe('MainSect...
src/components/Section.js
irla/react-cv
// @flow import React from 'react'; import { Label } from 'reactstrap'; import '../styles/sections.scss'; type Props = { className?: string, anchor?: string, smallInfo?: string, title: string, info?: string, children: any }; const Section = (props: Props) => { let className = 'section'; if (props.clas...
js/router.js
donbonifacio/flux-playground
'use strict'; var ReactRouter = require('react-router'); var HistoryLocation = ReactRouter.HistoryLocation; var HashLocation = ReactRouter.HashLocation; var routes = require('./routes'); var router = ReactRouter.create({ location: process.env.NODE_ENV === 'production' ? HashLocation : HistoryLocation, routes: rou...
index.android.js
quickresolve/CycleTheBay
/** * Sample React Native App * https://github.com/facebook/react-native */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class CycleTheBay extends Component { render() { return ( <View style={styles.container}> <Text style...
src/components/SuccessView.js
dggriffin/MPSOhhh
require('styles/Success.css'); import React from 'react'; class SuccessView extends React.Component { render() { return ( <div className='success-main'> <div style={{textAlign: 'center'}}> Success! </div> </div> ); } } SuccessView.defaultProps = { };...
src/components/chips/Chip.js
isogon/material-components
import { compose, setPropTypes, setDisplayName } from 'recompose' import PropTypes from 'prop-types' import React from 'react' import { Icon } from '../icons' import { ChipStyle, ChipText, ChipAction } from './Chip.style' import { proxyStyledStatics } from '../../hocs' import ChipContact from './ChipContact' export c...
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> ); } }
exercise-0/client-conference-schedule/src/routes.js
nanovazquez/nodeconf-isomorphic-workshop
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Home from './containers/Home'; import Details from './containers/Details'; const routes = ( <Route path="/"> <IndexRoute component={Home}/> <Route path="/users/:twitter" component={Details} /> </Route> ); export default ro...
gulpfile.js
oluckyman/react-select
var gulp = require('gulp'); var initGulpTasks = require('react-component-gulp-tasks'); var taskConfig = { component: { name: 'Select', less: { path: 'less', entry: 'default.less' } }, example: { src: 'examples/src', dist: 'examples/dist', standalone: true, files: [ 'index.html', 'standal...
public/javascripts/jquery-validation/lib/jquery-1.5.js
uniteddiversity/noosfero
/*! * jQuery JavaScript Library v1.5 * 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. *...
modules/RouterContextMixin.js
sleexyz/react-router
import React from 'react'; import invariant from 'invariant'; import { stripLeadingSlashes, stringifyQuery } from './URLUtils'; var { func, object } = React.PropTypes; function pathnameIsActive(pathname, activePathname) { if (stripLeadingSlashes(activePathname).indexOf(stripLeadingSlashes(pathname)) === 0) retu...
example/app.js
ericsoco/react-leaflet
import React from 'react'; import { render } from 'react-dom'; import SimpleExample from './simple'; import EventsExample from './events'; import BoundsExample from './bounds'; import VectorLayersExample from './vector-layers'; import OtherLayersExample from './other-layers'; const examples = ( <div> <h1>React-...
src/shared/components/Humburger/index.js
AlekseyWW/shop-react-ssr
import React from 'react'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import style from './styles.styl'; const Humburger = ({ isMenuOpen, onClick }) => { const blockClass = classNames([style.Humburger, isMenuOpen ? style.Humburger_open : 'sss']); return ( <div className={blockClass} o...
js/components/AppNavigator/TabNavigator.js
c-h-/universal-native-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; import { TabRouter, } from 'react-navigation'; import AppFrame from './AppFrame'; export default (tabRoutes, options) => { const Router = TabRouter(tabRoutes, options); const AppNavigator = ({ navigation }) => { return ( <AppFrame ...
stories/examples/CardImageCaps.js
reactstrap/reactstrap
import React from 'react'; import { Card, CardBody, Button, CardTitle, CardText, CardImg } from 'reactstrap'; const Example = (props) => { return ( <div> <Card> <CardImg top width="100%" src="https://picsum.photos/318/180" alt="Card image cap" /> <CardBody> <CardTitle tag="h5">Car...
site/pages/renderers/__samples__/wrap-react.js
chrisdarroch/skatejs
// @jsx React.createElement import { props, withComponent } from 'skatejs'; import { wrap } from '@skatejs/renderer-react'; import React from 'react'; class HelloReact extends React.Component { render() { return <span>Hello, {this.props.name}!</span>; } } class WrapReact extends withComponent(wrap(HelloReact...
src/entypo/RemoveUser.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--RemoveUser'; let EntypoRemoveUser = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M15.989,19.129c0-2.246-2.187-3.389-4.317-4.307c-2.123-0.914-2.801-1.684-2.801-3.334c0-0.989,0...
src/components/Container.js
carlyleec/cc-react
import React from 'react'; // eslint-disable-line import styled from 'styled-components'; const Container = styled.div` display: flex; flex-basis: 90%; flex-wrap: wrap; justify-content: center; align-items: center; `; export default Container;
ajax/libs/zeroclipboard/2.0.0-beta.8/ZeroClipboard.js
cloudrifles/cdnjs
/*! * ZeroClipboard * The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface. * Copyright (c) 2014 Jon Rohan, James M. Greene * Licensed MIT * http://zeroclipboard.org/ * v2.0.0-beta.8 */ (function(window, undefined) { "use s...
collect-webapp/frontend/src/datamanagement/components/recordeditor/fields/TaxonField/TaxonField.js
openforis/collect
import './TaxonField.scss' import React from 'react' import { connect } from 'react-redux' import { TaxonAttributeDefinition } from 'model/Survey' import Arrays from 'utils/Arrays' import Objects from 'utils/Objects' import L from 'utils/Labels' import Languages from 'utils/Languages' import Autocomplete from 'comm...
examples/ChartsExplorer/components/Bubble.js
Jpadilla1/react-native-ios-charts
import React, { Component } from 'react'; import { StyleSheet } from 'react-native'; import { BubbleChart } from 'react-native-ios-charts'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'stretch', backgroundColor: 'transparent' } }); export default...
ajax/libs/jquery/1.11.1-rc2/jquery.js
tonytlwu/cdnjs
/*! * jQuery JavaScript Library v1.11.1-rc2 * 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-04-21T20:58Z */ (function( global, factory ) { ...
ajax/libs/jquery.fancytree/2.9.0/jquery.fancytree-all.js
him2him2/cdnjs
/*! * jquery.fancytree.js * Dynamic tree view control, with support for lazy loading of branches. * https://github.com/mar10/fancytree/ * * Copyright (c) 2008-2015, Martin Wendt (http://wwWendt.de) * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * * @version 2.9.0 * @dat...
src/app/component/toast-layout/toast-layout.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import ToastLayout from '.' import Toast from '../toast' storiesOf('ToastLayout', module).add('default', () => ( <ToastLayout toast={<Toast>Default Toast</Toast>}> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor...
EPI/assets/e35597e2/jquery.js
leo14/EPI_TESIS
/*! * 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(...