path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/framework/components/Date/Date.spec.js
twlevelup/watch_edition_react
import React from 'react'; import { mount } from 'enzyme'; import moment from 'moment'; import Date from './Date'; describe('DateTimeDisplay component', () => { const dateWrapper = mount( <Date /> ); describe('When rendered without a [format] property', () => { test('it should display the current date ...
ajax/libs/react-bootstrap-typeahead/0.8.2/react-bootstrap-typeahead.min.js
jdh8/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrapTypeahead=t(require("react"),require("react-dom")):e.ReactBootstrapTypeahead=t(e.R...
src/react-native/local-cli/bundle/buildBundle.js
qixuan/akpack
/** * 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 strict...
src/shared/components/indexTable/indexTable.js
miaket/operationcode_frontend
import React, { Component } from 'react'; import { Redirect } from 'react-router-dom'; import PropTypes from 'prop-types'; import Heading from 'shared/components/heading/heading'; import ReactTable from 'react-table'; class IndexTable extends Component { static propTypes = { columns: PropTypes.arrayOf(PropTypes....
test/NavbarSpec.js
apisandipas/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Navbar from '../src/Navbar'; import Nav from '../src/Nav'; describe('Nav', function () { it('Should create nav element', function () { let instance = ReactTestUtils.renderIntoDocument( <Navbar /> ); let nav = ...
blueprints/component/files/src/components/__name__/__name__.js
anthonyraymond/react-redux-starter-kit
import React from 'react' import classes from './<%= pascalEntityName %>.scss' export const <%= pascalEntityName %> = () => ( <div className={classes['<%= pascalEntityName %>']}> <h1><%= pascalEntityName %></h1> </div> ) export default <%= pascalEntityName %>
site/pages/HomePage.js
arnif/react-dnd
import React from 'react'; import Header from '../components/Header'; import PageBody from '../components/PageBody'; import StaticHTMLBlock from '../components/StaticHTMLBlock'; import IndexHTML from '../../docs/index.md'; export default class HomePage { render() { return ( <div> <Header showCover ...
test/AlertSpec.js
zanjs/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Alert from '../src/Alert'; describe('Alert', function() { it('Should output a alert with message', function() { let instance = ReactTestUtils.renderIntoDocument( <Alert> <strong>Message</strong> </Alert> ...
wrappers/md.js
adjohnson916/site-gatsby
import React from 'react' import 'css/markdown-styles.css' module.exports = React.createClass({ propTypes () { return { router: React.PropTypes.object, } }, render () { const post = this.props.route.page.data return ( <div className="markdown"> <h1>{post.title}</h1> <d...
ajax/libs/yui/3.12.0/event-focus/event-focus.js
ppavlov/cdnjs
YUI.add('event-focus', function (Y, NAME) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Event = Y.Event, YLang = Y.Lang, isString = YLang.isString, arrayIndex = Y.Array.indexOf, useActivate = (function() { ...
src/svg-icons/communication/call-merge.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMerge = (props) => ( <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/> </SvgIcon> ); CommunicationCallMerge...
test/login-test.js
ResponsibleRye/responsiblerye
//chai import { assert, expect } from 'chai'; import should from 'chai/register-should'; //sinon import { spy } from 'sinon'; //enzyme import { mount, shallow, render } from 'enzyme'; //react utils import React from 'react'; import ReactTestUtils from 'react-addons-test-utils'; import ReactDOM from 'react-dom'; //react...
step4.0/client/App.js
colmarius/universal-react-workshop-app
import React from 'react' import TalkList from './TalkList' const App = React.createClass({ render: function() { return ( <div className='jumbotron'> <h1 className="text-center"> Conference Talks </h1> <TalkList /> </div> ) }, }) export default App
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-swiper.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin, SwipeMixin, Tools} from '../common/common.js'; import SwiperBody from './swiper-body.js'; import SwiperMenu from './swiper-menu.js'; import './swiper.less'; export const Swiper = React.createClass({ //@@viewOn:mixins mixins: [ BaseM...
src/views/task.js
dreitagebart/crispyScrum
import _ from 'lodash' import React from 'react' import { connect } from 'react-redux' import { boardCreate } from '../actions' import { Button, Col, Row, Form, Input } from 'antd' @connect((store, props) => { const { tasks } = store.root return { task: _.find(props.tasks, { _id: props.match.params.id }) } }...
files/rxjs/2.3.8/rx.lite.compat.js
stevelacy/jsdelivr
// 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 }; v...
packages/react-server-examples/code-splitting/components/Footer.js
emecell/react-server
import React, { Component } from 'react'; import {logging} from 'react-server'; const logger = logging.getLogger(__LOGGER__); export default class Footer extends Component { constructor(props) { super(props); this.state = { mounted: false, }; } componentDidMount() { logger.info("footer rendered"); th...
ajax/libs/forerunnerdb/1.3.663/fdb-legacy.min.js
emmy41124/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
src/svg-icons/av/airplay.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAirplay = (props) => ( <SvgIcon {...props}> <path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); AvAirplay = pure(AvAirplay...
frontend/src/Settings/Quality/Definition/QualityDefinitions.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import FieldSet from 'Components/FieldSet'; import PageSectionContent from 'Components/Page/PageSectionContent'; import translate from 'Utilities/String/translate'; import QualityDefinitionConnector from './QualityDefinitionConnector'; import...
client/admin/scenes/protected/settings.js
kirinami/portfolio
import React, { Component } from 'react'; import { Breadcrumb, BreadcrumbItem } from 'reactstrap'; import { Link } from 'react-router-dom'; import { inject, observer } from 'mobx-react'; import Loading from '../../components/loading'; import InputField from '../../forms/fields/input-field'; import TextareaField from ...
frontend/src/components/artists/index.js
rossnomann/playlog
import React from 'react'; import {Link} from 'react-router-dom'; import {createSelector} from 'reselect'; import {actions} from '../../redux'; import {formatDate} from '../../utils'; import {Catalog, createListContainer} from '../shared/catalog'; import ProgressBar from '../shared/progress-bar'; import './index.css...
src/components/Footer/Footer.js
HappyBandit/TeamBingo
/** * 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 withStyles from 'isom...
src/components/social_profile_pair.js
mdkalish/json_selector
import React from 'react'; var SocialProfilePairRow = React.createClass({ getInitialState: function() { return { picked: false } }, componentWillReceiveProps: function(nextProps) { this.setState({picked: nextProps.picked}); }, componentWillUpdate: function(nextProps, nextState) { var updateJson =...
test/Application.spec.js
dylanavery720/shoot-the-breeze
import React from 'react'; import { shallow, mount, render } from 'enzyme'; import { assert, expect } from 'chai'; import Application from '../lib/components/Application'; import Filter from '../lib/components/Filter'; import UserInput from '../lib/components/UserInput'; import UserList from '../lib/components/UserLi...
src/layouts/PageError/index.js
jeffcressman/til
import React, { PropTypes } from "react" import Page from "../Page" import styles from "./index.css" const PageError = ({ error, errorText }) => ( <Page head={{ // hero credit: https://www.flickr.com/photos/mypubliclands/16101654539/ hero: "https://farm8.staticflickr.com/7559/16101654539_bee5151340...
src/interface/icons/Speed.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Icon from 'common/Icon'; const icon = props => ( <Icon icon="petbattle_speed" {...props} /> ); export default icon;
src/components/Main.js
akoskm/nicepls
import alex from 'alex'; import React from 'react'; import request from 'superagent'; import style from '../style'; import Issues from './Issues'; import Footer from './Footer'; import Header from './Header'; import Highlight from './Highlight'; class Main extends React.Component { constructor(props) { super(p...
test/test_helper.js
bashupoud/reactRedux
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
modules/__tests__/serverRendering-test.js
chrisirhc/react-router
/*eslint-env mocha */ /*eslint react/prop-types: 0*/ import expect from 'expect' import React from 'react' import createLocation from 'history/lib/createLocation' import RoutingContext from '../RoutingContext' import match from '../match' import Link from '../Link' describe('server rendering', function () { let App...
src/main.js
mhgbrown/typography-karaoke
/** * App entry point */ // Polyfill import 'babel-polyfill'; import 'autotrack'; import FastClick from 'fastclick'; // Libraries import React from 'react'; import ReactDOM from 'react-dom'; import { createHistory } from 'history'; import { Router, useRouterHistory } from 'react-router'; // Routes import Routes fr...
test/integration/css/fixtures/url-global/pages/_app.js
BlancheXu/test
import React from 'react' import App from 'next/app' import '../styles/global1.css' import '../styles/global2.css' class MyApp extends App { render () { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
front-end/src/components/shared/MaterialButton.js
iankhor/medrefr
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; const style = { margin: 12, }; const MaterialButton = () => ( <div> <RaisedButton label="Default" style={style} /> <RaisedButton label="Primary" primary={true} style={style} /> <RaisedButton label="Secondary" secondary={tr...
src/index.js
peachy19/senpie
require('../styles/application.scss'); import React from 'react' import { render } from 'react-dom' import App from './components/App' import { createStore, combineReducers, applyMiddleware, compose } from 'redux' import { Provider } from 'react-redux' import * as reducers from './reducers' import thunk from 'redux-th...
src/containers/About/About.js
denichodev/personal-web
import React, { Component } from 'react'; import './About.css'; import FlipCard from '../../components/FlipCard/FlipCard'; import WhatBtn from '../../components/WhatBtn/WhatBtn'; import sketchLogo from '../../resources/svgs/sketch.svg'; import psLogo from '../../resources/svgs/ps.svg'; class AboutGrid extends Compon...
ajax/libs/jquery/1.8.3/jquery.js
askehansen/cdnjs
/*! * jQuery JavaScript Library v1.8.3 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time) */ (function(...
src/containers/unit/ModeLine/TopBar/MobileView/CommunityBar/index.js
mydearxym/mastani
import React from 'react' import { VIEW } from '@/constant' import TabBar from '@/widgets/TabBar' import TagBlock from './TagBlock' import { Wrapper, InnerWrapper, TabsWrapper, TagWrapper, } from '../../../styles/top_bar/mobile_view/community_bar' import { tabOnChange } from '../../../logic' const Community...
node_modules/react-icons/md/reply.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdReply = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m16.6 15c11.7 1.6 16.8 10 18.4 18.4-4.1-5.9-10-8.6-18.4-8.6v6.8l-11.6-11.6 11.6-11.6v6.6z"/></g> </Icon> ) export default MdReply
server/sonar-web/src/main/js/apps/overview/components/event.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
pages/api/circular-progress.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './circular-progress.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
spec/javascripts/jsx/discussions/components/DiscussionSettingsSpec.js
djbender/canvas-lms
/* * Copyright (C) 2018 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
app/app.js
MameeV/UPA
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { applyRouterMiddleware, Router, brows...
src/client/components/LoginButton.js
dgrcode/FCC-Voting-App
'use strict'; import React from 'react'; export default class LoginButton extends React.Component { clickHandler = () => { document.cookie = 'redirect=' + this.props.location.pathname; }; render () { return ( <a href={`/auth/${this.props.provider}`} className="login-social-btn" ...
ajax/libs/forerunnerdb/1.3.893/fdb-core+persist.js
Amomo/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...
src/components/Library/Library.react.js
nkprince007/muZic-electron
import AppActions from '../../actions/AppActions'; import { Link } from 'react-router'; import React from 'react'; class Library extends React.Component { static propTypes = { albums: React.PropTypes.array, children: React.PropTypes.object, filteredAlbums: React.PropTypes.array, fi...
test/integration/client-navigation/pages/nav/head-1.js
JeromeFitz/next.js
import React from 'react' import Head from 'next/head' import Link from 'next/link' export default (props) => ( <div id="head-1"> <Head> <meta name="description" content="Head One" /> <title>this is head-1</title> </Head> <Link href="/nav/head-2"> <a id="to-head-2">to head 2</a> </L...
frontend/src/components/more.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { gettext } from '../utils/constants'; const propTypes = { onShowMore: PropTypes.func.isRequired }; class More extends React.Component { render() { return ( <li className="list-show-more" onClick={this.props.onShowMore}> <spa...
src/AcmeGroup/LaboBundle/Resources/public/js/tinymce/plugins/legacyoutput/plugin.js
manu7772/assoRDS
/** * plugin.js * * Copyright, Moxiecode Systems AB * Released under LGPL License. * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing * * This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements, align * attributes and so...
src/svg-icons/device/network-cell.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNetworkCell = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/> </SvgIcon> ); DeviceNetworkCell = pure(DeviceNetworkCell); DeviceNetworkCell.displayNam...
imports/ui/components/residents/room-residents.js
gagpmr/met-hos
import { Middle, WidthSevenPaddingThreeLeft, WidthThirteenPaddingThreeLeft, h4 } from "../../../modules/styles"; import { graphql, withApollo } from "react-apollo"; import ApolloClient from "apollo-client"; import { Link } from "react-router-dom"; import MDSpinner from "react-md-spinner"; import Pro...
src/locations/CampusFeed.js
NewSpring/Apollos
import React from 'react'; import { Platform } from 'react-native'; import PropTypes from 'prop-types'; import { compose, withProps } from 'recompose'; import PaddedView from '@ui/PaddedView'; import { H7, BodyText } from '@ui/typography'; import styled from '@ui/styled'; import HorizontalTileFeed from '@ui/HorizontalT...
src/main.js
rihdus/webpack-dev-setup
import 'babel-polyfill' import 'normalize.css/normalize.css' import 'tachyons' // import './index.scss'; import React from 'react' import ReactDOM from 'react-dom' import attachFastClick from 'fastclick' const rootEl = document.getElementById('root'); // Remove 300ms tap delay on mobile devices attachFastClick.attac...
app/components/children/new.js
asvigos/zenpseudo
import React from 'react'; import axios from 'axios'; class New extends React.Component{ constructor(){ super(); this.state = { projectName: undefined, errorMsg: undefined, projects: [] }; } //==LIFE CYCLE== componentWillMount(){ this._fetchProjects(); } //====// //==HANDLERS== _fetchProje...
app/javascript/mastodon/features/ui/components/video_modal.js
Arukas/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from '../../video'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default class VideoModal extends ImmutablePureComponent { static propTypes = { m...
Samples/Branding.CustomCSS/Branding.CustomCSSWeb/Scripts/jquery-1.9.1.min.js
Rick-Kirkham/PnP
/* NUGET: BEGIN LICENSE TEXT jQuery v1.9.1 Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc...
node_modules/babel/node_modules/babel-core/lib/transformation/transformers/other/react-compat.js
john1jan/ReactNativeSignatureExample
"use strict"; exports.__esModule = true; exports.manipulateOptions = manipulateOptions; // istanbul ignore next function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newOb...
client/vendor/jquery.js
scriby/browser-harness
/*! 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...
fields/types/relationship/RelationshipColumn.js
linhanyang/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const moreIndicatorStyle = { color: '#bbb', fontSize: '.8rem', fontWeight: 500, marginLeft: 8, }; var RelationshipColumn = React.createClass({ displayName: 'Rel...
src/layouts/HomePage/index.js
IntellectionStudio/intellection.kz
import React from 'react'; import {Card, HeroVideo} from 'components'; import mapValues from 'utils/mapValues'; import Page from 'layouts/Page'; import styles from './index.css'; const renderCard = card => ( <Card key={`${card.title}-${card.text}`} card={card} /> ); const HomePage = props => ( <Page {...Page.pi...
ajax/libs/rxjs/2.1.18/rx.modern.js
saitheexplorer/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. (function (window, undefined) { var freeExports = typeof exports == 'object' && exports, freeModule = typeof module == 'object' && module && module.exports == freeExports &&...
app/containers/App.js
experimentalDataAesthetics/play-splom
/* eslint global-require: 0 */ import React from 'react'; import styles from './App.css'; /** * App is the parent top level component which just wraps the main content. */ export default function App({ children }) { return ( <div className={styles.app}> {children} </div> ); }
static/src/components/ProtectedView.js
idahu29/payment-redis
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as actionCreators from '../actions/data'; function mapStateToProps(state) { return { data: state.data, token: state.auth.token, loaded: state.data.loaded, isFetchin...
login-test/src/containers/NotFound.js
linearworlds/cognito-groups
import React from 'react'; export default() => ( <div className="well"> <h3>Sorry, page not found!</h3> </div> );
app/javascript/mastodon/features/list_editor/components/edit_list_form.js
primenumber/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...
src/components/Login.js
danialm/backgammon
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { clearCries } from '../actions'; class Login extends Component { componentDidMount() { this.props.dispatch(clearCries()); } render() { return( <div className='login-pa...
website/src/components/main.js
spacy-io/spaCy
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import patternBlue from '../images/pattern_blue.jpg' import patternGreen from '../images/pattern_green.jpg' import patternPurple from '../images/pattern_purple.jpg' import patternNightly from '../images/pattern_nightly.jpg...
ext/lib/site/topic-layout/topic-article-propuesta/admin-actions/component.js
DemocraciaEnRed/vicentelopez
import React from 'react' import t from 't-component' import urlBuilder from 'lib/url-builder' export default ({ topic, forum }) => { if (!topic.privileges.canEdit) return null return ( <div className='topic-article-content topic-admin-actions'> {topic.privileges.canEdit && ( <a href={...
src/server.js
YorkshireDigital/yorkshiredigital.com
/* global __DEV__, __PRODUCTION__ */ import { Server } from 'hapi'; import h2o2 from 'h2o2'; import * as _ from 'lodash'; import inert from 'inert'; import React from 'react'; import ReactDOM from 'react-dom/server'; import { RouterContext, match } from 'react-router'; import { Provider } from 'react-redux'; ...
src/common/selectors.js
adamarthurryan/dubdiff
// per http://redux.js.org/docs/recipes/ComputingDerivedData.html import { createSelector } from 'reselect' import React from 'react' import {Format, Show} from './constants' import * as Dubdiff from './util/dubdiff' const input = (state) => state.input const format = (state) => state.format const show = (state) =...
node_modules/pm2/node_modules/babel/node_modules/babel-core/lib/transformation/transformers/validation/react.js
glemarchand/photobooth
"use strict"; exports.__esModule = true; // istanbul ignore next function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj;...
tests/lib/rules/indent.js
kentcdodds/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @author Gyandeep Singh */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------...
web/components/Footer/index.js
earaujoassis/watchman
/* global Watchman */ import React from 'react'; import './style.css'; const footer = () => { return ( <div role="footer" className="footer-root"> <p>Copyright &copy; 2016-present, Ewerton Carlos Assis</p> <p>Watchman helps to keep track of automating services; a tiny continuous deployment service</...
packages/material-ui-icons/src/ScreenLockRotation.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ScreenLockRotation = props => <SvgIcon {...props}> <path d="M23.25 12.77l-2.57-2.57-1.41 1.41 2.22 2.22-5.66 5.66L4.51 8.17l5.66-5.66 2.1 2.1 1.41-1.41L11.23.75c-.59-.59-1.54-.59-2.12 0L2.75 7.11c-.59.59-...
assets/search-view/components/CategoryEmployees.js
janta-devs/nyumbani
import React, { Component } from 'react'; import ResultTable from './ResultTable'; import NavbarComponent from './NavbarComponent'; class CategoryEmployees extends Component{ constructor( context, props ){ super( context, props ); this.getLocalStorage(); this.data = this.getUserInformation(); } getLoca...
app/index.ios.js
1598692232/rn-xcf
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ // import App from './app' // import App from './Homepage' // import App from './demo/RefreshControlTest' // import App from './demo/swiper' // import App from './demo/animate2' // import App from './demo/img' import App from './r...
src/svg-icons/image/crop-portrait.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropPortrait = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"/> </SvgIcon> ); ImageCropPortrait = pure(ImageCropP...
app/components/SignUpPageComponent.js
abdelshok/graceShopper
import React from 'react' import RaisedButton from 'material-ui/RaisedButton' export default function SignUpPageComponent (props) { const nameHandleChange = props.nameHandleChange const emailHandleChange = props.emailHandleChange const passwordHandleChange = props.passwordHandleChange const confirmationPassChange ...
files/rxjs/2.3.19/rx.all.compat.js
vvo/jsdelivr
// 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 }; v...
webapp-src/src/Login/DeviceAuth.js
babelouest/glewlwyd
import React, { Component } from 'react'; import i18next from 'i18next'; import apiManager from '../lib/APIManager'; import messageDispatcher from '../lib/MessageDispatcher'; class DeviceAuth extends Component { constructor(props) { super(props); this.state = { config: props.config, userCod...
extension/ezjscore/design/standard/lib/yui/3.17.2/build/event-custom-base/event-custom-base.js
joaoinacio/ezpublish-legacy
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.En...
src/pages/Main/index.js
moxun33/react-mobx-antd-boilerplate
/** * created by moxingxum on 2018-07-08 22:06 * **/ import React, { Component } from 'react'; import getRouter from 'router/router'; import Nav from 'components/Nav/Nav'; import { Layout, Breadcrumb } from 'antd'; import './style.less'; const { Header, Content, Footer } = Layout; export default class index exte...
server/routers/main.js
ShpuntiK/AnimeStorage
var React = require('react'); var Router = require('react-router'); var DocumentTitle = require('react-document-title'); var api = require('../services/api'); var getInitialData = require('../services/get-initial-data'); var routes = require('../../assets/js/router/routes'); var Layout = require('../views/layout'); fu...
src/svg-icons/toggle/star-border.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStarBorder = (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.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1...
ajax/libs/inferno/1.0.4/inferno-devtools.js
pvnr0082t/cdnjs
/*! * inferno-devtools v1.0.4 * (c) 2017 Dominic Gannaway * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('./inferno'), require('./inferno-component')) : typeof define === 'function' && define.amd ? define(['in...
node_modules/react-icons/go/list-ordered.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const GoListOrdered = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m17.5 22.5h17.5v-5h-17.5v5z m0 10h17.5v-5h-17.5v5z m0-25v5h17.5v-5h-17.5z m-9.4 10h3v-10h-1.4l-3.3 0.9v2l1.7-0.1v7.2z m4.3 8c0-1.4-0.5-3-3.8-3-1.3 0-2.5 0.2-3.2 0...
dist/1.9.0/jquery-css-deprecated.js
michaelBenin/jquery-builder
/*! * jQuery JavaScript Library v1.9.0 -css,-effects,-offset,-dimensions,-deprecated * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-7 */ (...
ajax/libs/optimal-select/3.3.1/optimal-select.js
sashberd/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["OptimalSelect"] = factory(); else root[...
packages/shared/src/Device.js
mrtnzlml/native
// @flow strict import { Platform, Dimensions } from 'react-native'; import { type DimensionType } from '../types/Objects'; // Borrowed this code from https://github.com/react-community/react-native-safe-area-view const X_WIDTH = 375; const X_HEIGHT = 812; const XSMAX_WIDTH = 414; const XSMAX_HEIGHT = 896; const { ...
examples/with-react-multi-carousel/components/image.js
BlancheXu/test
import React from 'react' const Image = ({ url, alt }) => ( <img draggable={false} style={{ width: '100%', height: '100%', position: 'relative' }} src={url} alt={alt} /> ) export default Image
client/index.js
reactexcel/todo-relay-graphql-mongo
import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import '../node_modules/react-mdl/extra/material'; import Root from './root'; const rootNode = document.createElement('div'); document.body.appendChild(rootNode); const render = (Component) => { ReactDOM.re...
libs/jquery/jquery.js
jppampin/acn_coding_dojo
/*! * jQuery JavaScript Library v1.9.0 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-1-14 */ (function( window, undefined ) { "use strict";...
packages/lightning-components/LinkWithIcon/index.js
DaReaper/lightning-app
import React from 'react' import Box from '../Box' import Text from '../Text' import Media from '../Media' import Icon from '../Icon' export const LinkWithIcon = ({ onClick, label, icon, paddingBottom, color }) => { return ( <Box direction="row" align="center" verticalAlign="center" > ...
svg-icons/editor/insert-invitation.js
lunohq/material-ui-dist
'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...
ajax/libs/analytics.js/1.3.8/analytics.min.js
keicheng/cdnjs
(function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resol...
Examples/UIExplorer/NavigationExperimental/NavigationExperimentalExample.js
dubert/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
ajax/libs/forerunnerdb/1.3.362/fdb-core+views.min.js
pombredanne/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
ajax/libs/yui/3.8.0pr2/scrollview-base/scrollview-base.js
SaravananRajaraman/cdnjs
YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview * @submodule scrollview-base */ var getClassName = Y.ClassNameManager.getClassName, DOCUMENT = Y.config.doc, WINDOW = Y.config.win, I...
modules/gui/src/widget/form/panelButtons.js
openforis/sepal
import {FormPanelContext} from './panel' import {Panel} from 'widget/panel/panel' import PropTypes from 'prop-types' import React from 'react' export class FormPanelButtons extends React.Component { render() { return ( <FormPanelContext.Consumer> {props => { ...
src/component/component.js
APSL/redux-i18n
/* * Project: redux-i18n * File: component/component.js */ import React from 'react' import {PropTypes} from 'prop-types' import {setForceRefresh, setLanguage} from '../actions' import getTranslateFunction from '../getTranslateFunction'; class I18n extends React.Component { getChildContext() { const {lang...
src/components/books/edit-page/BookInformation.js
great-design-and-systems/cataloguing-app
import { ImageUpload, SearchSelector, TextInput } from '../../common/'; import { LABEL_AUTHOR, LABEL_BOOK_COVER, LABEL_EDITION, LABEL_ISBN_10, LABEL_ISBN_13, LABEL_NUMBER_OF_PAGES, LABEL_PUBLISHED_DATE, LABEL_PUBLISHER, LABEL_SERIES_TITLE, LABEL_SUB_TITLE, LABEL_TITLE, MESSAGE_AUTHOR_REQUIRED, ...