path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
www/app_framework/appframework.ui.js
ziedm/Favorite-mobile-app
/*! intel-appframework - v2.1.0 - 2014-04-18 */ /** * af.actionsheet - an actionsheet for html5 mobile apps * Copyright 2012 - Intel */ /* EXAMPLE You can pass in an HTML string that will get rendered $(document.body).actionsheet('<a >Back</a><a onclick="alert(\'hi\');" >Show Alert 3</a><a onclick="alert(\'goo...
libs/jquery.js
myjyby/narratterns
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return...
src/js/components/image__row/index.js
Arlefreak/web_client.afk
import PropTypes from 'prop-types'; import React from 'react'; import { Link } from 'react-router-dom'; const ImageRow = ({ image, thumbnailBW, thumbnail, project, onImageClick}) => { return ( <li className="grid-cell"> <Link to={'/projects/' + project } onClick...
test/ModalSpec.js
brynjagr/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Modal from '../src/Modal'; import { render, shouldWarn } from './helpers'; describe('Modal', function () { let mountPoint; beforeEach(() => { mountPoint = document.createElement('div'); document.body.appendChild(mount...
src/components/PrimaryPanes/index.js
jasonLaster/debugger.html
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */ // @flow import React, { Component } from "react"; import { connect } from "react-redux"; import { Tab, Tabs, T...
fields/types/date/DateColumn.js
stunjiturner/keystone
import React from 'react'; import moment from 'moment'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; var DateColumn = React.createClass({ displayName: 'DateColumn', propTypes: { col: React.PropTypes.obj...
springboot/GReact/src/main/resources/static/app/routes/dashboard/components/BirdEyeWidget.js
ezsimple/java
import React from 'react' import JarvisWidget from '../../../components/widgets/JarvisWidget' import D3Map from '../../../components/graphs/d3/D3Map' import SparklineContainer from '../../../components/graphs/inline/SparklineContainer' export default class BirdEyeWidget extends React.Component { constructor(props){...
app/client/components/map/Riddle.js
breakfast-mimes/cyber-mimes
import React from 'react'; export default class Riddle extends React.Component { constructor(props) { super(props); this.state = { } } render(){ const {riddle, pickUp} = this.props let riddlePrompt = function(riddle){ if(riddle){ var input = prompt(riddle.question, "?"); ...
node_modules/react-native/Libraries/Modal/Modal.js
Stoneski93/GymDiary
/** * 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...
frontend/app_v2/src/common/icons/ChevronRight.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' /** * @summary ChevronRight * @component * * @param {object} props * * @returns {node} jsx markup */ function ChevronRight({ styling }) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" className={styling}> <path d="M0 ...
src/App.js
yifanchen/react-startkit
import React from 'react' import ReactDOM from 'react-dom' // one of the reasons to use webpack is the react-hot-loader plugin allows to update content without changing state. export default class App extends React.Component { constructor() { super(); this.state = { count:0 }; } increment(){ this.se...
src/components/posts_show.js
hirodashi/ReduxSimpleStarter-blog
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchPost, deletePost } from '../actions/index.js' class PostsShow extends Component { componentDidMount() { const { id } = this.props.match.params; this.props.fetchPost(id); }...
ajax/libs/orb/1.0.5/orb.min.js
andrepiske/cdnjs
/** * orb v1.0.5, Pivot grid javascript library. * * Copyright (c) 2014 Najmeddine Nouri <devnajm@gmail.com>. * * @version v1.0.5 * @link http://nnajm.github.io/orb/ * @license MIT */ "use strict";!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof...
Component/Home/Search.js
outman1992/Taoertao
/** * Created by 58484 on 2016/9/30. */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity, TextInput } from 'react-native'; var Dimensions = require('Dimensions'); var {width} = Dimensions.get('window'); var Search = React.createClass({...
wise4/spec/helpers/jquery-1.6.4.js
concord-consortium/mysystem_sc
/*! * jQuery JavaScript Library v1.6.4 * 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/app.js
morganney/gol
'use strict' import React from 'react' import ReactDOM from 'react-dom' import Title from './components/title' import GridSizeSelector from './components/grid-size-selector' import GameOfLife from './components/game-of-life' class App extends React.Component { constructor (props) { super(props) this.handle...
bench/rendering/pages/stateless.js
zeit/next.js
import React from 'react' export default () => <h1>My component!</h1>
src/components/user/auth/AuthPanel.js
huyhoangtb/reactjs
/** * Created by Peter Hoang Nguyen on 3/30/2017. */ import * as css from '../../forms/auth/stylesheet.scss'; import React from 'react' import Bootstrap from 'bootstrap/dist/css/bootstrap.css'; import config from 'configs/configuration'; import {injectI18N, t, t1, t2, t3, t4} from "utils/I18nUtils"; /** * Created b...
pages/index.js
gregcorby/gregcorby.com
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import DocumentTitle from 'react-document-title' import '../css/main.scss' export default class Sass extends React.Component { render () { return ( <div className="page-container" id="content-contain...
ajax/libs/backbone-react-component/0.8.0-alpha.1/backbone-react-component.js
dada0423/cdnjs
// Backbone React Component // ======================== // // Backbone.React.Component v0.8.0-alpha.1 // // (c) 2014 "Magalhas" José Magalhães <magalhas@gmail.com> // Backbone.React.Component can be freely distributed under the MIT license. // // // `Backbone.React.Component` is a mixin that glues [Backbone...
src/components/List/ListItemSecondaryActionStart.js
sk-iv/iva-app
import React from 'react'; import type { Node } from 'react'; import classNames from 'classnames'; export type Props = { /** * The content of the component, normally an `IconButton` or selection control. */ children?: Node, /** * Useful to extend the style applied to components. */ classes?: Object...
ajax/libs/angular-ui-select/0.9.7/select.js
cdnjs/cdnjs
/*! * ui-select * http://github.com/angular-ui/ui-select * Version: 0.9.7 - 2015-02-13T15:09:21.834Z * License: MIT */ (function () { "use strict"; var KEY = { TAB: 9, ENTER: 13, ESC: 27, SPACE: 32, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, SHIFT: 16, CTRL: 17, ALT: ...
ajax/libs/vue/2.5.4/vue.esm.js
wout/cdnjs
/*! * Vue.js v2.5.4 * (c) 2014-2017 Evan You * Released under the MIT License. */ /* */ var emptyObject = Object.freeze({}); // these helpers produces better vm code in JS engines due to their // explicitness and function inlining function isUndef (v) { return v === undefined || v === null } function isDef (v...
client/app/components/ContentEditor/customPlugins/media-plugin/components/MediaWrapper/index.js
bryanph/Geist
import React from 'react'; import { connect } from 'react-redux' import {EditorState, SelectionState, Modifier} from "draft-js"; import classNames from 'classnames' import BlockContent from '../BlockContent.js' import BlockData from '../BlockData.js' import BlockInput from '../BlockInput.js' import CommonBlock from '...
resources/react/components/parts/latestBattles/Heading.js
fetus-hina/stat.ink
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; function Heading (props) { const { str } = props; return ( <h2>{str}</h2> ); } Heading.propTypes = { str: PropTypes.string.isRequired }; function mapStateToProps (state) { const data = state.latestBat...
client/src/services/utilities.js
verejnedigital/verejne.digital
// @flow import React from 'react' import {reduce, isEmpty, orderBy, padStart, isFinite} from 'lodash' import {pickBy} from '../utils' import type {ObjectMap} from '../types/commonTypes' import type {Company, NewEntityDetail, CompanyFinancial} from '../state' const monthNames = [ 'január', 'február', 'marec', ...
docs/src/app/components/pages/components/List/ExampleNested.js
kasra-co/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import ActionGrade from 'material-ui/svg-icons/action/grade'; import ContentInbox from 'material-ui/svg-icons/content/inbox'; import ContentDrafts from 'material-ui/svg-icons/content/draft...
public/javascripts/components/integration-message-item.js
JetChat/JetChat
import React from 'react'; import ReactEmoji from 'react-emoji'; import ReactAutolink from 'react-autolink'; var prettydate = require("pretty-date"); var IntegrationMessageItem = React.createClass({ mixins: [ ReactEmoji, ReactAutolink ], render: function () { var self = this; var c...
ajax/libs/es6-shim/0.25.2/es6-shim.js
dhowe/cdnjs
/*! * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com) * and contributors, MIT License * es6-shim: v0.25.2 * see https://github.com/paulmillr/es6-shim/blob/0.25.2/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-...
frontend/src/index.js
sweetca/logger
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import createStore from './store'; import reducers from './reducers'; import App from './components/app/App'; const store = createStore(reducers); ReactDOM.render( <Provider store={store}> <App /> </P...
packages/material-ui-icons/src/TranslateTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12.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...
mm-react/src/utils/commands.js
Ameobea/tickgrinder
//! Functions for interfacing with the platform's Redis-based communication system /* eslint-env browser */ import React from 'react'; import { Modal } from 'antd'; const CONF = require('../conf.js'); /** * Creates a big error modal if the MM can't connect to the websocket proxy. */ const wsError = () => { Modal...
src/svg-icons/action/find-replace.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFindReplace = (props) => ( <SvgIcon {...props}> <path d="M11 6c1.38 0 2.63.56 3.54 1.46L12 10h6V4l-2.05 2.05C14.68 4.78 12.93 4 11 4c-3.53 0-6.43 2.61-6.92 6H6.1c.46-2.28 2.48-4 4.9-4zm5.64 9.14c.66-.9 1....
node_modules/react-icons/fa/gitlab.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaGitlab = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m2.3 15.8l17.7 22.6-19.4-14q-0.4-0.3-0.5-0.8t0-1l2.2-6.8z m10.3 0h14.8l-7.4 22.6z m-4.4-13.7l4.4 13.7h-10.3l4.4-13.7q0.2-0.5 0.8-0.5t0.7 0.5z m29.5 13.7l2.2 6.8q0.2 0....
blueocean-material-icons/src/js/components/svg-icons/device/gps-fixed.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceGpsFixed = (props) => ( <SvgIcon {...props}> <path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c...
src/routes.js
pisgrupo9/ash_web
import React from 'react'; import { Route, IndexRedirect } from 'react-router'; import App from './components/App'; import * as auth from './api/redirectLoginApi'; import ServerStatusPage from './containers/ServerStatusPage'; import LoginPage from './containers/LoginPage'; import CreateUserPage from './containers/Creat...
client/src/head/meta.js
BhaveshSGupta/FreeCodeCamp
import React from 'react'; const meta = [ <meta content='summary_large_image' key='twitter:card' name='twitter:card' />, <meta content='https://s3.amazonaws.com/freecodecamp/curriculum-diagram-full.jpg' key='https://s3.amazonaws.com/freecodecamp/curriculum-diagram-full.jpg' name='twitter:image:src' /...
src/LokiStep.js
JoaoCnh/react-loki
import React from "react"; import PropTypes from "prop-types"; const LokiStep = ({ currentStep, stepsDone, totalSteps, step, isLokiComplete, goTo }) => { const isActive = currentStep === step.index; const isComplete = currentStep > step.index; const isDisabled = !isActive && !isComplete; return ( ...
src/components/cars/create/CarForm.js
Atanasov86/Car-System
import React from 'react' import Input from '../../common/forms/Input' const CarForm = (props) => ( <div className='container'> <div className='row'> <div className='col-md-offset-4 col-md-4'> <div className='form-login'> <h4>Welcome to login page</h4> {props.error ? ( ...
packages/material-ui/src/ExpansionPanelActions/ExpansionPanelActions.js
kybarg/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; import '../Button'; // So we don't have any override priority issue. export const styles = { /* Styles applied to the root element. */ root: { display: 'flex', alignItems: ...
public/assets/application-8ea1df72c8a39c7228170c521a0a85c073a43e2e8b6500d943440a5b89bf60ab.js
danvisintainer/feedback
/*! * 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 onYouTubePlayerAPIReady(){yt...
src/components/inputs/Select.js
mersocarlin/react-app-components
import React from 'react' import { compose, withProps, withHandlers } from 'recompose' import ReactSelect from 'react-select' import { isArray, isEqual } from 'lodash' import 'react-select/dist/react-select.css' const Select = ({ ...rest }) => ( <ReactSelect labelKey="text" valueKey="id" {...rest} /> ...
src/components/mediabox/mediabox_info_meta.js
n7best/react-weui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from '../../utils/classnames'; /** * Meta Item for `MeidaBoxInfo` * */ export default class MediaBoxInfoMeta extends React.Component { static propTypes = { /** * add left margin to indicate extra * ...
client/src/index.js
jedski01/acit2910
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App />, document.getElementById('root') );
ajax/libs/zeroclipboard/2.1.6/ZeroClipboard.Core.js
laurenceHR/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.1.6 */ (function(window, undefined) { "use strict";...
wail-ui/components/heritrix/heritrixActionMenu.js
N0taN3rd/wail
import React from 'react' import PropTypes from 'prop-types' import { grey400 } from 'material-ui/styles/colors' import IconButton from 'material-ui/IconButton' import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert' import IconMenu from 'material-ui/IconMenu' import MenuItem from 'material-ui/MenuItem' i...
src/html.js
muniz95/muniz95.github.io
import React from 'react' import PropTypes from 'prop-types' export default class HTML extends React.Component { render() { return ( <html {...this.props.htmlAttributes}> <head> <meta charSet="utf-8" /> <meta httpEquiv="x-ua-compatible" content="ie=edge" /> <meta ...
index.ios.js
mannysys/imoocApp
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ 'use strict' import React, { Component } from 'react'; import Icon from 'react-native-vector-icons/Ionicons'; //页面 var List = require('./app/creation/index'); var Edit = require('./app/edit/index'); var Account = require('./app/acco...
wwwroot/app/src/components/LandingPage/LandingPage.js
AlinCiocan/PlanEatSave
import React, { Component } from 'react'; import { Link } from 'react-router'; import TopBar from '../TopBar/TopBar'; import BrowserStore from '../../services/BrowserStore'; import Routes from '../../services/Routes'; import NavigationMenu from '../NavigationMenu'; class LandingPage extends Component { constructor(...
src/index.js
antzu/authenticationApp
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import reduxThunk from 'redux-thunk'; import App from './components/app'; import Signin fr...
dev/components/ResultsListItem.js
the0neWhoKnocks/react.ask-trev
import React from 'react'; import css from '../styles/ResultsListItem.styl'; export default class ResultsListItem extends React.Component { formatTitle(text){ return { __html: text.replace(new RegExp(`(${this.props.query})`, 'ig'), "<mark>$1</mark>") }; } render(){ const title =...
node_modules/react-bootstrap/es/PaginationButton.js
hsavit1/gosofi_webpage
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 ...
lens-ui/app/components/AdhocQueryComponent.js
guptapuneet/lens
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not...
src/docs/components/RadioButtonDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import RadioButton from 'grommet/components/RadioButton'; import Form from 'grommet/components/Form'; import FormField from 'grommet/components/FormField'; import DocsArticle from '../../components/DocsArticl...
good-old-react-authentication-flow/src/containers/AuthPage/index.js
strapi/strapi-examples
/** * * AuthPage * */ import React from 'react'; import PropTypes from 'prop-types'; import { findIndex, get, map, replace, set } from 'lodash'; import { Link } from 'react-router-dom'; import Button from '../../components/Button'; import FormDivider from '../../components/FormDivider'; import Input from '../../c...
src/index.js
zenoamaro/throttle-workbench
import React from 'react'; import ReactDOM from 'react-dom'; import Root from 'views/Root'; require('assets'); ReactDOM.render( <Root/>, document.getElementById('root'), );
node_modules/native-base/Components/Widgets/ListItem.js
paulunits/tiptap
/* @flow */ 'use strict'; import React from 'react'; import {Image, TouchableOpacity, Platform } from 'react-native'; import NativeBaseComponent from '../Base/NativeBaseComponent'; import computeProps from '../../Utils/computeProps'; import Icon from './Icon'; import Text from './Text'; import View from './Vi...
tgui-next/packages/tgui/components/NumberInput.js
Arianya/tgstation
import { clamp } from 'common/math'; import { classes, pureComponentHooks } from 'common/react'; import { Component, createRef } from 'inferno'; import { tridentVersion } from '../byond'; import { AnimatedNumber } from './AnimatedNumber'; import { Box } from './Box'; export class NumberInput extends Component { cons...
teletobit/src/components/Main/Editor/Write.js
edenpark/teletobit
import React from 'react'; import Dimmer from 'components/Common/Dimmer'; const Write = ({children, visible, onHide, onShow}) => { return( <div className="write" onClick={!visible && onShow}> <div className={`write-wrapper ${visible ? 'show': ''}`}> <div className={`write-moda...
packages/react-dev-utils/formatWebpackMessages.js
sThig/jabbascrypt
/** * 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. */ 'use stric...
app/javascript/mastodon/components/__tests__/avatar_overlay-test.js
TheInventrix/mastodon
import React from 'react'; import renderer from 'react-test-renderer'; import { fromJS } from 'immutable'; import AvatarOverlay from '../avatar_overlay'; describe('<AvatarOverlay', () => { const account = fromJS({ username: 'alice', acct: 'alice', display_name: 'Alice', avatar: '/animated/alice.gif',...
app/components/layout/form/ProjectCheckout.js
communicode-source/communicode
// MyStoreCheckout.js import React from 'react'; import { Elements } from 'react-stripe-elements'; import { PropTypes } from 'prop-types'; import CheckoutForm from './CheckoutForm'; class ProjectCheckout extends React.Component { render() { return ( <Elements> <CheckoutForm fini...
src/components/Progress/ProgressIndicatorItem.js
propertybase/react-lds
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { Button, IconButton, ButtonIcon } from '../Button'; // TODO: Support for step tooltip is still missing. const ProgressIndicatorItem = ({ assistiveText, className, isActive, isError, isCompleted, isSuccess, ...
detox/test/src/Screens/MatchersScreen.js
simonracz/detox
import React, { Component } from 'react'; import { Text, View, Image, TouchableOpacity } from 'react-native'; export default class MatchersScreen extends Component { constructor(props) { super(props); this.state = { greeting: undefined, }; } render() { if (this.state.greeting) ret...
examples/IconPrefixesInput.js
jsbranco/react-materialize
import React from 'react'; import Input from '../src/Input'; import Row from '../src/Row'; import Icon from '../src/Icon'; export default <Row> <Input s={6} label="First Name" validate><Icon>account_circle</Icon></Input> <Input s={6} label="Telephone" validate type='tel'><Icon>phone</Icon></Input> </Row>;
__tests__/index.android.js
7kfpun/AudienceNetworkReactNative
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
src/components/app/NavBar.js
teamNOne/showdown
import React from 'react'; import { Link } from 'react-router-dom'; import UserActions from '../../actions/UserActions'; import Auth from '../../utilities/Auth'; export default class NavBar extends React.Component { render() { let navbar; if (Auth.isUserAuthenticated()) { navbar = ( ...
ajax/libs/6to5/1.12.16/browser-polyfill.js
callumacrae/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...
packages/material-ui-icons/src/GpsOff.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.52 2.65l1.5 1.5c.5-.96.84-2.02.97-3.15H23v-2h-2.06zM3 4.27l...
rx-sandbox/creating-apps-with-observables/Counter.js
claycarpenter/node-sandbox
import React from 'react'; import {Observable, Subject} from 'rxjs'; export class Counter extends React.Component { constructor() { super(); this.state = { count: 0 }; // Obvs to represent increase, decrease event streams this.decrease$ = new Subject(); this.increase$ = new Subject();...
src/components/DropdownProfileCard/DropdownProfileCard.js
webpack/analyse-tool
import React, { PropTypes } from 'react'; import { LinkContainer } from 'react-router-bootstrap'; import { NavItem } from 'react-bootstrap'; import styles from './DropdownProfileCard.scss'; const DropdownProfileCard = ({ picture, name, nickname }) => ( <LinkContainer to="/profile/edit" className={ styles.contain...
src/Well.js
natlownes/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Well = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'well' }; }, render() { let classes = this.getBsClassSet(); return ( <di...
ajax/libs/react-image-crop/10.0.0-beta.1/ReactCrop.min.js
cdnjs/cdnjs
/*! For license information please see ReactCrop.min.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactCrop=t(require("react")):e.ReactCrop=t(e.React)}(this...
src/components/DangerButton/DangerButton.js
joshblack/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 React from 'react'; import Button from '../Button'; const DangerButton = props => <Button kind="danger" {...props} />; export defaul...
ajax/libs/backbone-react-component/0.7.1/backbone-react-component.js
jamzgoodguy/cdnjs
// Backbone React Component // ======================== // // Backbone.React.Component v0.7.1 // // (c) 2014 "Magalhas" José Magalhães <magalhas@gmail.com> // Backbone.React.Component can be freely distributed under the MIT license. // // // `Backbone.React.Component` is a mixin that glues [Backbone](http:/...
ajax/libs/angular-google-maps/1.0.3/angular-google-maps.js
melvinsembrano/cdnjs
/* Author Nick McCready Intersection of Objects if the arrays have something in common each intersecting object will be returned in an new array. */ (function() { _.intersectionObjects = function(array1, array2, comparison) { var res, _this = this; if (comparison == null) { compariso...
client/src/components/streamsList/listOfStreams.js
TeamDreamStream/GigRTC
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { getActivePerformances } from '../../actions'; import { Link } from 'react-router'; import List from 'material-ui/lib/lists/list'; import ListItem from 'material-ui/lib/lists/list-item'; import Divider from 'material-ui/lib/divide...
ajax/libs/material-ui/5.0.0-alpha.22/node/internal/svg-icons/Warning.min.js
cdnjs/cdnjs
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault"),_interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var React=_interopRequireWildcard(require("react")),_createSvgIco...
client/admin/info/RuntimeEnvironmentSection.js
iiet/iiet-chat
import { Skeleton } from '@rocket.chat/fuselage'; import React from 'react'; import s from 'underscore.string'; import Subtitle from '../../components/basic/Subtitle'; import { useTranslation } from '../../contexts/TranslationContext'; import { useFormatMemorySize } from '../../hooks/useFormatMemorySize'; import { use...
src/map/js/components/AnalysisPanel/WatershedAnalysis.js
wri/gfw-water
import CustomAnalysisLink from 'components/AnalysisPanel/CustomAnalysisLink'; import WatershedSummary from 'components/AnalysisPanel/WatershedSummary'; import WatershedChart from 'components/AnalysisPanel/WatershedChart'; import {analysisActions} from 'actions/AnalysisActions'; import {analysisPanelText as text, analyt...
packages/mineral-ui-icons/src/IconGroup.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconGroup(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}> ...
client/components/profile.js
guyonroche/quaero
import React from 'react'; const Profile = props => ( <div className="question"> Checkout your account here </div> ); export default Profile;
ajax/libs/forerunnerdb/1.3.772/fdb-core+views.js
tholu/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
app/src/containers/interactive/answers.js
supernova-at/media-bias
/* * Imports. */ // NPM. import React, { Component } from 'react'; // Local. // Styles. import './index.css'; // Components. import DropZone from './drop-zone'; import { CorrectAnswerOutlet, IncorrectAnswerOutlet, ShowingCorrectAnswerOutlet, } from '../../components/outlet'; // Data. import { sources as bias ...
grunt/config/compress.js
angeliaz/react
'use strict'; var grunt = require('grunt'); var version = grunt.config.data.pkg.version; module.exports = { starter: { options: { archive: './build/react-' + version + '.zip' }, files: [ {cwd: './build/starter', src: ['**'], dest: 'react-' + version + '/'} ] } };
src/js/components/YearPlan.js
fabregaszy/hackathon-vr
import {Animation, Entity, Scene} from 'aframe-react'; import React from 'react'; import tweenState from 'react-tween-state'; import 'aframe-text-component'; import {getRandom, getRandomRotate, getHashPoint} from '../utils'; import Geometry from './Geometry'; var randomColor = require('random-color'); const COLOR_LIS...
app/index.js
zackhall/ack-chat
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import '../resources/f...
app/components/Geosuggest/index.js
bbonny/teameat
/** * * Geosuggest * */ import React from 'react'; import Input from 'components/Input'; import SuggestList from 'components/SuggestList'; import styles from './styles.css'; class Geosuggest extends React.Component { // eslint-disable-line react/prefer-stateless-function constructor(props) { super(props); ...
ajax/libs/hyperform/0.9.21/hyperform.js
jonobr1/cdnjs
/*! hyperform.js.org */ var hyperform = (function () { 'use strict'; /* the following code is borrowed from the WebComponents project, licensed * under the BSD license. Source: * <https://github.com/webcomponents/webcomponent...
packages/reactor-kitchensink/src/examples/Lists/PullRefresh/PullRefresh.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { List } from '@extjs/ext-react'; require('../stocks'); Ext.require([ 'Ext.plugin.PullRefresh' ]); export default class PullRefreshListExample extends Component { store = Ext.create('Ext.data.Store', { fields: ['name'], autoLoad: true, ...
docs/components/layouts/MobileLayout.js
tianyingchun/docs
import React, { Component } from 'react'; import DocumentMeta from 'react-document-meta'; import BaseLayout from './BaseLayout'; import meta from './meta'; class MobileHeader extends Component { render () { return ( <header className= "topbar topbar-inverse"> <h1 className="topbar-brand"> ...
digdet/client/app/Routes.js
achillesrasquinha/digdet
import React from 'react' import { Route, IndexRoute } from 'react-router' import Config from './Config' import Home from './pages/Home' const Routes = ( <Route path = {Config.URL.BASE}> <IndexRoute component = {Home}/> </Route> ) export default Routes
src/Nav.js
Firfi/meteor-react-bootstrap
import React, { cloneElement } from 'react'; import BootstrapMixin from './BootstrapMixin'; import CollapsibleMixin from './CollapsibleMixin'; import classNames from 'classnames'; import domUtils from './utils/domUtils'; import ValidComponentChildren from './utils/ValidComponentChildren'; import createChainedFunction ...
docs/app/Examples/elements/Flag/Types/FlagTableExample.js
jcarbo/stardust
import React from 'react' import { Table, Flag } from 'stardust' const countries = [ { name: 'Afghanistan', countryCode: 'af' }, { name: 'Aland Islands', countryCode: 'ax' }, { name: 'Albania', countryCode: 'al' }, { name: 'Algeria', countryCode: 'dz' }, { name: 'American Samoa', countryCode: 'as' }, { nam...
src/svg-icons/navigation/close.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationClose = (props) => ( <SvgIcon {...props}> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> </SvgIcon> ); NavigationClose = pure(Navig...
components/AnimatedRocket.js
brown-jones-industries/client
import React from 'react' export default ({height, width}) => { return ( <div className='animatedRocketContainer'> <svg className='animatedRocket' width={width} height={height} viewBox='0 0 500 900' version='1.1'> <title>space-rocket</title> <defs> <linearGradient x1='34.714023%' ...
client/tests/components/pages/NewDocumentPage.spec.js
andela-iukwuoma/docman
import expect from 'expect'; import sinon from 'sinon'; import React from 'react'; import { shallow, mount } from 'enzyme'; import { NewDocumentPage } from '../../../components/pages/NewDocumentPage'; const createDocument = sinon.spy(() => Promise.resolve()); const spyHandleChange = sinon.spy(NewDocumentPage.prototype...
app/components/Projects/Cell.js
sysrex/sysrex
import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; const Cell = props => ( <div className="cell-container"> <article className="mini-post"> <header> <h3><a href={props.data.link}>{props.data.title}</a></h3> <time className="published">{moment(props.d...
src/routes/GasHybridElectric/components/HomeView.js
psound/jm-liberty
import React from 'react' import { IndexLink, Link } from 'react-router' import Overlay from '../../../components/Overlay' import Results from './Results' import Results2 from './Results2' import Results3 from './Results3' import './HomeView.scss' const styles = {}; let data = require('../assets/data.json'); class H...
packages/material-ui-icons/src/SystemUpdateOutlined.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14zm-1-6h-3V8h-2v5H8l4 4 4-4z" /></g></R...