path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/js/containers/index.js | axuebin/react-blog | import React from 'react';
import { HashRouter, Route } from 'react-router-dom';
import HomeHeader from '../components/home/homeheader';
import HomeFooter from '../components/home/homefooter';
import Home from '../containers/home';
import Blog from '../containers/blog';
import Demo from '../containers/demo';
import Abo... |
lib/items/commit-detail-item.js | atom/github | import React from 'react';
import PropTypes from 'prop-types';
import {Emitter} from 'event-kit';
import {WorkdirContextPoolPropType} from '../prop-types';
import CommitDetailContainer from '../containers/commit-detail-container';
import RefHolder from '../models/ref-holder';
export default class CommitDetailItem ext... |
src/year-view.js | mateim24/react-input-calendar | import React from 'react'
import cs from 'classnames'
import moment from 'moment'
import 'moment-range'
import Cell from './cell'
import ViewHeader from './view-header'
module.exports = React.createClass({
propTypes: {
date: React.PropTypes.object,
minDate: React.PropTypes.any,
maxDate: R... |
src/components/InfoBar/InfoBar.js | biversen21/DocuPact_Hackathon | import React, {Component, PropTypes} from 'react';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import {load} from 'redux/modules/info';
@connect(
state => ({info: state.info.data}),
dispatch => bindActionCreators({load}, dispatch))
export default class InfoBar extends Compone... |
packages/material-ui-icons/src/BusinessCenterSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M10 16v-1H3.01v6H21v-6h-7v1h-4zm12-9h-6V5l-2-2h-4L8 5v2H2v7h8v-2h4v2h8V7zm-8 0h-4V5h4v2z" /></React.Fragment>
, 'BusinessCenterSharp');
|
node_modules/mongoose/node_modules/ms/test/support/jquery.js | techbubble/apdonors | /*!
* jQuery JavaScript Library v1.7.1
* 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/components/NavigationPills/__tests__/NavigationPill.spec.js | instacart/Snacks | import React from 'react'
import renderer from 'react-test-renderer'
import NavigationPill from '../NavigationPill'
it('renders active pill correctly', () => {
const tree = renderer.create(<NavigationPill isActive text={'Active pill'} />).toJSON()
expect(tree).toMatchSnapshot()
})
it('renders inactive pill correc... |
packages/fyndiq-icons/src/truck.js | fyndiq/fyndiq-ui | import React from 'react'
import SvgWrapper from './svg-wrapper'
const Truck = ({ className, color }) => (
<SvgWrapper className={className} viewBox="0 0 19 14">
<path
stroke={color}
fill="none"
d="m 6,11.5 h 4.5 v -11 h -10 v 11 H 2"
strokeLinecap="round"
strokeLinejoin="round"
... |
src/components/Page.js | weaintplastic/react-sketchapp | /* @flow */
import React from 'react';
import PropTypes from 'prop-types';
const propTypes = {
name: PropTypes.string,
children: PropTypes.node,
};
class Page extends React.Component {
static defaultProps = {
name: 'Page 1',
};
render() {
const { name, children } = this.props;
const _name =
... |
src/scenes/home/informationForm/informationForm.js | hollomancer/operationcode_frontend | import React, { Component } from 'react';
import { Redirect } from 'react-router-dom';
import Section from 'shared/components/section/section';
import FormButton from 'shared/components/form/formButton/formButton';
import { patchBackend } from 'shared/utils/apiHelper';
import Identifier from './formComponents/identifie... |
docs/js/libs/jquery-1.10.1.min.js | theodi/bothan | /*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.1.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.1",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
src/components/common/Loading.js | jinqiupeter/mtsr | import React from 'react';
import {StyleSheet, View, Text, ActivityIndicator} from 'react-native';
import {COLOR} from '../../config';
export default ({loading, containerStyle}) => {
let {loadingCount, defaultPrompt, prompt, enabled} = loading;
prompt = (prompt !== undefined ? prompt : defaultPrompt);
if (enabl... |
Examples/UIExplorer/js/UIExplorerBlock.js | jaggs6/react-native | /**
* Copyright (c) 2013-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.
*
* The examp... |
node_modules/jasmine-node/node_modules/jasmine-reporters/ext/env.rhino.1.2.js | cfsmrico/ga-tsp | /*
* Envjs core-env.1.2.13
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
*/
var Envjs = function(){
var i,
name,
override = function(){
for(i=0;i<arguments.length;i++){
... |
__test__/lib/I18n.spec.js | livedo/react-i18nify | /* global describe, test, expect, beforeAll, beforeEach */
import React from 'react';
import { mount, configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import {
setLocale, setTranslations, t, I18n,
} from '../../src';
describe('I18n.jsx', () => {
beforeAll(() => {
configure({ adapter:... |
src/components/Sidebar.react.js | torifat/jetbrains-icls-editor | import React from 'react';
// import React from 'react/addons';
import _ from 'underscore';
import ColorInput from './ColorInput.react';
import SidebarActionCreators from '../actions/SidebarActionCreators';
export default class Sidebar extends React.Component {
render () {
return (
<div style={_.defaults(... |
app/javascript/mastodon/components/admin/Dimension.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import api from 'mastodon/api';
import { FormattedNumber } from 'react-intl';
import { roundTo10 } from 'mastodon/utils/numbers';
import Skeleton from 'mastodon/components/skeleton';
export default class Dimension extends React.PureComponent {
static pr... |
src/views/Feed/FeedLabel.js | ben174/Semantic-UI-React | import cx from 'classnames'
import React, { PropTypes } from 'react'
import {
createHTMLImage,
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
import Icon from '../../elements/Icon'
function FeedLabel(props) {
const { children, className, content, icon, image } = props
const... |
examples/flux-chat/js/components/MessageSection.react.js | zpao/flow | /**
* This file is provided by Facebook for 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,
* FITNESS FOR A PARTICUL... |
frontend/src/MovieFile/Extras/ExtraFileRow.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import IconButton from 'Components/Link/IconButton';
import TableRowCell from 'Components/Table/Cells/TableRowCell';
import TableRow from 'Components/Table/TableRow';
import { icons } from 'Helpers/Props';
import titleCase from 'Utilities/Str... |
src/SM/SiteBundle/Resources/public/js/jquery-1.4.1.min.js | skflers61/shopmoi | /*!
* jQuery JavaScript Library v1.4.1
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
client/src/components/ReduxRouter.js | fraktio/teamdaily | import React from 'react';
import { Router } from 'react-router-dom';
import createBrowserHistory from 'history/createBrowserHistory';
const LOCATION_CHANGE = '@@router/LOCATION_CHANGE';
export const history = createBrowserHistory();
class ReduxRouter extends React.Component {
static propTypes = {
children: Re... |
src/Paper/Paper.spec.js | barakmitz/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Paper from './Paper';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Paper />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {context: {mu... |
admin/client/App/screens/Home/components/Section.js | alobodig/keystone | import React from 'react';
import getRelatedIconClass from '../utils/getRelatedIconClass';
class Section extends React.Component {
render () {
const iconClass = this.props.icon || getRelatedIconClass(this.props.id);
return (
<div className="dashboard-group" data-section-label={this.props.label}>
<div class... |
src/assets/icons/recycle.js | HackArdennes2017/Project06 | import React from 'react'
export default props =>
<svg viewBox="0 0 100 125" {...props}>
<path
d="M40.28 6.008l-15 26c-.56.99-.057 2.422 1 2.844l13 5c.886.347 1.999-.047 2.469-.875l8.343-15.032 7.094 11.438-4.531 4.125a2.053 2.053 0 0 0-.544 2.217 2.053 2.053 0 0 0 1.888 1.283h18c.845 0 1.655-.6 1.906-1.40... |
src/components/Assets/Envelope.js | LifeSourceUA/lifesource.ua | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import svg from 'lib/svg';
@svg({
width: 40,
height: 30
})
export default class Envelope extends Component {
static propTypes = {
color: PropTypes.string.isRequired
};
render() {
const { color } = this.pr... |
app/components/Editor/__tests__/Editor-test.js | TailorDev/monod | import React from 'react';
import { mount, shallow } from 'enzyme';
import { expect } from 'chai';
import Loader from 'react-loader';
import sinon from 'sinon';
// see: https://github.com/mochajs/mocha/issues/1847
const { before, describe, it } = global;
import Editor, { EditorModes } from '../presenter';
import Mark... |
lib/components/Application.js | ejwill04/shoot-the-breeze | import React from 'react';
import firebase, { reference, signIn } from '../firebase';
import MessageInput from './MessageInput';
import { RenderMessages } from './RenderMessages';
import FilterBar from './FilterBar';
import { Login } from './Login';
import UserList from './UserList';
export default class Application... |
ajax/libs/algoliasearch.zendesk-hc/2.17.4/algoliasearch.zendesk-hc.min.js | sufuf3/cdnjs | /*!
* Algolia Search for Zendesk's Help Center v2.17.4
* 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... |
ajax/libs/angular.js/0.10.4/angular.js | NameFILIP/cdnjs | /**
* @license AngularJS v0.10.4
* (c) 2010-2011 AngularJS http://angularjs.org
* License: MIT
*/
'use strict';
(function(window, document, undefined){
////////////////////////////////////
if (typeof document.getAttribute == $undefined)
document.getAttribute = function() {};
/**
* @ngdoc function
* @name ang... |
src/components/loginForm.js | aleksa95/universal-redux-boilerplate | import React from 'react';
import { Field, reduxForm } from 'redux-form';
import formGroup from './authenticationFormGroup';
import { authFormsValidator } from '../actions/auth-actions';
const styles = require('../containers/Authentication/_authentication.scss');
let LoginForm = ({ handleSubmit, pristine, submitting,... |
actor-apps/app-web/src/app/components/DialogSection.react.js | taimur97/actor-platform | import _ from 'lodash';
import React from 'react';
import { PeerTypes } from 'constants/ActorAppConstants';
import MessagesSection from 'components/dialog/MessagesSection.react';
import TypingSection from 'components/dialog/TypingSection.react';
import ComposeSection from 'components/dialog/ComposeSection.react';
i... |
server/sonar-web/src/main/js/apps/component-measures/details/drilldown/ComponentsListRow.js | Builders-SonarSource/sonarqube-bis | /*
* 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... |
Examples/UIExplorer/GeolocationExample.js | aziz-boudi4/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.522/fdb-core+views.js | x112358/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/svg-icons/action/schedule.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSchedule = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-youtube/7.4.0/test/helpers/shallowRender.js | Akkuma/npm-cache-benchmark | /**
* Module dependencies
*/
import React from 'react';
import TestUtils from 'react-dom/test-utils';
import setupYouTube from './setupYouTube';
/**
* Helper for testing the output of a component's `render` method
*
* @param {Object} [props] - component instance props
* @returns {Object}
*/
con... |
src/client/components/ProConComponent/ProConPage/PageElements/Topics.js | psu-hci/ReactiveThinker | import React from 'react';
import './Topics.less';
import $ from 'jquery';
// var TopicNames = ['Future of work', 'Community', 'Big Data', 'Shallows'];
class Topics extends React.Component {
constructor (props) {
super(props);
}
changeTopic (index) {
this.props.changeTopic(index);
}
render () {
... |
src/isomorphic/classic/types/__tests__/ReactPropTypes-test.js | spt110/react | /**
* Copyright 2013-2015, 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.
*
* @emails react-co... |
components/profile.js | pho3nixf1re/followupboss-example | import React from 'react';
function Profile({ user }) {
let { name, email, role } = user;
return (
<div>
<h2>{name}</h2>
<p><strong>Email:</strong> <a href={`mailto:${email}`}>{email}</a></p>
<p><strong>Role:</strong> {role}</p>
</div>
);
}
Profile.prop... |
tools/template/spa/components/tab/index.js | SteamerTeam/steamer-react | import React, { Component } from 'react';
import pureRender from 'pure-render-decorator';
import {
LATEST_NEWS,
LIKE_NEWS
} from '../../../common/constants';
import Touch from 'touch';
import classNames from 'classnames';
require('./index.less');
function TabItem(item, key) {
return (
<li
data-tab={item.label... |
node_modules/react/lib/Transaction.js | achamberland/react-view-cube | /**
* Copyright 2013-2015, 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.
*
* @providesModule ... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/Container.js | GoogleCloudPlatform/prometheus-engine | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules, tagPropType } from './utils';
const propTypes = {
tag: tagPropType,
fluid: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
className: PropTypes.string,
cssModule: PropTypes.obj... |
admin/src/component/PageSwitcher.js | zentrope/webl | //
// Copyright (c) 2017 Keith Irwin
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published
// by the Free Software Foundation, either version 3 of the License,
// or (at your option) any later version.
//
// This program is distri... |
ajax/libs/yui/3.1.2/loader/loader-base.js | wallin/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
(function() {
var VERSION = Y.version,
CONFIG = Y.config,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSION = ... |
examples/js/style/demo.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
require('./style.css');
import React from 'react';
import TrClassStringTable from './tr-class-string-table';
import TrClassFunctionTable from './tr-class-function-table';
import TdClassStringTable from './td-class-string-table';
import TdClassFunctionTable from './td-class-function-table';
impor... |
ajax/libs/yui/3.16.0/event-focus/event-focus-min.js | solojavier/cdnjs | /*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,fu... |
src/index.js | hyy1115/react-redux-webpack3 | import React from 'react'
import ReactDOM from 'react-dom'
import { createBrowserHistory } from 'history'
import { createStore, applyMiddleware, compose } from 'redux'
// import { Provider } from 'react-redux'
import { StoreContext } from 'redux-react-hook'
import { connectRouter, routerMiddleware, ConnectedRouter } fr... |
packages/cf-component-pagination/test/Pagination.js | mdno/mdno.github.io | import React from 'react';
import {
Pagination,
PaginationRoot
} from '../../cf-component-pagination/src/index';
import { felaSnapshot } from 'cf-style-provider';
test('should render', () => {
const snapshot = felaSnapshot(
<Pagination PaginationRoot={PaginationRoot}>Pagination</Pagination>
);
expect(sna... |
src/shared/utils/__tests__/escapeTextContentForBrowser-test.js | silppuri/react | /**
* Copyright 2013-2015, 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.
*
* @emails react-co... |
test/JumbotronSpec.js | apkiernan/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import ReactDOM from 'react-dom';
import Jumbotron from '../src/Jumbotron';
describe('<Jumbotron>', () => {
it('Should output a div with content', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Jumbotron>
... |
src/components/Link/index.js | oct16/Blog-FE | import React from 'react';
import PropTypes from 'prop-types';
import history from 'history';
import config from 'config';
import s from './link.css';
import cs from 'classnames'
function isLeftClickEvent(event) {
return event.button === 0;
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altK... |
example/src/App.js | doomsower/react-native-vkontakte-login | import React from 'react';
import {View, TextInput, Text, StyleSheet} from 'react-native';
import VKLogin from 'react-native-vkontakte-login/lib/index';
import Button from './Button';
import Logs from './Logs';
const TEST_IMAGE = require('./assets/ycombinator.png');
const styles = StyleSheet.create({
container: {
... |
app/main.js | wojciech-panek/study-group-7-ssr | /* eslint-disable */
/**
* 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 React from 'react';
import ReactDOM from 'react-dom';
// Import all the third party stuff
import { AppContainer }... |
node_modules/react-router-dom/node_modules/react-router/es/Redirect.js | victor335882/ReduxSimpleStarter-4 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
ajax/libs/F2/1.3.1/f2.no-easyXDM.js | crccheck/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d... |
node_modules/react-router/es/IndexRoute.js | SpaceyRezum/react-trivia-game | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... |
ajax/libs/material-ui/5.0.0-alpha.21/Checkbox/Checkbox.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { refType } from '@material-ui/utils';
import SwitchBase fro... |
ajax/libs/6to5/2.7.3/browser-polyfill.js | prosenjit-itobuz/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/containers/chat/ChatPage.js | MichaelMure/Arbore | // @flow
import { connect } from 'react-redux'
import type { Store } from 'utils/types'
import ChatPage from 'components/chat/ChatPage'
import * as ui from 'actions/ui'
import { Page } from 'models/UiState'
const mapStateToProps = (state: Store) => ({
contacts: state.contactList,
})
const mapDispatchToProps = dispa... |
ajax/libs/6to5/1.14.3/browser-polyfill.js | GaryChamberlain/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/add-files-button.js | MCeddy/nodefilestore | import React from 'react';
import classnames from 'classnames';
import FileViewModel from '../viewmodels/file.viewmodel';
export default class AddFilesButton extends React.Component {
constructor(props) {
super(props);
}
render() {
const btnClasses = classnames('btn-floating', 'btn-large'... |
ui/src/Components/App.js | hloughrey/js-end-to-end-app | import React, { Component } from 'react';
import Routes from './Routes/Routes';
import Header from './Header/Header';
export default class App extends Component {
constructor() {
super();
this.state = {
menu: [
{Route: 'Home', URL: '#'},
{Route: 'Cruises', URL: 'Cruises'},
{Route: 'Bookings', URL... |
tests/modules/newGameTest.js | mordrax/cotwmtor | import React from 'react';
import ReactDom from 'react-dom';
import {shallow} from 'enzyme';
import * as cotw from '/core/cotwContent.js';
import * as map from '/core/maps.js';
import * as Item from '/core/item.js';
import * as actions from '/actions/index.js';
import storeFactory from '/tests/core/testStore.js';
imp... |
demo/ClickCounterAtom.js | upworthy/react-mobiledoc-editor | import React from 'react';
import { classToDOMAtom } from '../src';
/**
* Component-based atoms are rendered with these props:
*
* - `value`: The textual representation to for this atom.
* - `payload`: The payload for this atom. Please note the payload object is
* disconnected from the atom's representation in... |
ajax/libs/yui/3.14.0/event-focus/event-focus-coverage.js | sreym/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-focus/event-focus.js']) {
__coverage__['build/event-focus/event-focus.js'] = {"path":"build/event-focus/event-focus.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"... |
src/svg-icons/av/playlist-play.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistPlay = (props) => (
<SvgIcon {...props}>
<path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/>
</SvgIcon>
);
AvPlaylistPlay = pure(AvPlaylistPlay);
AvPlaylistPlay.displayName = '... |
ajax/libs/react-native-web/0.15.5/modules/UnimplementedView/index.min.js | cdnjs/cdnjs | function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}import View from"../../exports/View";import React from"react";var UnimplementedView=f... |
ajax/libs/elfinder/2.1.24/js/i18n/elfinder.nl.min.js | froala/cdnjs | !function(e,n){"function"==typeof define&&define.amd?define(["elfinder"],n):"undefined"!=typeof exports?module.exports=n(require("elfinder")):n(e.elFinder)}(this,function(e){e.prototype.i18.nl={translator:"Barry vd. Heuvel <barry@fruitcakestudio.nl>",language:"Nederlands",direction:"ltr",dateFormat:"d-m-Y H:i",fa... |
node_modules/material-ui/svg-icons/av/movie.js | soniacq/LearningReact | '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... |
app/components/Footer/index.js | sulthan16/awesome-jr-frontend-sulthan | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from 'components/A';
import LocaleToggle from 'containers/LocaleToggle';
import Wrapper from './Wrapper';
import messages from './messages';
function Footer() {
return (
<Wrapper>
<section>
<FormattedMessage {...mes... |
examples/official-storybook/stories/addon-toolbars.stories.js | kadirahq/react-storybook | import React from 'react';
import { styled } from '@storybook/theming';
export default {
title: 'Addons/Toolbars',
};
const getCaptionForLocale = (locale) => {
switch (locale) {
case 'es':
return 'Hola!';
case 'fr':
return 'Bonjour!';
case 'zh':
return '你好!';
case 'kr':
ret... |
loc8-react-redux-front-end/src/components/Home/Tags.js | uberslackin/django-redux-loc8-ARweb | import React from 'react';
import agent from '../../agent';
const Tags = props => {
const tags = props.tags;
if (tags) {
return (
<div className="tag-list">
{
tags.map(tag => {
const handleClick = ev => {
ev.preventDefault();
props.onClickTag(tag,... |
examples/js/selection/select-bgcolor-table.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
ajax/libs/jointjs/0.9.2/joint.js | boneskull/cdnjs | /*! JointJS v0.9.2 - JavaScript diagramming library 2014-09-16
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/.
*/
/*!
* jQuery JavaScript Library v2.0.3
* http://jquery... |
src/svg-icons/image/crop-original.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropOriginal = (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 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z"... |
src/routes/privacy/index.js | siddhant3s/crunchgraph | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 '../../compo... |
javascript/containers/stockcard-page.js | kdoran/moriana-react | import React from 'react'
import { connect } from 'react-redux'
import { getStock, addPatientIds } from 'store/stock'
import { getLocations } from 'store/locations'
import h from 'utils/helpers'
import download from 'utils/download'
import QuantityByBatch from 'components/quantity-by-batch'
import AMCTable from 'compon... |
src/browser/ui/dom/__tests__/Danger-test.js | hzoo/react | /**
* Copyright 2013-2015, 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.
*
* @emails react-co... |
js/components/loaders/Spinner.android.js | soltrinox/MarketAuth.ReactNative |
import React from 'react';
import ProgressBar from 'ProgressBarAndroid';
import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent';
import computeProps from 'native-base/Utils/computeProps';
export default class SpinnerNB extends NativeBaseComponent {
prepareRootProps() {
const type = {... |
node_modules/react-bootstrap/es/ControlLabel.js | vietvd88/developer-crawler | 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 ... |
docs/app/Examples/elements/Image/States/ImageExampleHidden.js | clemensw/stardust | import React from 'react'
import { Image } from 'semantic-ui-react'
const ImageExampleHidden = () => (
<Image src='/assets/images/wireframe/image.png' size='small' hidden />
)
export default ImageExampleHidden
|
test/datepicker_test.js | BrunoAlcides/react-datepicker | import React from 'react'
import ReactDOM from 'react-dom'
import TestUtils from 'react-addons-test-utils'
import { mount } from 'enzyme'
import defer from 'lodash/defer'
import DatePicker from '../src/datepicker.jsx'
import Day from '../src/day'
import TetherComponent from '../src/tether_component.jsx'
import Timezone... |
app/containers/MainPage/index.js | rodrigoTrespalacios/project-bank | /*
*
* MainPage
*
*/
import React from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import selectMainPage from './selectors';
export class MainPage extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<div>
<He... |
src/svg-icons/editor/format-indent-increase.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatIndentIncrease = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>
</SvgIcon>
);
EditorFormatIndentIncrease... |
docs/app/Examples/views/Feed/Variations/FeedExampleSizeSmall.js | ben174/Semantic-UI-React | import React from 'react'
import { Feed, Header } from 'semantic-ui-react'
const FeedExampleSizeSmall = () => (
<Feed size='small'>
<Header as='h4'>Followers Activity</Header>
<Feed.Event>
<Feed.Content>
<Feed.Summary>
<a>Elliot Fu</a> added <a>Jenny Hess</a> as a friend
</Fe... |
node_modules/material-ui/svg-icons/notification/phone-paused.js | jotamaggi/react-calendar-app | '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... |
src/SplitButton.js | zanjs/react-bootstrap | import React from 'react';
import BootstrapMixin from './BootstrapMixin';
import Button from './Button';
import Dropdown from './Dropdown';
import SplitToggle from './SplitToggle';
class SplitButton extends React.Component {
render() {
let {
children,
title,
onClick,
target,
href,
... |
node_modules/rc-slider/es/common/Steps.js | scaulfield01/HallHorn | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import classNames from 'classnames';
import warning from 'warning';
var calcPoints = function calcPoints(vertical, marks, dots, step, min, max) {
warning(dots ? step > ... |
challenge4/mine/node_modules/express/node_modules/connect/node_modules/qs/test/browser/jquery.js | Betisman/node-workshop-learning | /*!
* jQuery JavaScript Library v1.6.2
* 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.
... |
app/components/ProjectItem.js | DMXL/dm-react-resume | import React from 'react';
const ProjectItem = props => {
const getHighlights = props.data.highlights.map(function(item, index) {
return (<li key={index}>{item}</li>);
});
const getSkills = props.data.skills.map(function(item, index) {
let tagClass = "tag";
/*
const regBack... |
ajax/libs/material-ui/5.0.0-alpha.16/modern/useScrollTrigger/useScrollTrigger.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import*as React from"react";function defaultTrigger(e,t){const{disableHysteresis:r=!1,threshold:o=100,target:s}=t,n=e.current;return s&&(e.current=void 0!==s.pageYO... |
client/node_modules/uu5g03/dist-node/bricks/alert.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, ColorSchemaMixin, ContentMixin} from '../common/common.js';
import Link from './link.js';
import './alert.less';
export const Alert = React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMixin,
ColorSchemaMixin,
Conten... |
app/components/Home.js | ikafire/OpenObjectMarker | import React from 'react';
import HomeStore from '../stores/HomeStore';
import cookie from 'react-cookie';
class Home extends React.Component {
constructor(props) {
super(props);
this.state = HomeStore.getState();
}
renderAuth() {
if (!this.state.user) {
this.state.user = cookie.load('use... |
app/components/image/ImageItem.js | Hirico/supic | /**
* Created by apple on 2017/7/19.
*/
import React, { Component } from 'react';
import { img } from 'antd';
import pic3 from '../../asset/picture/beach.jpg';
import styles from './ImageItem.css';
class ImageItem extends Component {
render() {
return (
<div className={styles.my_div} style={{ margin: 0, ... |
bower_components/bootstrap-datepicker/tests/assets/jquery-1.7.1.min.js | csooraj/wpeditor.github.io | /*! 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... |
sites/all/modules/jquery_update/replace/jquery/1.8/jquery.js | jonijona1/drupal-dohnut | /*!
* 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/components/EventTable.js | branchology/branchology | import React from 'react';
import NoRecords from './NoRecords';
const EventTable = ({events, title = 'Events'}) => (
<div>
<div className="box box-info">
<div className="box-header with-border">
<h3 className="box-title">
<i className="fa fa-calendar" /> {title}
</h3>
&nbs... |
node_modules/grunt-contrib-watch/node_modules/tiny-lr/node_modules/qs/test/browser/jquery.js | epsiro/pcb-footprint-editor | /*!
* jQuery JavaScript Library v1.6.2
* 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.
... |
react/src/components/awards/SprkAward.stories.js | sparkdesignsystem/spark-design-system | import React from 'react';
import SprkAward from './SprkAward';
import { markdownDocumentationLinkBuilder } from '../../../../storybook-utilities/markdownDocumentationLinkBuilder';
export default {
title: 'Components/Award',
component: SprkAward,
decorators: [(story) => <div className="sprk-o-Box">{story()}</div... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.