path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/AppBundle/Resources/static/jsx/app/Product.js
viszerale-therapie/simple-courses
import React from 'react'; import ReactDOM from 'react-dom'; import tl from '../util/translator'; import DataTable from '../util/DataTable'; import actions from '../util/actions'; import dataProduct from '../data/Product'; export default { init : function(data, meta) { ReactDOM.render( <div> <h1>{tl.t('prod...
node_modules/react-redux/src/components/connectAdvanced.js
maty21/statistisc
import hoistStatics from 'hoist-non-react-statics' import invariant from 'invariant' import { Component, PropTypes, createElement } from 'react' import Subscription from '../utils/Subscription' import storeShape from '../utils/storeShape' let hotReloadingVersion = 0 export default function connectAdvanced( /* s...
packages/react-interactions/accessibility/src/TabbableScope.js
chenglou/react
/** * 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. * * @flow */ import React from 'react'; const tabFocusableImpl = (type: string, props: Object): boolean => { if (props.tabIndex ...
src/wp_posts/excerpt.js
hideokamoto/sls-wordpress-frontend
import React from 'react' const PostExcerpt = (props) => { const content = props.children return ( <div className="post-description" dangerouslySetInnerHTML={{__html: content}} role="presentation" /> ) } module.exports = PostExcerpt
ajax/libs/reactive-coffee/0.0.1/reactive-coffee.js
artch/cdnjs
(function() { var DepArray, DepCell, DepMgr, Depmap, Ev, MappedDepArray, ObsArray, ObsCell, ObsMap, RawHtml, Recorder, SrcArray, SrcCell, SrcMap, bind, depMgr, ev, events, lagBind, mkMap, mktag, mkuid, nextUid, popKey, recorder, rx, rxt, specialAttrs, tag, tags, _fn, _i, _len, _ref, _ref1, _ref2, _ref3, __hasProp...
app/components/Home.js
wee911/polling_app_demo
/** * Created by apple on 5/22/16. */ import React from 'react'; class Home extends React.Component { render() { return ( <div className='alert alert-info'> Hello from Home Component </div> ); } } export default Home;
packages/material-ui-icons/src/CameraRearTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M7 16h10V2H7v14zm4.99-13c1.1 0 2 .9 2 2C14 6.1 13.1 7 12 7c-1.11 0-2-.9-2-2s.89-2 1.99-2z" opacity=".3" /><path d="M5 20v2h5v2l3-3-3-3v2zm9 0h5v2h-5zm5-18c0-1.1-.9-2-2-2H7C5.9 0 5 .9 5...
ajax/libs/algoliasearch.zendesk-hc/2.20.2/algoliasearch.zendesk-hc.min.js
joeyparrish/cdnjs
/*! * Algolia Search for Zendesk's Help Center v2.20.2 * https://github.com/algolia/algoliasearch-zendesk * Copyright 2017 Algolia <support@algolia.com>; Licensed MIT */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);els...
app/javascript/mastodon/features/explore/components/story.js
masto-donte-com-br/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Blurhash from 'mastodon/components/blurhash'; import { accountsCountRenderer } from 'mastodon/components/hashtag'; import ShortNumber from 'mastodon/components/short_number'; import Skeleton from 'mastodon/components/skeleton'; import classNames from...
examples/using-preact/pages/index.js
kevmannn/next.js
import React from 'react' import Link from 'next/link' export default () => ( <div>Hello World. <Link href='/about'><a>About</a></Link></div> )
node_modules/node-captcha/node_modules/canvas/node_modules/mocha/node_modules/jade/node_modules/markdown/node_modules/nopt/node_modules/abbrev/node_modules/tap/node_modules/signal-exit/node_modules/standard/node_modules/eslint/lib/eslint.js
wenjoy/homePage
/** * @fileoverview Main ESLint object. * @author Nicholas C. Zakas */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ var estraverse = require("estraverse-fb"), escop...
app/components/ResultMessage.js
natac13/Tic-Tac-Toe-Game
import React from 'react'; const ResultMessage = ({ message, value }) => { return ( <p className="result"> {message}: <span className="num">{value}</span></p> ) } export default ResultMessage;
frontend/components/dashboard/MenuLi.js
wpmg/wpcl_hd
import React from 'react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; const MenuLi = ({ menuItem, auth, location, depth }) => { const linkList = []; const itemAuth = typeof menuItem.auth === 'undefined' ? 100 : menuItem.auth; const itemUseA = menuItem.useA || false; const curr...
src/svg-icons/action/view-week.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewWeek = (props) => ( <SvgIcon {...props}> <path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.4...
tests/routes/Home/components/HomeView.spec.js
prescottprue/devshare-site
import React from 'react' import { Home } from 'routes/Home/components/Home' import { shallow } from 'enzyme' describe.skip('(Component) Home', () => { let _component beforeEach(() => { _component = shallow(<Home />) }) it('Renders devshare logo', () => { const logo = _component.find('img') expec...
src/textview/closetextbutton.js
ksanaforge/pannaloka
var React=require("react"); var CloseTextButton = React.createClass({ render : function() { return <span title="Ctrl+Q" className="closebutton" onClick={this.props.onClose}>×</span> } }); module.exports = CloseTextButton;
ajax/libs/clappr/0.0.2/clappr.light.js
TerryMooreII/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]...
src/components/cards/assets/card-tooltip.js
vFujin/HearthLounge
import React from 'react'; import PropTypes from 'prop-types'; import {uniqueCards} from "../../../utils/deck/calculate/index"; const CardTooltip = ({card, deck}) => { const cardRarity = card.rarity; let maxAmount = cardRarity !== "Legendary" ? 2 : 1; return ( <div className="tooltip-count"> <span> ...
src/js/components/icons/base/DocumentPerformance.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/Affix.js
pivotal-cf/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import AffixMixin from './AffixMixin'; const Affix = React.createClass({ mixins: [AffixMixin], render() { let holderStyle = { top: this.state.affixPositionTop, // we don't want to expose the `style` property ...this.props.style...
app/screens/App/components/Header/index.js
codejunkienick/starter-lapis
import React from 'react'; import { NavLink } from 'core'; import './index.css'; const Header = () => <div styleName="header"> <NavLink styleName="logo" to="/"> Starter Lapis </NavLink> </div>; export default Header;
docs/src/pages/customization/components/InlineStyle.js
lgollut/material-ui
import React from 'react'; import Button from '@material-ui/core/Button'; // We can use inline-style const style = { background: 'linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)', borderRadius: 3, border: 0, color: 'white', height: 48, padding: '0 30px', boxShadow: '0 3px 5px 2px rgba(255, 105, 135, .3)...
rojak-ui-web/src/app/home/SearchBox.js
bobbypriambodo/rojak
import React from 'react' import { connect } from 'react-redux' import { setKeyword } from '../root/actions' import Card from '../kit/Card'; import SearchForm from './SearchForm'; import SearchCategory from './SearchCategory' import styles from './search-box.css' import rojak from '../../assets/images/rojak-black.svg';...
src/routes.js
namelos/react-demo
import React from 'react'; import { IndexRoute, Router, Route, Link } from 'react-router'; import App from './containers/App'; import Home from './containers/Home'; import Es6 from './containers/Es6'; import Jsx from './containers/Jsx'; import Workflow from './containers/Workflow'; import Styles from './containers/Styl...
app/components/PropsRoute.js
DrPandemic/TwiolioRN
// @flow import React from 'react'; import { Route } from 'react-router-native'; const renderMergedProps = (component, ...rest) => { const finalProps = Object.assign({}, ...rest); return ( React.createElement(component, finalProps) ); }; export default ({ component, ...rest }) => ( <Route {...rest} render...
packages/material-ui-icons/src/PermMediaTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M13.17 6l-.59-.59L11.17 4H6v12h16V6h-8.83zm4.33 4.5L21 15H7l4.5-6 3.5 4.51 2.5-3.01z" opacity=".3" /><path d="M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2V6zm5 9h14l-3.5-4.5-2.5 3.01L11.5 9...
client/src/components/LandingPage.js
jferrettiboke/react-auth-app-example
import React from 'react'; export default () => ( <div className="container"> <div className="row"> <div className="col-md-12"> <h1>Welcome!</h1> <p>This is the landing page.</p> </div> </div> </div> );
examples/users/src/components/ContactNotFound/index.js
pure-ui/styleguide
import React from 'react'; const ContactNotFound = () => ( <div>Contact not found</div> ); ContactNotFound.propTypes = {}; export default ContactNotFound;
ajax/libs/forerunnerdb/1.3.457/fdb-core+persist.js
dannyxx001/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...
django_project/project_template/+project+/static/js/jquery.min.js
GISAElkartea/django-project
/*! jQuery v1.8.2 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d===...
src/routes/stats/index.js
ziedAb/PVMourakiboun
/** * 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 Layout from '../../co...
client/test/components/DocumentsGrid.spec.js
andela-iamao/iamdocuman
/* global expect:true global shallow:true global mount:true global configureMockStore:true global thunk:true global initialState:true global sinon:true */ import React from 'react';//eslint-disable-line import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import DocumentsGrid from '../../src/components...
ajax/libs/yui/3.7.1/simpleyui/simpleyui.js
ericelliott/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 * @main yui * @submodule yui-base */ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The YUI gl...
modules/jaggery-apps/api-store-web/src/site/themes/fancy/templates/utils/jQRangeSlider/lib/jquery-1.7.1.min.js
nuwanw/product-apim-2015-09-04
/*! jQuery v1.7.1 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde...
src/components/ui/Card.js
shwethadn/StarterApp
/** * Buttons * <Button text={'Server is down'} /> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import { Card } from 'react-native-elements'; // Consts and Libs import { AppSizes } from '@theme/'; /* Component ==============...
app/js/components/containers/usersList.js
pedromrb/react-babel-react-router-webpack-boilerplate
import React from 'react'; const UsersList = ({ users }) => { return ( <ul className='list'> { users.map(user => <li className='list-item' key={ user.id }> { user.name } </li>, )} </ul> ); }; export default UsersList;
app/javascript/mastodon/features/public_timeline/index.js
riku6460/chikuwagoddon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
src/components/Html.js
MarynaHapon/Data-root-react
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
node_modules/react-bootstrap/es/Image.js
firdiansyah/crud-req
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/components/ios/common/List.js
superRaytin/alipay-app-ui
'use strict'; import React, { Image, Text, TouchableHighlight, TouchableOpacity, View } from 'react-native'; const Icon = require('react-native-vector-icons/FontAwesome'); const List = React.createClass({ render() { const {styles} = this.props; const { data, onPress ...
ajax/libs/material-ui/4.9.2/esm/Menu/Menu.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import React from 'react'; import { isFragment } from 'react-is'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyle...
actor-apps/app-web/src/app/components/common/AvatarItem.react.js
gale320/actor-platform
import React from 'react'; import classNames from 'classnames'; class AvatarItem extends React.Component { static propTypes = { image: React.PropTypes.string, placeholder: React.PropTypes.string.isRequired, size: React.PropTypes.string, title: React.PropTypes.string.isRequired }; constructor(pro...
components/AboutContainer.js
flyingant/tedxguanggu.org
/** * Created by FlyingAnt on 3/23/16. */ import React from 'react' import { Link } from 'react-router' import { connect } from 'react-redux' import styles from '../less/main.less' import cn from 'classnames'; //component import Navigator from '../components/navigator/Navigator' class AboutContainer extends React....
ajax/libs/jquery/1.10.1/jquery.js
kevinsproles/cdnjs
/*! * jQuery JavaScript Library v1.10.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-05-30T21:49Z */ (function( window, undefined ) { // ...
src/components/Counter/Counter.js
dkwingsmt/aporeto-pokemongo
import React from 'react' import classes from './Counter.scss' export const Counter = (props) => ( <div> <h2 className={classes.counterContainer}> Counter: {' '} <span className={classes['counter--green']}> {props.counter} </span> </h2> <button className='btn btn-default' ...
src/components/Button/Button.Skeleton.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import { settings } from 'carbon-componen...
templates/public/js/react.js
vaffel/sql-to-graphql
/** * React v0.13.3 */ (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}els...
lib/svg-icons/image/rotate-left.js
Cerebri/material-ui
'use strict'; var React = require('react'); var PureRenderMixin = require('react-addons-pure-render-mixin'); var SvgIcon = require('../../svg-icon'); var ImageRotateLeft = React.createClass({ displayName: 'ImageRotateLeft', mixins: [PureRenderMixin], render: function render() { return React.createElement(...
test/cells.js
woshisbb43/coinMessageWechat
import React from 'react'; import { shallow } from 'enzyme'; import assert from 'assert'; import WeUI from '../src/index'; const {Cells, Cell, CellHeader, CellBody, CellFooter} = WeUI; describe('<Cells></Cells>', ()=> { [true, false].map((access) => { describe(`<Cells access="${access}"></Cells>`, ()=> {...
Libraries/Text/Text.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...
react-youtube-adaptive-loading/src/containers/Search/Search.js
GoogleChromeLabs/adaptive-loading
import React from 'react'; import './Search.scss'; import {getYoutubeLibraryLoaded} from '../../store/reducers/api'; import {getSearchNextPageToken, getSearchResults} from '../../store/reducers/search'; import * as searchActions from '../../store/actions/search'; import {bindActionCreators} from 'redux'; import {connec...
src/icons/DocumentText.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class DocumentText extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M398.6,169.2c-0.9-2.2-2-4.3-3.5-6.1l-83.8-91.7c-1.9-2.1-4.2-3.6-6.7-4.9c-2.9-1.5-6.1-2.1-9.5-2.1H135.2 c-12.4...
imports/ui/components/HelloWorld.js
dburles/meteor-guide-starter-react
import React from 'react'; export default function HelloWorld() { return <h1>Hello World</h1>; }
ajax/libs/reactive-coffee/1.0.0/reactive-coffee.min.js
ericelliott/cdnjs
(function(){var a,b,c,d,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,W,X,Y,Z,ab,bb,cb,db,eb,fb=[].slice,gb={}.hasOwnProperty,hb=function(a,b){function c(){this.constructor=a}for(var d in b)gb.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b...
client/src/javascript/components/icons/Remove.js
jfurrow/flood
import React from 'react'; import BaseIcon from './BaseIcon'; export default class AddMini extends BaseIcon { render() { return ( <svg className={`icon icon--remove ${this.props.className}`} viewBox={this.getViewBox()}> <path d="M53.7,25.3H6.3v9.4h47.4" /> </svg> ); } }
src/js/Pickers/__tests__/ClockFace.js
lwhitlock/grow-tracker
/* eslint-env jest*/ jest.unmock('../ClockFace'); import React from 'react'; import { renderIntoDocument, scryRenderedComponentsWithType } from 'react-dom/test-utils'; import ClockFace from '../ClockFace'; import ClockTime from '../ClockTime'; import ClockHand from '../ClockHand'; describe('ClockFace', () => { it(...
src/svg-icons/image/filter-b-and-w.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterBAndW = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16l-7-8v8H5l7-8V5h7v14z"/> </SvgIcon> ); ImageFilterBAndW = pure(Im...
src/components/App.js
vanbujm/react-css-animation-practice
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
ajax/libs/video.js/5.0.0-rc.9/video.js
AMoo-Miki/cdnjs
/** * @license * Video.js 5.0.0-rc.9 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License ...
src/Snackbar/Snackbar.react.js
kenma9123/react-native-material-ui
/* eslint-disable import/no-unresolved, import/extensions */ import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { Text, Animated, Easing, Platform, StyleSheet } from 'react-native'; import { ViewPropTypes } from '../utils'; import Button from '../Button'; const propTypes = { ...
src/svg-icons/editor/mode-comment.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorModeComment = (props) => ( <SvgIcon {...props}> <path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z"/> </SvgIcon> ); EditorModeComment = pure(EditorModeComment); Edito...
app/javascript/mastodon/features/lists/components/new_list_form.js
SerCom-KC/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { changeListEditorTitle, submitListEditor } from '../../../actions/lists'; import IconButton from '../../../components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; const messages = def...
public/js/components/Product.js
doomhz/rfidshop
import React from 'react' import {Link} from 'react-router' import ProductModel from '../models/ProductModel' let socket = null class Product extends React.Component { constructor(props){ super(props) this.state = { product: { id: undefined, name: "", code: "", price: "...
app/containers/Photos/Loadable.js
matteoterrinoni/portfolio
/** * * Asynchronously loads the component for Photos * */ import Loadable from 'react-loadable'; export default Loadable({ loader: () => import('./index'), loading: () => null, });
src/js/components/app.js
MiladNazeri/stockHelper
import '../stylesheets/main.scss'; import React from 'react'; class App extends React.Component { constructor(props){ super(props); this.state={ } } render(){ return( <div> {this.props.children} </div> ) } } export default A...
App/Components/ComposeYak.js
bretth18/bison
import { View, TextInput, Modal } from 'react-native'; import React, { Component } from 'react'; // import { Container, Content, InputGroup, Input, Icon } from 'native-base'; // TODO: this shit, it can be used cross platform instead of iosPrompt class ComposeYak extends Component { _submitYak(){ } ...
src/components/story/TwoPostImageResp.js
danpersa/remindmetolive-react
import React from 'react'; import TwoImages from './TwoImages'; import buildSrcResp from './buildSrcResp'; import PropTypes from 'prop-types'; const TwoPostImageResp = (props) => { return ( <TwoImages src1={buildSrcResp(props.dirPath, "SW", "image", props.number1)} src2={buildSrcResp(props.dirPath...
src/components/ContentPage/ContentPage.js
sarvex/ReactStarter
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ 'use strict'; import React from 'react'; export default class ContentPage extends React...
ajax/libs/rxjs/2.4.8/rx.js
dc-js/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, 'undefined': false }; ...
spec/vendor/jquery-1.7.0/jquery.js
signalbox/sdk-javascript
/*! * jQuery JavaScript Library v1.7 * 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. *...
src/js/components/icons/base/Impact.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
node_modules/react-icons/lib/fa/plus.js
bengimbel/Solstice-React-Contacts-Project
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
pootle/static/js/shared/mixins/FormValidationMixin.js
dwaynebailey/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; // eslint-disable-line no-unus...
app/javascript/mastodon/components/display_name.js
im-in-space/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { autoPlayGif } from 'mastodon/initial_state'; export default class DisplayName extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, oth...
app/components/PageNotFound.js
pbillerot/reacteur
'use strict'; import React from 'react'; import { Link } from 'react-router'; const { Button, Card, CardText, Content, Footer, Header, IconButton , Menubar, Nav, Navbar, NavGroup, Sidebar, Table, Window } = require('./w3.jsx') import { ctx, Dico } from '../config/Dico' import { Tools } from '../config/Tools' impor...
ajax/libs/yui/3.6.0pr4/datatable-core/datatable-core-debug.js
liubo404/cdnjs
YUI.add('datatable-core', function(Y) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @since 3.5.0 **/ var INVALID = Y.Attribute.INVALID_VALUE, Lang = Y.Lang, isFunction = Lang.isFunction, isObject = Lang.isObject, ...
html.js
haohcraft/mingxiepiano
import React from 'react' import Helmet from "react-helmet" import { prefixLink } from 'gatsby-helpers' import { TypographyStyle, GoogleFont } from 'react-typography' import typography from './utils/typography' const BUILD_TIME = new Date().getTime() module.exports = React.createClass({ propTypes () { return {...
files/yasr/2.4.15/yasr.bundled.min.js
Metrakit/jsdelivr
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){...
src/svg-icons/action/translate.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTranslate = (props) => ( <SvgIcon {...props}> <path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.7...
src/GridList/GridList.spec.js
pomerantsev/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import GridList from './GridList'; import getMuiTheme from '../styles/getMuiTheme'; describe('<GridList />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (node) => shallow(node, {con...
react/single-page/src/components/Home.js
leovant/examples
import React from 'react'; import { CSSTransitionGroup } from 'react-transition-group'; import '../styles/home.css'; const Home = () => { return( <CSSTransitionGroup transitionName="homeTransition" transitionAppear={true} transitionAppearTimeout={500} transitionEnter={false} transit...
example/Album.js
leopoldjoy/react-selectable-extended
import React from 'react'; const Album = ({ selected, selecting, title, year }) => { let classes; if(selecting){ classes = selected ? 'item selected selecting' : 'item selecting'; }else{ classes = selected ? 'item selected' : 'item'; } return ( <div className={classes}> <h2>{title}</h2> <small>{ye...
app/javascript/mastodon/features/list_editor/components/edit_list_form.js
masto-donte-com-br/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { changeListEditorTitle, submitListEditor } from '../../../actions/lists'; import IconButton from '../../../components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; const messages = def...
docz/components/Version.js
gribnoysup/react-yandex-maps
import React from 'react'; import { useComponents } from 'docz'; import { version } from '../../package.json'; export default function Version() { const components = useComponents(); return <components.inlineCode>v{version}</components.inlineCode>; }
node_modules/react-bootstrap/es/DropdownToggle.js
firdiansyah/crud-req
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
example/examples/TakeSnapshot.js
phantomlds/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, Image, } from 'react-native'; import MapView from 'react-native-maps'; import flagBlueImg from './assets/flag-blue.png'; import flagPinkImg from './assets/flag-pink.png'; const { width, height } = Dimensions.get('win...
example/examples/CachedMap.js
jrichardlai/react-native-maps
import React from 'react'; import { Text, View, Dimensions, StyleSheet, ListView, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; import flagImg from './assets/flag-blue.png'; const HORIZONTAL_PADDING = 12; const VERTICAL_PADDING = 6; class CachedMap extends React.Compon...
src/svg-icons/navigation/menu.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationMenu = (props) => ( <SvgIcon {...props}> <path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/> </SvgIcon> ); NavigationMenu = pure(NavigationMenu); NavigationMenu.displayName = 'NavigationMenu';...
src/components/coreComponents/AutoCompleteInput/AutoCompleteInputDemo.js
mjchamoures/personalPortfolio
import React from 'react'; import Fetch from 'react-fetch' import { Col } from 'react-bootstrap'; import AutoCompleteInput from './AutoCompleteInput'; class AutoCompleteInputDemo extends React.Component { constructor() { super(); this.state = { results : [], searchText : "" } this.key...
mern/packages/client/common/components/Modal/ModalWrapper.js
Robert-W/mern-kit
import React, { Component } from 'react'; const stylesheet = { background: { backgroundColor: 'rgba(0, 0, 0, 0.25)', position: 'fixed', height: '100%', width: '100%', zIndex: 10, left: 0, top: 0 }, modal: { transform: 'translate(-50%, -50%)', backgroundColor: 'white', posi...
test/PagerSpec.js
mengmenglv/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Pager from '../src/Pager'; import PageItem from '../src/PageItem'; describe('Pager', function () { it('Should output a unordered list as root element with class "pager"', function () { let instance = ReactTestUtils.renderInt...
lib/yuilib/2in3/2.9.0/build/yui2-container/yui2-container.js
SysBind/moodle
YUI.add('yui2-containercore', function(Y) { Y.use('yui2-container'); }, '3.3.0' ,{"requires": ["yui2-yahoo", "yui2-dom", "yui2-event"]}); YUI.add('yui2-container', function(Y) { var YAHOO = Y.YUI2; /* Copyright (c) 2011, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.y...
tgui/packages/tgui/interfaces/PowerMonitor.js
Cyberboss/tgstation
import { map, sortBy } from 'common/collections'; import { flow } from 'common/fp'; import { toFixed } from 'common/math'; import { pureComponentHooks } from 'common/react'; import { Component, Fragment } from 'inferno'; import { Box, Button, Chart, ColorBox, Flex, Icon, LabeledList, ProgressBar, Section, Table } from ...
stories/index.js
erin-doyle/react-timezone
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withKnobs, number } from '@storybook/addon-knobs'; import { action } from '@storybook/addon-actions'; import '../styles/timezone.css'; import { TimezoneAutocomplete } from '../index'; import HelperEnabledAutocomplete from './examples/H...
src/components/libs/MultiSelect/index.js
keenethics/estimateit
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Creatable } from 'react-select'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import styles from 'react-select/dist/react-select.css'; import ValidationState from '../ValidationState'; import * as s from './styles...
src/buttonpanel.js
flywingdevelopers/rn-naive
/** * <ButtonPanel> * Kevin Lee 09 Sept 2017 **/ import React from 'react' import { View, ViewPropTypes, TextStylePropTypes, } from 'react-native' import PropTypes from 'prop-types' import BaseStyle from './basestyle' import Button from './button' export default class ButtonPanel extends React.Component { c...
ajax/libs/preact/8.2.4/preact.dev.js
extend1994/cdnjs
(function () { 'use strict'; /** Virtual DOM Node */ function VNode() {} /** Global options * @public * @namespace options {Object} */ var options = { /** If `true`, `prop` changes trigger synchronous component updates. * @name syncComponentUpdates * @type Boole...
app/javascript/mastodon/features/standalone/compose/index.js
MastodonCloud/mastodon
import React from 'react'; import ComposeFormContainer from '../../compose/containers/compose_form_container'; import NotificationsContainer from '../../ui/containers/notifications_container'; import LoadingBarContainer from '../../ui/containers/loading_bar_container'; import ModalContainer from '../../ui/containers/mo...
src/actions/fuelSavingsActions.spec.js
Suiko6272/tess-front
import React from 'react'; import { expect } from 'chai'; import * as ActionCreators from './fuelSavingsActions'; import * as ActionTypes from '../constants/actionTypes'; describe('Actions', function() { const appState = { newMpg: 20, tradeMpg: 10, newPpg: 1.50, tradePpg: 1.50, milesDriven: 100, ...
src/components/BookingsTable/Components/TableCell.js
humancatfood/bat-fe-test
import React from 'react'; import PropTypes from 'prop-types'; import MuiTableCell from '@material-ui/core/TableCell'; import { makeStyles } from '@material-ui/styles'; const useStyles = makeStyles({ root: { textDecoration: isCancelled => isCancelled ? 'line-through' : 'none', }, }); function TableCell ({...