path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
Realization/frontend/czechidm-core/src/components/basic/Table/SortIcon.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
//
import { makeStyles } from '@material-ui/core/styles';
//
import Icon from '../Icon/Icon';
const ASC = 'ASC';
const DESC = 'DESC';
const useStyles = makeStyles((theme) => ({
root: {
color: theme.palette.text.h... |
website/core/WebPlayer.js | xiayz/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
app/components/List/index.js | jdm85kor/sentbe | import React from 'react';
import Ul from './Ul';
import Wrapper from './Wrapper';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item, index) => (
<ComponentToRender key={... |
packages/material-ui-icons/src/FormatListBulletedTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M7 5h14v2H7z" /><circle cx="4" cy="6" r="1.5" /><path d="M7 11h14v2H7zm0 6h14v2H7zm-3 2.5c.82 0 1.5-.68 1.5-1.5s-.67-1.5-1.5-1.5-1.5.68-1.5 1.5.68 1.5 1.5 1.5z" /><circle cx="4" cy="12... |
src/client/components/pages/parts/revisions-table.js | bookbrainz/bookbrainz-site | /*
* Copyright (C) 2020 Prabal Singh
*
* 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 2 of the License, or
* (at your option) any later version.
*
* This program is distr... |
springboot/GReact/node_modules/react-bootstrap/es/Tab.js | ezsimple/java | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import TabContainer from... |
ajax/libs/forerunnerdb/1.3.673/fdb-all.js | hare1039/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/assets/scripts/components/map-legend.js | orma/openroads-vn-analytics | import React from 'react';
import {
getContext
} from 'recompose';
import lineColors from '../utils/line-colors';
import T from './t';
const renderTitle = (layer) => {
if (layer === 'iri_mean') {
return <T>IRI</T>;
} else if (layer === 'or_width') {
return <T>Width</T>;
} else if (layer === 'or_condit... |
modules/__tests__/isActive-test.js | frankleng/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import IndexRoute from '../IndexRoute'
import Router from '../Router'
import Route from '../Route'
describe('isActive', function () {
let node
beforeEach(function () {
node =... |
docs/src/app/components/pages/components/DatePicker/ExampleControlled.js | mmrtnz/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
/**
* `DatePicker` can be implemented as a controlled input,
* where `value` is handled by state in the parent component.
*/
export default class DatePickerExampleControlled extends React.Component {
constructor(props) {
super(props)... |
app/components/Square.js | natac13/Tic-Tac-Toe-Game | import React from 'react';
import classnames from 'classnames';
const Square = ({ placeMarker, square, marker }) => {
let squareClass = classnames({
'square': true,
'active': !!marker,
'user': marker === 'X',
'comp': marker === 'O'
});
return (
<button className={... |
grails-app/assets/javascripts/dependencies/node_modules/react/lib/ReactNativeTagHandles.js | puaykai/noodles | /**
* 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... |
ajax/libs/primereact/3.3.3/components/dropdown/DropdownItem.min.js | cdnjs/cdnjs | "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DropdownItem=void 0;var _react=_interopRequireWildcard(require("react")),_propTypes=_interopRequireDefault(require("prop-types")),_classnames=_interopRequireDefault(require("classnames"));function _interopRequireDefault(e){return e&&e.__esModul... |
imports/ui/components/molecules/Loading/Loading.js | latotty/meteor-sweeper | import React from 'react';
import PropTypes from 'prop-types';
import styled, { keyframes } from 'styled-components';
const rotate360 = keyframes`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`;
const BaseLoading = ({ className }) => (
<svg
className={className}
versi... |
app/components/dashboard/home/Entry.js | mchlltt/mementoes | // Import dependencies and components.
import React from 'react';
import moment from 'moment';
import Tags from '../calendar/Tags';
// Create component.
let Entry = React.createClass({
render: function render() {
return(
<div>
<span>Date: {moment(this.props.entry.date.split('T')... |
src/routes/Equipment/routes/ShuireBox/containers/index.js | CoderNie/Equipment-Book-Web-App | import { connect } from 'react-redux'
import ShuireBox from '../components'
const mapStateToProps = (state, ownProps) => ({
username:state.user.username
})
export default connect(mapStateToProps, null)(ShuireBox)
|
src/svg-icons/maps/directions-transit.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsTransit = (props) => (
<SvgIcon {...props}>
<path d="M12 2c-4.42 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.... |
ajax/libs/yui/3.7.2/event-focus/event-focus-min.js | owcc/cdnjs | YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(a),c=e.stamp(f.... |
src/components/PasswordInput/PasswordInput.js | StudentOfJS/ps-react-rod | import React from 'react';
import PropTypes from 'prop-types';
import ProgressBar from '../ProgressBar';
import EyeIcon from '../EyeIcon';
import TextInput from '../TextInput';
/** Password input with integrated label, quality tips, and show password toggle. */
class PasswordInput extends React.Component {
construct... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | YapEro/simpleTrade | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/timer/Timer.js | crisu83/timebox | import React from 'react';
import TimerConstants from './constants';
import AppConstants from '../app/constants';
import store from '../app/store';
class Timer extends React.Component {
componentDidMount() {
this.unsubscribe = store.subscribe(() => {
this.forceUpdate();
});
}
componentWillUnmount(... |
vendor/twbs/bootstrap/js/tests/vendor/jquery.js | c0710204/Symfony-hostM | /*! 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... |
src/ui/molecule/HelpScreen/index.js | jkubos/tickator-ide | import React from 'react'
import classNames from 'classnames'
import styles from './style.less'
import {CenteredContent} from '~/src/ui/quark/CenteredContent'
export class HelpScreen extends React.Component {
render() {
return <CenteredContent>
<h1>Tickator IDE 0.0.1</h1>
<div>
<p className... |
src/js/components/global/Header.js | jorgemxm/r-movies | 'use strict';
import React from 'react';
import { Link } from 'react-router-dom';
//-----------
const Header = props => (
<header className="app--header">
<nav className="nav has-shadow" role="navigation">
<div className="container">
<div className="nav-left">
<Link className="nav-item i... |
src/DJBot/static/scripts/index_bundle.js | krahser/djbot | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"obj... |
app/javascript/mastodon/features/compose/components/character_counter.js | 3846masa/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { length } from 'stringz';
class CharacterCounter extends React.PureComponent {
static propTypes = {
text: PropTypes.string.isRequired,
max: PropTypes.number.isRequired,
};
checkRemainingText (diff) {
if (diff < 0) {
return... |
tests/site7/code2/homepage.js | dominikwilkowski/cuttlebelle | import PropTypes from 'prop-types';
import React from 'react';
/**
* The Homepage component for the homepage layout
*/
const Homepage = ({
title,
stylesheet,
header,
main,
footer
}) => (
<html>
<head>
<title>{ title }</title>
{ stylesheet && <link rel="stylesheet" href={ `/assets/css/${ stylesheet }.css... |
src/routes/notFound/index.js | LevelPlayingField/levelplayingfield | /* @flow */
/**
* 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 NotFound fro... |
src/js/components/share/linkedin-share-link.js | navidonskis/silverstripe-react-theme | import React from 'react';
import ShareLink from './share-link';
class LinkedInShareLink extends ShareLink {
shareUrl() {
let title = decodeURIComponent(this.getWindowTitle());
let currentLink = this.state.currentLink;
return `https://twitter.com/intent/tweet?text=${title}&url=${currentLi... |
src/components/Feedback/Feedback.js | zuban/edhunter | import React from 'react';
import {Container, Row, Col, Form, FormGroup, Label, Input} from 'reactstrap';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Feedback.css';
class Feedback extends React.Component {
render() {
return <Container className={s.root} fluid>
<div cla... |
fixtures/attribute-behavior/src/attributes.js | tomocchino/react | function getProperty(propertyName) {
return el => el[propertyName];
}
function getAttribute(attributeName) {
return el => {
if (el.namespaceURI === '') {
throw new Error('Not an HTML element.');
}
return el.getAttribute(attributeName);
};
}
function getSVGProperty(propertyName) {
return el =... |
packages/material-ui-icons/src/SignalWifi2BarSharp.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 fillOpacity=".3" d="M23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5 23.64 7z" /><path d="M4.79 12.52L12 21.5l7.21-8.99C18.85 12.24... |
src/example/WithDeprecationWarningExample.js | klarna/higher-order-components | import React from 'react'
import { withDeprecationWarning } from '../'
export default withDeprecationWarning({
readMore: 'http://example.com/why-old-component-is-deprecated',
useInstead: 'Underlined',
name: 'DeprecatedComponent',
})(function DeprecatedComponent() {
return (
<article>
<h1>withDeprecat... |
app/scripts/__tests__/itemlist-test.js | redcrazyheart/weather | // __tests__/itemlist-test.js
// jest.dontMock('../components/itemList.jsx');
//
// import React from 'react';
// import ReactDOM from 'react-dom';
// import TestUtils from 'react-addons-test-utils';
//
// let ItemList = require('../components/itemList.jsx');
//
// describe('item list', function() {
//
// it('displa... |
resources/js/Admin/components/Form/SelectField.js | DoSomething/northstar | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import SelectInput from '../../../components/FormInput/SelectInput';
import ChevronArrowIcon from '../../../components/artifacts/ChevronArrowIcon/ChevronArrowIcon';
/**
*
* Select input field component for Admin UI.
... |
assets/5ea0b123/jquery.js | gunnit/spob | /*!
* 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)
*... |
components/MLinkCard.js | vinaypuppal/linklet-app | import React from 'react'
import { truncateString } from '../utils'
import Highlighter from 'react-highlight-words'
import LazyLoad from 'react-lazyload'
import distanceInWordsToNow from 'date-fns/distance_in_words_to_now'
import format from 'date-fns/format'
import isThisMonth from 'date-fns/is_this_month'
import FaBo... |
wp-includes/js/jquery/jquery.js | amang-cuelogic/wp_test | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/Tabs/__tests__/Tab-test.js | react-mdl/react-mdl | /* eslint-env mocha */
import expect from 'expect';
import React from 'react';
import { render } from '../../__tests__/render';
import { Tab } from '../';
describe('Tabs', () => {
describe('Tab', () => {
it('should render a link with the specific css classes', () => {
const output = render(<Tab... |
examples/huge-apps/components/Dashboard.js | carlosmontes/react-router | import React from 'react';
import { Link } from 'react-router';
class Dashboard extends React.Component {
render () {
let { courses } = this.props;
return (
<div>
<h2>Super Scalable Apps</h2>
<p>
Open the network tab as you navigate. Notice that only the amount of
... |
www/src/pages/acknowledgements.html.js | yangshun/react | /**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
'use strict';
import Container from 'components/Container';
import Header from 'components/Header';
import Reac... |
examples/official-storybook/components/DocgenButton.js | storybooks/react-storybook | import React from 'react';
import PropTypes from 'prop-types';
/**
* DocgenButton component description imported from comments inside the component file,
*
* *Important Note*: Unlike with normal `<input>` elements, setting this will
* not validate the input contents. This is because in this project we use
* Formi... |
client/piece.js | carpeliam/kriegspieljs | import React from 'react';
import PropTypes from 'prop-types';
import { DragSource } from 'react-dnd';
export function character(props) {
let { type, color } = props;
let isWhite = color > 0;
switch (type) {
case 1: // PAWN
return isWhite ? '♙' : '♟';
case 2: // KNIGHT
return isWhite ? '♘' : ... |
app/scripts/Widget/__tests__/components/Tag.spec.js | igr-santos/bonde-client | import React from 'react'
import { expect } from 'chai'
import { mount } from 'enzyme'
import { Tag } from '../../components'
describe('<Tag />', () => {
let component
const props = {
value: 'Igor Santos <igor@nossascidades.org>'
}
beforeEach(() => {
component = mount(<Tag {...props} />)
})
it(... |
system/src/routes/Document/containers/EditDocumentViewContainer/index.js | axmatthew/react | import React, { Component } from 'react';
import { connect } from 'react-redux';
import documentModule from '../../../../modules/documents';
import EditDocumentView from '../../components/EditDocumentView';
import { baseMapStateToProps } from '../../../../common/container-helpers';
class EditDocumentViewContainer exte... |
client/src/scenes/application/scenes/Project/scenes/ProjectsList/presentation.js | YeFFreY/bernard | import React from 'react';
import { Container, Pusher, List, ListItem, ItemImage, ItemContent, FocusBox } from 'components/layout';
import { LinkButton } from 'components/form';
import { H1, H3, P } from 'components/typography';
import { addEllipsis } from 'utils';
const ProjectListItem = ({ project }) => (
<ListIte... |
react-ui/src/utils/matchRoutes.js | testbhearsum/balrog | import { matchPath } from 'react-router-dom';
// Returns an array of matched routes.
const matchRoutes = (path, routes, branch = []) => {
const matchingRoute = routes.find(route =>
matchPath(path, {
path: route.path,
exact: route.exact,
})
);
if (matchingRoute) {
branch.push(matchingRout... |
stories/Modal.stories.js | maputnik/editor | import React from 'react';
import Modal from '../src/components/Modal';
import {action} from '@storybook/addon-actions';
import {Wrapper} from './ui';
import {withA11y} from '@storybook/addon-a11y';
export default {
title: 'Modal',
component: Modal,
decorators: [withA11y],
};
export const Basic = () => (
<Wr... |
ajax/libs/cleave.js/0.4.11/cleave.js | sashberd/cdnjs | ;(function(window, document, undefined) {
'use strict';
/**
* Construct a new Cleave instance by passing the configuration object
*
* @param {String / HTMLElement} element
* @param {Object} opts
*/
var Cleave = function (element, opts) {
var owner = this;
if (typeof element === 'string') {
owner... |
ajax/libs/yui/3.10.0/datatable-body/datatable-body.js | mikelambert/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
app/containers/create-movement/components/movement-caravana-list/index.js | kimurakenshi/caravanas | import { connect } from 'react-redux';
import { removeCaravanaFromDraftMovement } from 'app/actions/movement-actions/movement-draft-action';
import React, { Component } from 'react';
import { getDraftMovement } from 'app/reducers';
import styles from './style/movement-caravana-list.scss';
import {
Table,
TableBody,... |
src/App.js | plimble/aloy | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
ajax/libs/react/15.6.1/react-dom-server.js | dakshshah96/cdnjs | /**
* ReactDOMServer v15.6.1
*/
;(function(f) {
// CommonJS
if (typeof exports === "object" && typeof module !== "undefined") {
module.exports = f(require('react'));
// RequireJS
} else if (typeof define === "function" && define.amd) {
define(['react'], f);
// <script>
} else {
var g;
... |
ajax/libs/babel-core/5.0.11/browser.min.js | dc-js/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.babel=e()}}(function(){var e,t,n;return function r(e,t,... |
test/helpers/shallowRenderHelper.js | cma290/reactScatteredPicViewer | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
framework/web/js/source/jquery.min.js | xuanfei/ljz | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
src/js/components/common/cards/translations/Translation.spec.js | FBDevCLagos/hiddenwisdom-react-js | import expect from 'expect';
import React from 'react'; // eslint-disable-line no-unused-vars
import { mount, shallow } from 'enzyme'; // eslint-disable-line no-unused-vars
import Translation from './Translation';
let translation = {
id: 1,
body: 'the body',
language: 'Igbo'
}
/**
* @return {Func} A shallow dom... |
src/qmap/help/bootstrap/js/jquery-1.9.1.js | NathanW2/qmap | /*!
* jQuery JavaScript Library v1.9.1
* 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-4
*/
(function( window, undefined ) {
// Can't do t... |
app/javascript/mastodon/features/account_gallery/components/media_item.js | haleyashleypraesent/ProjectPrionosuchus | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Permalink from '../../../components/permalink';
class MediaItem extends ImmutablePureComponent {
static propTypes = {
media: ImmutablePropTypes.map.i... |
docroot/drupal/core/misc/tabbingmanager.js | havran/Drupal.sk | /**
* @file
* Manages page tabbing modifications made by modules.
*/
/**
* Allow modules to respond to the constrain event.
*
* @event drupalTabbingConstrained
*/
/**
* Allow modules to respond to the tabbingContext release event.
*
* @event drupalTabbingContextReleased
*/
/**
* Allow modules to respond ... |
src/botPage/view/View.js | binary-com/binary-bot | import React from 'react';
import ReactDOM from 'react-dom';
import 'jquery-ui/ui/widgets/dialog';
import _Blockly, { load } from './blockly';
import Chart from './Dialogs/Chart';
import Limits from './Dialogs/Limits';
import IntegrationsDialog from './Dialogs/IntegrationsDialog';
import LoadDialog from './Dialogs/Load... |
ajax/libs/forerunnerdb/1.3.767/fdb-legacy.js | iwdmb/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... |
react-flux-mui/js/material-ui/docs/src/app/components/pages/get-started/ServerRendering.js | pbogdan/react-flux-mui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import serverRenderingText from './server-rendering.md';
const ServerRendering = () => (
<div>
<Title render={(previousTitle) => `Server Rendering - ${previousTitle}`} />
<MarkdownElemen... |
src/components/Feedback/Feedback.js | jherr/gauge-test | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
trite-osprey/src/List.js | jnware7/Shopping-Cart-application-with-React | import React from 'react';
import Cart from './Cart';
class List extends React.Component{
constructor(props) {
super(props)
this.state = {
beers : [],
currentBeer: null,
searchString: '',
visible: false,
active: this.props.active || 0,
beerList: [],
totalPrice: 0,
... |
docs/controls/button/index.js | aruberto/react-foundation-components | import React from 'react';
import { Button } from '../../../src/button';
import { ShowForScreenReader, HideForScreenReader } from '../../../src/visibility';
const ButtonPage = () => (
<div>
<h1>Button</h1>
<p>
Buttons are convenient tools when you need more traditional actions.
</p>
<hr />
... |
src/routes/Posts/components/Post.js | ZeusTheTrueGod/WindsurfingNetwork-client | // @flow
import { Grid } from 'react-bootstrap';
import SinglePost from './SinglePost';
import React from 'react';
import { type Post } from '../modules/posts';
export type StateProps = {|
data: ?Post,
|};
export type DispatchProps = {} & $Exact<{}>;
export type Props = {| ...DispatchProps, ...StateProps |};
/* esli... |
modules/Route.js | meraki/react-router | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components } from './PropTypes'
const { string, func } = React.PropTypes
/**
* A <Route> is used to declare which components are rendered to the
* page when the URL matches a gi... |
docs/app/Examples/elements/Step/Variations/index.js | jcarbo/stardust | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const Variations = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Stackable'
description='A ste... |
ajax/libs/backbone.radio/0.2.0/backbone.radio.min.js | freak3dot/cdnjs | // Backbone.Radio v0.1.0
!function(a,b){if("function"==typeof define&&define.amd)define(["backbone","underscore"],function(a,c){return b(a,c)});else if("undefined"!=typeof exports){var c=require("backbone"),d=require("underscore");module.exports=b(c,d)}else b(a.Backbone,a._)}(this,function(a,b){"use strict";function c... |
ajax/libs/yui/3.2.0/event/event-focus-debug.js | sullivanmatt/cdnjs | YUI.add('event-focus', function(Y) {
/**
* 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,
useActivate = YLang.isFunction(
Y.DOM.create('<p onbeforeactivate="... |
src/svg-icons/maps/directions-car.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsCar = (props) => (
<SvgIcon {...props}>
<path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1... |
src/parser/priest/holy/modules/talents/75/BindingHeal.js | FaideWW/WoWAnalyzer | import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox';
import React from 'react';
import ItemHealingDone from 'interface/others/ItemHealingDone';
import { formatPercentage, formatThousands } from 'common... |
ajax/libs/styled-components/4.1.4-alpha.2/styled-components.esm.js | sufuf3/cdnjs | import Stylis from 'stylis/stylis.min';
import _insertRulePlugin from 'stylis-rule-sheet';
import React, { cloneElement, createContext, Component, createElement } from 'react';
import unitless from '@emotion/unitless';
import { isElement, isValidElementType, ForwardRef } from 'react-is';
import memoize from 'memoize-on... |
node_modules/react-router/modules/RoutingContext.js | FrancoCotter/ReactWeatherApp | import React from 'react'
import RouterContext from './RouterContext'
import warning from './routerWarning'
const RoutingContext = React.createClass({
componentWillMount() {
warning(false, '`RoutingContext` has been renamed to `RouterContext`. Please use `import { RouterContext } from \'react-router\'`. http://t... |
src/shared/utils/__tests__/traverseAllChildren-test.js | jkcaptain/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... |
ajax/libs/react-native-web/0.11.7/cjs/exports/ScrollView/ScrollViewBase.js | cdnjs/cdnjs | "use strict";
exports.__esModule = true;
exports.default = void 0;
var _debounce = _interopRequireDefault(require("debounce"));
var _StyleSheet = _interopRequireDefault(require("../StyleSheet"));
var _View = _interopRequireDefault(require("../View"));
var _ViewPropTypes = _interopRequireDefault(require("../ViewPro... |
client/components/events.js | mickael-kerjean/nuage | // cheap event system that handle subscription, unsubscriptions and event emitions
import React from 'react';
let emitters = {}
function subscribe(key, event, fn){
if(emitters[event]){
emitters[event][key] = fn;
}else{
emitters[event] = {};
emitters[event][key] = fn;
}
}
function u... |
src/svg-icons/communication/dialer-sip.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationDialerSip = (props) => (
<SvgIcon {...props}>
<path d="M17 3h-1v5h1V3zm-2 2h-2V4h2V3h-3v3h2v1h-2v1h3V5zm3-2v5h1V6h2V3h-3zm2 2h-1V4h1v1zm0 10.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.01.24l-2.2 ... |
ajax/libs/reactive-coffee/0.0.2/reactive-coffee.min.js | featurist/cdnjs | !function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L={}.hasOwnProperty,M=function(a,b){function c(){this.constructor=a}for(var d in b)L.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},N=[].slice,O=[].indexOf||function(a){for(var b... |
stories/InputArea/ExampleSizes.js | nirhart/wix-style-react | import React from 'react';
import InputArea from 'wix-style-react/InputArea';
const style = {
display: 'inline-block',
padding: '0 5px',
width: '200px',
lineHeight: '22px',
verticalAlign: 'top'
};
const defaultProps = {
size: 'normal',
magnifyingGlass: true,
placeholder: 'They did not know it was impo... |
analysis/warlockdemonology/src/modules/talents/FromTheShadows.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import Events from 'parser/core/Events';
import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage';
import SPELLS from 'common/SPELLS';
import { formatTho... |
src/svg-icons/notification/airline-seat-legroom-normal.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatLegroomNormal = (props) => (
<SvgIcon {...props}>
<path d="M5 12V3H3v9c0 2.76 2.24 5 5 5h6v-2H8c-1.66 0-3-1.34-3-3zm15.5 6H19v-7c0-1.1-.9-2-2-2h-5V3H6v8c0 1.65 1.35 3 3 3h7v7h4.5c.83 0 1.... |
examples/huge-apps/routes/Course/components/Nav.js | jeffreywescott/react-router | import React from 'react';
import { Link } from 'react-router';
import AnnouncementsRoute from '../routes/Announcements';
import AssignmentsRoute from '../routes/Assignments';
import GradesRoute from '../routes/Grades';
const styles = {};
styles.nav = {
borderBottom: '1px solid #aaa'
};
styles.link = {
display: ... |
src/svg-icons/av/art-track.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvArtTrack = (props) => (
<SvgIcon {...props}>
<path d="M22 13h-8v-2h8v2zm0-6h-8v2h8V7zm-8 10h8v-2h-8v2zm-2-8v6c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2zm-1.5 6l-2.25-3-1.75 2.26-1.25-1... |
src/components/HomeComponent.js | tobias2801/app_gestoria | import React, { Component } from 'react';
import logo from '../images/logo.png';
export default class Home extends Component {
constructor() {
super();
}
render() {
return (
<div id="default-background">
<img src={logo} />
</div>
);
}
... |
src/ContactForm.js | Giovanna8/React-Contact-List | /* eslint max-len: ["error", 1000] */
import React, { Component } from 'react';
export default class ContactForm extends Component {
constructor() {
super();
this.state = {
name: '',
avatar: '',
occupation: '',
};
}
handleNameChange(event) {
this.setState({
name: event.... |
ajax/libs/angular.js/0.9.2/angular-scenario.js | willdady/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* 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.
... |
src/DropdownToggle.js | JimiHFord/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import Button from './Button';
import CustomPropTypes from './utils/CustomPropTypes';
import SafeAnchor from './SafeAnchor';
const CARET = <span> <span className="caret" /></span>;
export default class DropdownToggle extends React.Component {
render() ... |
app/containers/ClassesPage/index.js | gitlab-classroom/classroom-web | /*
*
* ClassesPage
*
*/
import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
import { setAppbar } fr... |
packages/react-router-native/examples/NoMatch.js | DelvarWorld/react-router | import React from 'react'
import { StyleSheet, Text, View, AppRegistry } from 'react-native'
import { NativeRouter, Route, Link, Switch, Redirect } from 'react-router-native'
const Home = () => (
<Text style={styles.header}>
A <Switch> renders the
first child <Route> that
matches. A <Route> with... |
src/GridsterJS/lib/jquery-1.11.2.min.js | chadevansMX/GridsterJS | /*!
* 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( global, factory ) {
if ... |
src/widget/DetailCell.js | dudongge/DDGMeiTuan | /**
* Copyright (c) 2017-present, dudongge
* All rights reserved.
*
* https://github.com/dudongge/DDGMeiTuan
* copyright by dudodongge
*/
//import liraries
import React, { Component } from 'react';
import { View, Text, StyleSheet, Image, TouchableOpacity } from 'react-native';
import { Heading1, Heading2, Paragr... |
stories/TopBarAcademyIcon.story.js | byte-foundry/prototypo | import React from 'react';
import {storiesOf} from '@storybook/react';
import backgroundColor from 'react-storybook-decorator-background';
import TopBarMenuAcademyIcon from '../app/scripts/components/topbar/top-bar-menu-academy-icon.components';
storiesOf('TopBar/MenuAcademyIcon', module)
.addDecorator(story => (
... |
src/page_views/shared/FooterWrapper.js | max-su/max-su.github.io | import React from 'react';
import Footer from 'src/components/Footer';
import { FooterClassText } from 'src/assets/style_constants.js';
import facebook from 'src/assets/images/facebook.svg';
import linkedin from 'src/assets/images/linkedin.svg';
import github from 'src/assets/images/github.svg';
import email from 'sr... |
files/videojs/4.11.3/video.dev.js | 2947721120/adamant-waffle | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
wp-includes/js/jquery/jquery.js | drew1080/hioweb.com | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
*/
(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=f.trim,x=function(e,t){return new x.fn.ini... |
stories/examples/ModalProps.js | reactstrap/reactstrap | import React from 'react';
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import Props from './Props';
const Example = () => (
<Props components={[Modal, ModalHeader, ModalBody, ModalFooter]} />
);
export default Example;
|
ajax/libs/6to5/1.14.16/browser-polyfill.js | Rich-Harris/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/browser/components/AssetGalleryContainer.react.js | mareksuscak/surfing-gallery | import React from 'react';
import Component from 'react-pure-render/component';
import AssetGallery from './AssetGallery.react';
import InfiniteScroll from './InfiniteScroll.react';
import AlbumApi from '../api/albumApi';
import map from 'lodash/collection/map';
// Container component inspired by:
// https://medium.co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.