path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
demos/frontend-react/app/src/components/StyleSwitch.js | ITISFoundation/oSPARC_Test | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { styleChanged } from '../actions';
class StyleSwitch extends Component {
onChange(e) {
const checked = e.target.value;
this.props.styleChanged(checked);
}
render() {
... |
sites/all/modules/jquery_update/replace/jquery/1.9/jquery.js | lindsaywilson/doorsgalore | /*!
* 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... |
packages/react-test-renderer/src/__tests__/ReactTestRendererTraversal-test.js | dilidili/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
* @jest-environment node
*/
'use strict';
const React = require('react');
let ReactTestRenderer;
let Context;
c... |
src/components/Text.js | dingbat/react-native-mock | /**
* https://github.com/facebook/react-native/blob/master/Libraries/Text/Text.js
*/
import React from 'react';
import styleSheetPropType from '../propTypes/StyleSheetPropType';
import TextStylePropTypes from '../propTypes/TextStylePropTypes';
import NativeMethodsMixin from '../mixins/NativeMethodsMixin';
const styl... |
src/icons/Flash.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Flash extends React.Component {
render() {
if(this.props.bare) {
return <g>
<polygon points="96,288 243,288 191.9,480 416,224 269,224 320,32 "></polygon>
</g>;
} return <IconBase>
<polygon points="96,2... |
docs/src/develop/components/DistributionDoc.js | ieugen/grommet | // (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P.
var React = require('react');
var stringify = require("json-stringify-pretty-compact");
var Article = require('grommet/components/Article');
var Distribution = require('grommet/components/Distribution');
var inline =
"<Distribution series={[...]} ... |
src/components/Access.js | neontribe/spool | import React, { Component } from 'react';
import { withRouter } from 'react-router';
import Relay from 'react-relay';
import moment from 'moment';
import Papa from 'papaparse';
import _ from 'lodash';
import { withRoles, userFragment } from './wrappers.js';
import { AccessFormContainer } from './AccessForm.js';
import... |
Realization/frontend/czechidm-core/src/components/basic/Loading/Loading.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import $ from 'jquery';
import ReactResizeDetector from 'react-resize-detector';
//
import { withStyles } from '@material-ui/core/styles';
//
import AbstractComponent from '../AbstractComponent/AbstractComponent';
import... |
lib/components/form/settings-preview.js | opentripplanner/otp-react-redux | // FIXME: Remove the following eslint rule exceptions.
/* eslint-disable jsx-a11y/no-static-element-interactions */
/* eslint-disable jsx-a11y/click-events-have-key-events */
import coreUtils from '@opentripplanner/core-utils'
import PropTypes from 'prop-types'
import React from 'react'
import { Button } from 'react-bo... |
pages/postcss.js | rorz/a27-site | import React from 'react'
import './example.css'
import Helmet from 'react-helmet'
import { config } from 'config'
export default class PostCSS extends React.Component {
render () {
return (
<div>
<Helmet
title={`${config.siteTitle} | Hi PostCSSy friends`}
/>
<h1 classNam... |
packages/material-ui-icons/lib/PhotoSizeSelectActualRounded.js | mbrookes/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
app/jsx/due_dates/DueDateAddRowButton.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - 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... |
ajax/libs/ionic/0.9.15-alpha/js/ionic.js | alucard001/cdnjs | /*!
* Copyright 2013 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.14
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @helloimben, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/;
// Create namespaces
window.ionic... |
packages/material-ui-icons/src/SettingsSystemDaydreamTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M9 15h6.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5h-.87l-.17-.86C14.29 9.92 13.23 9 12 9c-.96 0-1.84.57-2.26 1.45l-.27.57h-.73C7.74 11.15 7 11.... |
ajax/libs/video.js/4.4.2/video.dev.js | wormful/cdnjs | /**
* @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.
*
... |
src/admin/components/media/image/hue.js | ccetc/platform | import React from 'react'
import { connect } from 'react-redux'
import * as actions from '../actions'
class Hue extends React.Component {
render() {
return <div>Brightness</div>
}
}
const mapStateToProps = (state, props) => ({
})
const mapDispatchToProps = {
}
export default connect(mapStateToProps, mapD... |
bunbunbakeshop/src/Item.js | jzheng13/SSUI-Homework-4 | import React, { Component } from 'react';
import './styles/index.css';
import './styles/font-awesome.min.css';
import products from './rolls.json';
import productPic1 from './resources/images/default1.jpg';
import productPic2 from './resources/images/default2.jpg';
import productPic3 from './resources/images/default3.... |
plugins/system/js_loadjquery/libraries/jquery/jquery-1.9.0.min.js | vadia007/ms | /*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc... |
app/pages/Home.js | hoomi-code/poc-feathers | import React from 'react';
import {
Button,
Container,
Divider,
Header,
Image,
// Sticky,
} from 'semantic-ui-react';
const HomePage = () =>
<Container textAlign="center" style={{ paddingTop: '5em' }}>
<Image src="./logo.png" inline />
<Header as="h1">
{'A REST and realtime API layer for mo... |
node_modules/material-ui/svg-icons/editor/insert-photo.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/website/app/demos/Navigation/common/FakeRouterLink.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
type Props = {
children: React$Node,
className?: string,
'data-index'?: number,
to: string
};
export default function FakeRouterLink({
children,
className,
to,
...rest
}: Props) {
const rootProps = {
className,
'data-index': rest['data-index'],
href... |
packages/strapi-plugin-content-manager/admin/src/components/EditFormRelations/index.js | skelpook/strapi | /**
*
* EditFormRelations
*
*/
import React from 'react';
import _ from 'lodash';
import EditFormRelation from 'components/EditFormRelation';
import styles from './styles.scss';
class EditFormRelations extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
const relatio... |
app/javascript/mastodon/features/compose/containers/warning_container.js | SerCom-KC/mastodon | import React from 'react';
import { connect } from 'react-redux';
import Warning from '../components/warning';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { me } from '../../../initial_state';
const APPROX_HASHTAG_RE = /(?:^|[^\/\)\w])#(\w*[a-zA-Z·]\w*)/i;
const mapStateT... |
ajax/libs/material-ui/5.0.0-alpha.28/node/IconButton/IconButton.js | cdnjs/cdnjs | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectWithoutPropertiesLoose2 = ... |
V2-Node/esquenta.v2/UI/src/views/Base/Navbars/Navbars.js | leandrocristovao/esquenta | import React, { Component } from 'react';
import {
Card,
CardBody,
CardHeader,
Collapse,
DropdownItem,
DropdownMenu,
DropdownToggle,
Nav,
Navbar,
NavbarBrand,
NavbarToggler,
NavItem,
NavLink,
UncontrolledDropdown,
} from 'reactstrap';
class Navbars extends Component {
constructor(props) ... |
src/components/icons/InfoOutlineIcon.js | InsideSalesOfficial/insidesales-components | import React from 'react';
const InfoOutlineIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24">
{props.title && <title>{props.title}</title>}
<path d="M0 0h24v24H0z" fill="none" />
<path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-... |
ajax/libs/react/0.12.0-rc1/react-with-addons.min.js | nagyist/OpenF2-cdnjs | /**
* React (with addons) v0.12.0-rc1
*
* Copyright 2013-2014, 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 ... |
js/src/dapps/dappreg/ModalRegister/modalRegister.js | BSDStudios/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity 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 lat... |
docs/app/Examples/elements/Icon/States/IconExampleDisabled.js | shengnian/shengnian-ui-react | import React from 'react'
import { Icon } from 'shengnian-ui-react'
const IconExampleDisabled = () => (
<Icon disabled name='users' />
)
export default IconExampleDisabled
|
imports/plugins/core/ui/client/components/multiselect/multiselect.js | evereveofficial/reaction | import React, { Component, PropTypes } from "react";
import classnames from "classnames";
import Select from "react-select";
import { Translation } from "../translation";
import { i18next } from "/client/api";
class MultiSelect extends Component {
static defaultProps = {
multi: true,
simpleValue: true
}
... |
src/components/input/InputLabel.js | sk-iv/iva-app | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { FormLabel } from '../Form';
if(process.env.WEBPACK) require('./InputLabel.css');
function InputLabel(props, context) {
const {
children,
classes,
className: classNameProp,
disableAnimation,
... |
web/res/pdfjs/viewer.js | kidbai/innotick | /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... |
app/javascript/mastodon/features/ui/components/upload_area.js | h-izumi/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from 'react-motion/lib/Motion';
import spring from 'react-motion/lib/spring';
import { FormattedMessage } from 'react-intl';
class UploadArea extends React.PureComponent {
static propTypes = {
active: PropTypes.bool,
onClose: PropT... |
src/App.js | kallaspriit/react-base | import React from 'react';
import { Switch, Route } from 'react-router-dom';
import views from './views';
import createDevTools from './components/dev-tools/create-dev-tools';
// views used in root routes
import ReadmeView from './views/readme/ReadmeView';
import NotFoundView from './views/not-found/NotFoundView';
//... |
docs/src/app/components/pages/components/Divider/Page.js | skarnecki/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import dividerReadmeText from './README';
import DividerExampleForm from './Exam... |
src/js/components/HPELogo.js | karatechops/grommet-fsi | import React from 'react';
export default function HPELogo (props) {
return (
<div className="logo-hpe">
<a href="https://www.hpe.com"><img src="img/logo-hpe.svg" /></a>
</div>
);
}
|
packages/material-ui-icons/src/RadioOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M20 6H8.3l8.26-3.34L15.88 1 3.24 6.15C2.51 6.43 2 7.17 2 8v12c0 1.1.89 2 2 2h16c1.11 0 2-.9 2-2V8c0-1.11-.89-2-2-2zm0 2v3h-2V9h-2v2H4V8h16zM4 20... |
packages/benchmarks/src/app/App.js | necolas/react-native-web | import Benchmark from './Benchmark';
import { Picker, StyleSheet, ScrollView, TouchableOpacity, View } from 'react-native';
import React, { Component } from 'react';
import Button from './Button';
import { IconClear, IconEye } from './Icons';
import ReportCard from './ReportCard';
import Text from './Text';
import Layo... |
app/javascript/mastodon/features/list_editor/components/search.js | ikuradon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { defineMessages, injectIntl } from 'react-intl';
import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists';
import classNames from 'classnames';
import Icon from... |
src/containers/Works/Works.js | denichodev/personal-web | import React, { Component } from 'react';
import '../NewBlog/NewBlog.css';
import '../NewBlog/Markdown.css';
import './Works.css';
import worksSynchrome from '../../resources/images/works-synchrome.png';
import worksPersonal from '../../resources/images/works-personal.jpg';
import worksGithub from '../../resources/i... |
src/render-native/IconStarMessage.js | kunall17/zulip-mobile | /* @flow */
import React from 'react';
import { StyleSheet, View } from 'react-native';
import { IconStar } from '../common/Icons';
const styles = StyleSheet.create({
iconWrapper: {
marginTop: 4,
flex: 0.1,
},
iconStar: {
fontSize: 20,
color: '#447C22',
alignSelf: 'flex-end',
},
});
expor... |
packages/material-ui-icons/src/SwitchVideoTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M4 17h12V7H4v10zm4-8v2h4V9l3 3-3 3v-2H8v2l-3-3 3-3z" opacity=".3" /><path d="M8 13h4v2l3-3-3-3v2H8V9l-3 3 3 3z" /><path d="M18 9.5V6c0-.55-.4... |
examples/websdk-samples/LayerReactNativeSample/src/ui/announcements/TextMessagePart.js | layerhq/layer-js-sampleapps | import React, { Component } from 'react';
import {
StyleSheet,
Text,
} from 'react-native';
export default class TextMessagePart extends Component {
render() {
return <Text style={styles.container}>{this.props.messagePart.body}</Text>
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
... |
src/svg-icons/av/repeat.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRepeat = (props) => (
<SvgIcon {...props}>
<path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"/>
</SvgIcon>
);
AvRepeat = pure(AvRepeat);
AvRepeat.displayName = 'AvRepeat';
AvRepeat.mu... |
src/containers/json_get.js | b0ts/react-redux-sweetlightstudios-website | import React, { Component } from 'react';
import { connect } from 'react-redux'; // glue between react and redux
class JsonGet extends Component {
render() {
return (
<div>
<h2> { (this.props.jsonTest ) ? this.props.jsonTest.title : ""} </h2>
<p> { (this.props.jsonTest) ? this.props.jsonTest.content : ""... |
app/components/notices.js | sirbrillig/voyageur-js-client | import React from 'react';
function reloadPage() {
if ( typeof window !== 'undefined' ) window.location.reload();
}
const ErrorNotice = ( { error } ) => {
return <div className="notices__notice alert alert-warning" role="alert">{ error }</div>;
};
ErrorNotice.propTypes = {
error: React.PropTypes.string.isRequi... |
ajax/libs/vue-material/0.5.0/components/mdBottomBar/index.debug.js | tholu/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["VueMaterial"] = factory();
else
root["V... |
src/components/HomepageFeatures.js | tianhaoz95/tianhaoz95.github.io | import React from 'react';
import clsx from 'clsx';
import styles from './HomepageFeatures.module.css';
const FeatureList = [
{
title: 'Easy to Use',
img: '/img/monhchi/01.png',
description: (
<>
Docusaurus was designed from the ground up to be easily installed and
used to get your ... |
src/GreedyText.js | treyhoover/react-greedy-text | import React from 'react';
import PropTypes from 'react-proptypes';
import ResizeObserver from 'resize-observer-polyfill';
import { cloneNode, forceRedraw, isOverflowing } from './utils/DOM';
import debounce from 'lodash.debounce';
// usually only needs about 10 attempts per resize with these settings
const PRECISION ... |
ajax/libs/react-bootstrap-table/1.2.1/react-bootstrap-table.min.js | sufuf3/cdnjs | !function e(t,n,o){function r(s,i){if(!n[s]){if(!t[s]){var l="function"==typeof require&&require;if(!i&&l)return l(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[s]={exports:{}};t[s][0].call(u.exports,function(e){var n=t[s][1][e];return r(n?n:e)},u,u.ex... |
client/App.js | SwanCourses/Mokryi-Vlad | /**
* Root Component
*/
import React from 'react';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import IntlWrapper from './modules/Intl/IntlWrapper';
// Import Routes
import routes from './routes';
// Base stylesheet
require('./main.css');
export default function A... |
src/client/components/search/GridSelectionActions.js | gearz-lab/gearz | import React from 'react';
import clone from 'clone';
import {ButtonGroup, Button, DropdownButton, MenuItem} from 'react-bootstrap';
import _ from 'underscore';
export default React.createClass({
propTypes: {
selection: React.PropTypes.object,
rows: React.PropTypes.array,
handleSelectionC... |
src/components/pages/Home/page.js | humaniq/humaniq-pwa-website | import React, { Component } from 'react'
import * as T from "prop-types";
import './styles.scss'
import { cssClassName } from 'utils'
const cn = cssClassName('Home')
// import Meta from './meta.js'
import { isMobile } from 'utils/isMobile'
import O_Footer_H from 'O_Footer_H'
import EmpoweringSection from './sections/Em... |
classic/src/scenes/mailboxes/src/Scenes/AppScene/AppScene.js | wavebox/waveboxapp | import React from 'react'
import ReactDOM from 'react-dom'
import MailboxTabManager from './MailboxTabManager'
import Sidelist from './Sidelist'
import { PrimaryToolbar, SecondaryToolbar } from './Toolbar'
import shallowCompare from 'react-addons-shallow-compare'
import { settingsStore } from 'stores/settings'
import {... |
ajax/libs/zxcvbn/1.0.7/zxcvbn.js | xymostech/cdnjs | (function(){var x,p,s,y,J,K,L,M,N,O,P,Q,z,q,A,R,S,T,U,V,W;P=function(b){var a,c;c=[];for(a in b)c.push(a);return 0===c.length};z=function(b,a){return b.push.apply(b,a)};V=function(b,a){var c,e,f,d,g;d=b.split("");g=[];e=0;for(f=d.length;e<f;e++)c=d[e],g.push(a[c]||c);return g.join("")};R=function(b,a){var c,e,f,d;d=[];... |
fields/types/markdown/MarkdownColumn.js | kwangkim/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var MarkdownColumn = React.createClass({
displayName: 'MarkdownColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropType... |
files/react/15.3.1/react-dom-server.js | Asaf-S/jsdelivr | /**
* ReactDOMServer v15.3.1
*
* Copyright 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 d... |
src/v2/components/UI/Inputs/components/LabelledCheckbox/index.js | aredotna/ervell | import React from 'react'
import styled from 'styled-components'
import PropTypes from 'prop-types'
import Label from 'v2/components/UI/Inputs/components/Label'
import Checkbox from 'v2/components/UI/Inputs/components/Checkbox'
const CheckboxLabel = styled(Label)`
font-weight: normal;
user-select: none;
`
const ... |
app/components/billing/BillingCreditCardForm.js | buildkite/frontend | // @flow
import PropTypes from 'prop-types';
import React from 'react';
import { getTypeInfo, types as CardType } from 'credit-card-type';
import CreditCardInput from 'app/components/shared/CreditCardInput';
import labelled from 'app/components/shared/labelledFormComponent';
const FormCreditCardField = labelled(Credi... |
src/tools/withState.js | carbon-design-system/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-types';
export default class WithState extends React.PureComponent {
static propTyp... |
node_modules/embark-framework/node_modules/ethersim/node_modules/json-rpc2/node_modules/es5class/doc/scripts/jquery.localScroll.js | jpentland/BitBadge | /*!
* jQuery.LocalScroll
* Copyright (c) 2007-2013 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com
* Dual licensed under MIT and GPL.
* http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.html
* @author Ariel Flesler
* @version 1.2.8
*
* @id jQuery.fn.localScroll
* @param {Ob... |
packages/material-ui-icons/src/HdOutlined.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="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z" /><path d="M7.5 13h2v2H11V9H9.5v2.5h-2V9H6v6h1.5... |
src/svg-icons/device/brightness-medium.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessMedium = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6... |
src/index.js | halkeye/sauce-debug-client | const ipcRenderer = window.require('electron').ipcRenderer;
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { loadLogins } from './actions.js';
import configureStore from './store/configureStore';
import 'app.css';
const initialStore = window.require('rem... |
tests/components/Counter/Counter.spec.js | juanleiguarda/react-app | import React from 'react'
import { bindActionCreators } from 'redux'
import { Counter } from 'components/Counter/Counter'
import { shallow } from 'enzyme'
describe('(Component) Counter', () => {
let _props, _spies, _wrapper
beforeEach(() => {
_spies = {}
_props = {
counter: 5,
...bindActionCre... |
ajax/libs/babel-core/5.2.15/browser-polyfill.min.js | mgoldsborough/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... |
frontend/src/index.js | saidimu/nytpeople | import React from 'react';
import { render } from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
require('../images/favicon.ico');
import App from '../components/App.js';
// Needed for onTouchTap
// http://stackoverflow.com/a/34015469/988941
injectTapEventPlugin();
render(<App />, document.g... |
z-no-longer-used/demoui/util.js | haroldcarr/juno | //util.js
import React from 'react';
export function prettyMoneyPrint(val) {
if (val) {
var sign = '';
if (val < 0) {
sign = '-';
}
return sign + Math.abs(val).toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&,');
}
}
export function detailPane(ptitle,deets) {
return (
<div className="col-lg-12 ... |
node_modules/react-bootstrap-table/lib/pagination/PaginationList.js | firdiansyah/crud-req | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
ajax/libs/webshim/1.15.1-RC1/dev/shims/moxie/js/moxie-html4.js | iwdmb/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
src/Grid/Grid.js | kradio3/react-mdc-web | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
const propTypes = {
className: PropTypes.string,
children: PropTypes.node,
};
const Grid = ({ className, children, ...otherProps }) => (
<div
className={classnames('mdc-layout-grid', className)}
{...other... |
ZWRNProject/app/src/views/UI/KeyboardAvoidingView/KeyboardAvoidingViewExample.js | MisterZhouZhou/ReactNativeLearing | import React, { Component } from 'react';
import {KeyboardAvoidingView, Modal, SegmentedControlIOS,StyleSheet,Text,TextInput,TouchableHighlight,View} from 'react-native';
const UIExplorerBlock = require('../../UIExplorer/UIExplorerBlock');
const UIExplorerPage = require('../../UIExplorer/UIExplorerPage');
export def... |
test/fixtures/flowType/input.js | kadirahq/babel-plugin-react-docgen | // @flow
import React from 'react'
type PropsType = {
/** The text to be rendered in the button */
label: number,
/** Some other prop */
thing?: string,
}
class FlowTypeButton extends React.Component<PropsType> {
/**
* handle click number of times clicked and update parent component via callback
* @re... |
examples/with-relay-modern/components/BlogPosts.js | BlancheXu/test | import React from 'react'
import { createFragmentContainer, graphql } from 'react-relay'
import BlogPostPreview from './BlogPostPreview'
const BlogPosts = props => {
return (
<div>
<h1>Blog posts</h1>
{props.viewer.allBlogPosts.edges.map(({ node }) => (
<BlogPostPreview key={node.id} post={no... |
src/routes/topicRoutes.js | mitmedialab/MediaCloud-Web-Tools | import React from 'react';
import Route from 'react-router/lib/Route';
import Redirect from 'react-router/lib/Redirect';
import IndexRedirect from 'react-router/lib/IndexRedirect';
import TopicsHomepage from '../components/topic/homepage/TopicsHomepage';
import TopicContainer from '../components/topic/TopicContainer';
... |
staticfiles/js/App.js | alemneh/negativity-purger | import React, { Component } from 'react';
class App extends Component {
constructor(props) {
super(props)
}
render() {
return (
<section>
{this.props.children}
</section>
)
}
}
export default App;
|
desktop/libs/Project/index.ios.js | alexzherdev/deco-ide | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class Project extends Component {
render() {
return (
<View style={styles.container}>
<Text ... |
fields/components/columns/IdColumn.js | danielmahon/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var IdColumn = React.createClass({
displayName: 'IdColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
list: React.PropTypes.obje... |
src/react/JSONTree/JSONStringNode.js | taylorhakes/redux-devtools | import React from 'react';
import reactMixin from 'react-mixin';
import { SquashClickEventMixin } from './mixins';
import hexToRgb from '../../utils/hexToRgb';
const styles = {
base: {
paddingTop: 3,
paddingBottom: 3,
paddingRight: 0,
marginLeft: 14
},
label: {
display: 'inline-block',
ma... |
app/app/components/Dashboard/NumberStatistics.js | lycha/masters-thesis | import React from 'react';
class NumberStatistics extends React.Component {
constructor(props) {
super(props);
this.displayName = 'NumberStatistics';
this.statsCount = "";
this.entityName = "total";
}
componentWillUpdate(nextProps, nextState) {
if(typeof nextProps.s... |
wrappers/json.js | hollandmatt/rtmetals | import React from 'react'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (
<DocumentTitle title... |
src/components/TextInput/PasswordInput.js | carbon-design-system/carbon-components-react | import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import { settings } from 'carbon-components';
import View16 from '@carbon/icons-react/lib/view/16';
import ViewOff16 from '@carbon/icons-react/lib/view--off/16';
import WarningFilled16 from '@carbon/icons-react/lib/warni... |
src/web/App.js | html5cat/xde | let React = require('react');
let autobind = require('autobind-decorator');
let del = require('del');
let escapeHtml = require('escape-html');
let execAsync = require('exec-async');
let gitInfoAsync = require('git-info-async');
let jsonFile = require('@exponent/json-file');
let os = require('os');
let path = require('... |
chapter-12/express_server/src/Routes.js | mocheng/react-and-redux | import React from 'react';
import {Router, Route, IndexRoute, browserHistory} from 'react-router';
import {Provider} from 'react-redux';
import {combineReducers} from 'redux';
import {syncHistoryWithStore} from 'react-router-redux';
import App from './pages/App.js';
import store from './Store.js';
const createElemen... |
ajax/libs/reactive-coffee/0.0.1/reactive-coffee.min.js | mikelambert/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... |
src/app/components/Header.js | preeminence/react-redux-skeleton | import React from 'react';
class Header extends React.Component {
render() {
return null;
}
}
export default Header;
|
assets/plugins/bootstrap-editable/bootstrap-editable/js/bootstrap-editable.js | cbustamanteaponte/AELUAPP | /*! X-editable - v1.4.6
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT
* Improved by Keenthemes for Bootstrap 3.0 support */
/**
Form with single input element, two buttons and two states: normal/loading.
A... |
ajax/libs/forerunnerdb/1.3.713/fdb-core+persist.min.js | kiwi89/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... |
addons/themes/read-only/layouts/Home.js | rendact/rendact | import $ from 'jquery'
import React from 'react';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import moment from 'moment';
import {Link} from 'react-router';
import scrollToElement from 'scroll-to-element';
import NavPanel from '../includes/NavPanel';
let Home = React.createClass({
component... |
src/components/run.js | zdivozzo/React-Comic-Quiz | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux'
import store from '../store'
import Quiz from './Main';
// Render the main component into the dom
ReactDOM.render(<Provider store={store}><Quiz /></Provider>, document.getElementById('app'));
|
src/panes/components/Switch.js | trezy/eidetica | import PropTypes from 'prop-types'
import React from 'react'
const Switch = (props) => {
const {
checked,
id,
onChange,
} = props
return (
<React.Fragment>
<input
checked={checked}
className="switch-control"
hidden
id={id}
onChange={onChange}
... |
src/components/SingleDayViewComponent.js | loehnertz/HSRMMedialabTimetableApp | import React, { Component } from 'react';
import {
Text,
View,
ListView,
RefreshControl,
Platform
} from 'react-native';
import { connect } from 'react-redux';
import { Actions } from 'react-native-router-flux';
import _ from 'lodash';
import { Card, CardSection } from './common';
import { fetchWeek... |
ajax/libs/x-editable/1.5.1/bootstrap3-editable/js/bootstrap-editable.js | wmkcc/cdnjs | /*! X-editable - v1.5.1
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to form tag!... |
app/clients/next/redux/index.js | garbin/koapp | import React from 'react'
import { compose as composeComponent } from 'recompose'
import { connect, Provider } from 'react-redux'
import { get } from 'lodash'
import { I18nextProvider, translate } from 'react-i18next'
import ReduxToastr from 'react-redux-toastr'
import i18next from 'i18next'
import moment from 'moment'... |
src/parser/druid/feral/modules/combopoints/FinisherUse.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import BoringResourceValue from 'interface/statistics/com... |
javascripts/components/loadingButton.js | jnpr-leolv/easyclient | import React, { Component } from 'react';
import { render } from 'react-dom';
import { Button } from 'react-bootstrap';
class LoadingButton extends Component {
constructor(props) {
super(props);
this.state = { isLoading: false };
this.handleClick = this.handleClick.bind(this);
}
ha... |
docs/app/Examples/views/Feed/Variations/FeedExampleSizeSmall.js | shengnian/shengnian-ui-react | import React from 'react'
import { Feed, Header } from 'shengnian-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
</F... |
src/svg-icons/image/landscape.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLandscape = (props) => (
<SvgIcon {...props}>
<path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/>
</SvgIcon>
);
ImageLandscape = pure(ImageLandscape);
ImageLandscape.displayName... |
classic/src/scenes/mailboxes/src/Scenes/AccountWizardScene/ServiceAttachWizardScene/ServiceAttachWizardScene.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import ServiceAttachWizardSceneContent from './ServiceAttachWizardSceneContent'
import { RouterDialog, RouterDialogStateProvider } from 'wbui/RouterDialog'
import { withStyles } from '@material-ui/core... |
client/analytics/components/partials/filter/filterItems/AnalysisTypeList.js | Haaarp/geo | import React from 'react';
import { bindActionCreators } from 'redux';
import {ListGroupItem} from 'react-bootstrap';
import FormWrap from 'konux/common/components/FormWrap';
import Label from 'konux/common/components/Label';
import * as MenuType from './../../../../constants/popupType';
import { ChartType } from './..... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.