path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
docs/App.js | ihenvyr/react-styled-grid | import React, { Component } from 'react';
import styled, { ThemeProvider } from 'styled-components';
import { Row, Column, Panel } from '../src/Grid';
const Title = styled.h1`
margin-bottom: 0;
`;
class App extends Component {
render() {
return (
<ThemeProvider theme={{ gutter: 10, medium: 640, large: 1... |
examples/node_modules/react-native/node_modules/react-tools/src/classic/types/__tests__/ReactPropTypes-test.js | adarshmuthappa/react-native-swiper | /**
* 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... |
sites/all/modules/views/js/dependent.js | hugowetterberg/goodold_drupal_subtree | // $Id: dependent.js,v 1.9.2.1 2009/11/18 02:43:47 merlinofchaos Exp $
/**
* @file dependent.js
*
* Written by dmitrig01 (Dmitri Gaskin) for Views; this provides dependent
* visibility for form items in Views' ajax forms.
*
* To your $form item definition add:
* - '#process' => array('views_process_dependency'),... |
src/js/components/DateInput/stories/Simple.js | grommet/grommet | import React from 'react';
import { Box, DateInput, Text } from 'grommet';
export const Simple = () => {
const [value, setValue] = React.useState('');
const onChange = (event) => {
const nextValue = event.value;
console.log('onChange iso date:', nextValue);
console.log('onChange utc date:', new Date(n... |
test/specs/collections/Breadcrumb/BreadcrumbSection-test.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import BreadcrumbSection from 'src/collections/Breadcrumb/BreadcrumbSection'
import * as common from 'test/specs/commonTests'
import { sandbox } from 'test/utils'
describe('BreadcrumbSection', () => {
common.isConformant(BreadcrumbSection)
common.rendersChildren(BreadcrumbSection)
com... |
ajax/libs/yui/3.7.3/datatable-core/datatable-core-coverage.js | DeuxHuitHuit/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
ajax/libs/yui/3.7.3/scrollview-base/scrollview-base-debug.js | bgrins/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
WINDOW = Y.config.win,
I... |
ajax/libs/F2/1.3.0/f2.no-easyXDM.js | hare1039/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... |
React/10 State.js | iitjee/SteppinsWebDev | /*
State represents the possible conditions of your application. Maybe you have a state for editing, and a state for saved,
or a state for logged in and logged out. In react apps we want to identify the minimal representation of app state, and
then we want to reduce state to as few components as possible.
This way ... |
src/components/ContainerDetailsSubheader.react.js | ridethepony/kitematic | import _ from 'underscore';
import React from 'react';
import shell from 'shell';
import metrics from '../utils/MetricsUtil';
import ContainerUtil from '../utils/ContainerUtil';
import classNames from 'classnames';
import containerActions from '../actions/ContainerActions';
import dockerMachineUtil from '../utils/Docke... |
examples/todomvc/components/MainSection.js | linalu1/redux | import React, { Component, PropTypes } from 'react';
import TodoItem from './TodoItem';
import Footer from './Footer';
import { SHOW_ALL, SHOW_COMPLETED, SHOW_ACTIVE } from '../constants/TodoFilters';
const TODO_FILTERS = {
[SHOW_ALL]: () => true,
[SHOW_ACTIVE]: todo => !todo.completed,
[SHOW_COMPLETED]: todo =>... |
src/svg-icons/content/link.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentLink = (props) => (
<SvgIcon {...props}>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.... |
ajax/libs/rxjs/2.2.17/rx.lite.compat.js | joeyparrish/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'u... |
src/parser/mage/fire/modules/features/CombustionPyroclasm.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/... |
public/components/simpletable.js | mingderwang/kibana-react-d3-app | import React from 'react'
import ReactTable from 'react-table'
const columns = [{
Header: 'Name',
columns: [{
Header: 'First Name',
accessor: 'firstName'
}, {
Header: 'Last Name',
id: 'lastName',
accessor: d => d.lastName
}]
}, {
Header: 'Info',
columns: [{
Header: 'Age',
access... |
src/svg-icons/places/airport-shuttle.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesAirportShuttle = (props) => (
<SvgIcon {...props}>
<path d="M17 5H3c-1.1 0-2 .89-2 2v9h2c0 1.65 1.34 3 3 3s3-1.35 3-3h5.5c0 1.65 1.34 3 3 3s3-1.35 3-3H23v-5l-6-6zM3 11V7h4v4H3zm3 6.5c-.83 0-1.5-.67-1.5-1.... |
js/src/views/Status/status.js | nipunn1313/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... |
src/rsg-components/Para/Para.spec.js | bluetidepro/react-styleguidist | import React from 'react';
import { ParaRenderer, styles } from './ParaRenderer';
const props = {
classes: classes(styles),
};
it('should render paragraph as a <div>', () => {
const actual = shallow(<ParaRenderer {...props}>Pizza</ParaRenderer>);
expect(actual).toMatchSnapshot();
});
it('should render paragraph ... |
src/components/about/AboutPage.spec.js | Opelvectra/hello.react.redux | import React from 'react';
import {shallow} from 'enzyme';
import AboutPage from './AboutPage';
describe('<AboutPage />', () => {
it('should have a header called \'About\'', () => {
const wrapper = shallow(<AboutPage />);
const actual = wrapper.find('h2').text();
const expected = 'About';
expect(act... |
ajax/libs/angular-data/0.10.5/angular-data.js | SirenHound/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 0.10.5 - Homepage <http://angular-data.pseudobry.com/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Data store for Angular.js... |
packages/material-ui-icons/src/LocalDiningSharp.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="M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4... |
webpack-simple/template/src/main.js | zxjly/reactweb-cli | /**
* Created by JamesZhang on 2017/6/17.
*/
import React from 'react'
import ReactDOM from 'react-dom'
import {HashRouter as Router} from 'react-router-dom'
import Hello from './components/hello'
import './assets/styles/hello.less'
ReactDOM.render(
<Router>
<Hello/>
</Router>,
document.getElementById('a... |
packages/material-ui-icons/src/ColorizeOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M17.66 5.41l.92.92-2.69 2.69-.92-.92 2.69-2.69M17.67 3c-.26 0-.51.1-.71.29l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92... |
src/fields/inputs/NumberField.js | musicglue/react-form-component | import React from 'react';
import InputField from './InputField';
export default function NumberField(props) {
return <InputField {...props} type="number" />;
}
|
src/plugins/local/components/TableHeadingContainer.js | GriddleGriddle/Griddle | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from '../../../utils/griddleConnect';
import compose from 'recompose/compose';
import mapProps from 'recompose/mapProps';
import getContext from 'recompose/getContext';
import { columnTitlesSelector, columnIdsSelector, classNamesForCompon... |
client/modules/Post/components/PostListItem/PostListItem.js | Skrpk/mern-sagas | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
// Import Style
import styles from './PostListItem.css';
function PostListItem(props) {
return (
<div className={styles['single-post']}>
<h3 className={sty... |
20161210/RN-test/__tests__/index.android.js | fengnovo/react-native | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
actor-apps/app-web/src/app/index.js | Jaeandroid/actor-platform | import crosstab from 'crosstab';
import React from 'react';
import Router from 'react-router';
import Raven from 'utils/Raven'; // eslint-disable-line
import injectTapEventPlugin from 'react-tap-event-plugin';
import Deactivated from 'components/Deactivated.react';
import Login from 'components/Login.react';
import ... |
src/main/archetype/ui.frontend.react/src/App.js | Adobe-Marketing-Cloud/aem-project-archetype | import { Page, withModel } from '@adobe/aem-react-editable-components';
import React from 'react';
// This component is the application entry point
class App extends Page {
render() {
return (
<div>
{this.childComponents}
{this.childPages}
</div>
);
}
}
export default withModel... |
src/components/Workout/Form/__tests__/Form.spec.js | diegocasmo/workouter | import React from 'react'
import {Factory} from 'rosie'
import {expect} from 'chai'
import sinon from 'sinon'
import {mount} from 'enzyme'
import {BrowserRouter as Router, Prompt} from 'react-router-dom'
import {WorkoutForm} from '../Form'
import AsyncSelect from 'react-select/lib/Async'
import {Formik, Form, ErrorMess... |
node_modules/react-icons/go/diff-removed.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const GoDiffRemoved = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35 2.5h-30c-1.2 0-2.5 1.3-2.5 2.5v30c0 1.3 1.3 2.5 2.5 2.5h30c1.3 0 2.5-1.2 2.5-2.5v-30c0-1.2-1.2-2.5-2.5-2.5z m-2.5 28.8c0 0.6-0.7 1.2-1.2 1.2h-22.5c-0.8 0-1.3-... |
ajax/libs/mobx-react/4.0.0-rc.4/custom.js | redmunds/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("mobx"), require("react"));
else if(typeof define === 'function' && define.amd)
define(["mobx", "react"], factory);
else if(typeof exports === 'object')
exp... |
src/components/BookShelf.js | claclacla/_Udacity_-Organize-your-bookshelves-using-ReactJS | import React from 'react';
import PropTypes from 'prop-types';
import BooksList from '../components/BooksList';
const BookShelf = function (props) {
const { title, books } = props;
return (
<div className="bookshelf">
<h2 className="bookshelf-title">{title}</h2>
<BooksList books={books}/>
</d... |
docs/app/Examples/elements/Segment/Groups/SegmentExamplePiledSegments.js | clemensw/stardust | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExamplePiledSegments = () => (
<Segment.Group piled>
<Segment>Top</Segment>
<Segment>Middle</Segment>
<Segment>Bottom</Segment>
</Segment.Group>
)
export default SegmentExamplePiledSegments
|
src/components/Header.js | gshackles/react-demo-beerlist | import React from 'react';
const Header = (props) => <h1>{props.title}</h1>;
Header.propTypes = {
title: React.PropTypes.string.isRequired
};
export default Header; |
node_modules/react-router/es/RouteUtils.js | AdamB59/Klient | 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]; } } } return target; };
import React from 'react';
function isValidChild(object) {
... |
src/components/ShelfContainer/Shelf/index.spec.js | romarioraffington/react-mybooks | // External Dependencies
import React from 'react';
import faker from 'faker';
import { shallow } from 'enzyme';
// Our Dependencies
import Shelf from './index';
import { expect } from '../../../util/chai';
import { generateBookList } from '../../../util/testData';
describe('Shelf', () => {
let wrapper;
const tit... |
test/ThumbnailSpec.js | IveWong/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Thumbnail from '../src/Thumbnail';
describe('Thumbnail', function () {
it('Should have a thumbnail class and be an anchor', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Thumbnail href="#" src="#" al... |
src/app.js | torifat/jetbrains-icls-editor | require('./app.styl');
import React from 'react';
import EditorContainer from './components/EditorContainer.react';
React.render(<EditorContainer />, document.getElementById('app'));
|
src/utils/createRenderTextField.js | karmapa17/garchen-panel | import React from 'react';
import TextField from 'material-ui/TextField';
export default function createRenderTextField(f) {
return function renderTextField({input, label, meta: {touched, error}, ...custom}) {
let errorText = touched && error;
// handle i18n
if (touched && error && ('string' !== typeof... |
admin/client/components/Navigation/MobileNavigation.js | pswoodworth/keystone | import React from 'react';
import Transition from 'react-addons-css-transition-group';
var MobileListItem = React.createClass({
displayName: 'MobileListItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
href: React.PropTypes.string.isRequired,
},
render () {
r... |
src/icons/QrScanner.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class QrScanner extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M96,124.171c0-6.938,5.232-12.171,12.171-12.171H176V64h-66.829C75.717,64,48,90.717,48,124.171V192h48V124.171z"></pa... |
packages/ringcentral-widgets/components/LogBasicInfoV2/CallIcon.js | ringcentral/ringcentral-js-widget | import PropTypes from 'prop-types';
import React from 'react';
import styles from './styles.scss';
export const CallIcon = ({ title, iconClassName }) => (
<div className={styles.callIcon} title={title}>
<span className={iconClassName} />
</div>
);
CallIcon.propTypes = {
title: PropTypes.string,
iconClassN... |
examples/huge-apps/routes/Grades/components/Grades.js | mjw56/react-router | import React from 'react';
class Grades extends React.Component {
render () {
return (
<div>
<h2>Grades</h2>
</div>
);
}
}
export default Grades;
|
bower_components/jquery/test/data/jquery-1.8.2.ajax_xhr.min.js | andrew/Nodecopter.app | /*! jQuery v1.8.2 -deprecated,-css,-ajax/script,-ajax/jsonp,-effects,-offset,-dimensions jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttr... |
features/filmStrip/components/Thumbnail.js | jitsi/jitsi-meet-react | import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
Audio,
MEDIA_TYPE
} from '../../base/media';
import {
PARTICIPANT_ROLE,
pinParticipant
} from '../../base/participants';
import { Container } from '../../base/react';
import { getTrackByMediaTypeAndParticipant } f... |
app/src/pages/Deneme/deneme.js | fikrimuhal/animated-potato | import React from 'react'
export default React.createClass({
render() {
return (
<svg>
<circle cx={50} cy={50} r={10} fill="red"/>
</svg>
)
}
}) |
app/src/components/leaderboard/index.js | ajfisher/tourney-tools | import _ from 'lodash';
import React, { Component } from 'react';
import { Table } from 'semantic-ui-react'
import { TeamSwatch } from '../team';
class Leaderboard extends Component {
render () {
const { teams, standings } = this.props;
return (
<Table singleLine celled unstackable... |
src/svg-icons/image/transform.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTransform = (props) => (
<SvgIcon {...props}>
<path d="M22 18v-2H8V4h2L7 1 4 4h2v2H2v2h4v8c0 1.1.9 2 2 2h8v2h-2l3 3 3-3h-2v-2h4zM10 8h6v6h2V8c0-1.1-.9-2-2-2h-6v2z"/>
</SvgIcon>
);
ImageTransform = pure(I... |
app/javascript/mastodon/components/media_gallery.js | vahnj/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { is } from 'immutable';
import IconButton from './icon_button';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { isIOS } from '../is_mobile';
import class... |
ajax/libs/webshim/1.14.5-RC2/dev/shims/es6.js | Dervisevic/cdnjs | // ES6-shim 0.8.0 (c) 2013 Paul Miller (paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.
// For more details and documentation:
// https://github.com/paulmillr/es6-shim/
webshim.register('es6', function($, webshim, window, document, undefined){
'use strict';
var isCallableWithoutNew = fun... |
node_modules/react-router/es6/Lifecycle.js | ddigioia/react_router_practice_1 | import warning from './routerWarning';
import React from 'react';
import invariant from 'invariant';
var object = React.PropTypes.object;
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation.
*
* On stan... |
client/src/components/pages/Signup/index.js | mbchoa/presence | import React from 'react';
import { connect } from 'react-redux';
import { Toolbar, ToolbarTitle } from 'material-ui/Toolbar';
import Paper from 'material-ui/Paper';
import styles from './styles.css';
import SignupForm from './SignupForm';
const SignupPage = () =>
(<div className="signup">
<div className="sign... |
libs/angular.js/0.9.19/angular-scenario.js | tenstone/baiducdnstatic | /*!
* 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.
... |
ajax/libs/forerunnerdb/1.4.20/fdb-all.min.js | BenjaminVanRyseghem/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... |
app/scripts/FixedTrack.js | hms-dbmi/higlass | import React from 'react';
import TrackArea from './TrackArea';
export default class FixedTrack extends TrackArea {
render() {
let controls = null;
if (
this.props.editable &&
(this.state.controlsVisible || this.props.item.configMenuOpen)
) {
controls = this.getControls();
}
l... |
app/javascript/mastodon/components/status_list.js | 3846masa/mastodon | import React from 'react';
import Status from './status';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { ScrollContainer } from 'react-router-scroll';
import PropTypes from 'prop-types';
import StatusContainer from '../containers/status_container';
import LoadMore from './load_more';
import Immuta... |
node_modules/react-icons/lib/fa/bookmark-o.js | bairrada97/festival | '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]; } }... |
examples/js/column/demo.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import ColumnAlignTable from './column-align-table';
import ColumnWidthTable from './column-width-table';
import ColumnHideTable from './column-hide-table';
import ColumnWordWrapTable from './column-style-table';
import ColumnTitleTable from './column-title-table';
imp... |
src/js/Cards/CardActions.js | lwhitlock/grow-tracker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import deprecated from 'react-prop-types/lib/deprecated';
import CardExpander from './CardExpander';
/**
* The `CardActions` component is used for adding actions on your card.
* The actions should be `FlatButt... |
client/src/global/components/icon/64/ActivityText.js | ManifoldScholar/manifold | import React, { Component } from "react";
import PropTypes from "prop-types";
import classnames from "classnames";
export default class ActivityText extends Component {
static propTypes = {
className: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
stroke: PropTypes.str... |
packages/material-ui-icons/src/StreetviewSharp.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="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z" /><circle cx="18" cy="6" r="5" /... |
packages/material-ui-icons/src/LocalHospitalRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 11h-3v3c0 .55-.45 1-1 1h-2c-.55 0-1-.45-1-1v-3H7c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1h3V7c0-.55.45-1 1-1h2c.55 0 1 ... |
ajax/libs/yui/3.7.3/event-custom-base/event-custom-base.js | chinakids/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
public/jspm_packages/npm/material-ui@0.14.4/lib/svg-icons/editor/format-quote.js | nayashooter/ES6_React-Bootstrap | /* */
'use strict';
Object.defineProperty(exports, "__esModule", {value: true});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMixi... |
src/react/components/Dropdown.js | formtools/core | import React from 'react';
import Select from 'react-select';
const getSelected = (data, selected) => data.find((item) => item.value === selected);
const Dropdown = ({ data, selected, onChange }) => (
<Select
options={data}
defaultValue={getSelected(data, selected)}
onChange={onChange}
styles={{
control: ... |
packages/material-ui-icons/src/AssignmentInd.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 4c1.66 0 3 1.34 3 3... |
app/javascript/mastodon/features/ui/components/drawer_loading.js | esetomo/mastodon | import React from 'react';
const DrawerLoading = () => (
<div className='drawer'>
<div className='drawer__pager'>
<div className='drawer__inner' />
</div>
</div>
);
export default DrawerLoading;
|
static/src/app/advanced.js | jredrejo/web2pyreactpoc | import React from 'react'
import ReactDOM from 'react-dom'
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'
ReactDOM.render(
<BootstrapTable data={window.props.products} striped hover>
<TableHeaderColumn isKey dataField="id">
Product ID
</TableHeaderColumn>
<TableHeaderColu... |
lens-ui/app/components/QueryResultsComponent.js | sriksun/incubator-lens | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... |
src/components/Bulk/BulkListView.js | City-of-Helsinki/helerm-ui | import React from 'react';
import PropTypes from 'prop-types';
import { Link, withRouter } from 'react-router-dom';
import Select from 'react-select';
import { filter, includes, isEmpty, keys } from 'lodash';
import {
CHANGE_BULKUPDATE,
BULK_UPDATE_PACKAGE_APPROVE_OPTIONS
} from '../../constants';
import {
forma... |
app/addons/fauxton/notifications/components/NotificationPanelWithTransition.js | michellephung/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
src/client/components/loadChart.js | dvorakjan/noderunner-gui | import React from 'react';
import AmCharts from 'amcharts3-react';
var colors = ['#f0e68c','#fbc165','#fb9a5b','#f37459','#e25153','#cb3044','#ad102a','#8b0000']
export default React.createClass({
getInitialState: function() {
return {dataProvider: []}
},
parseLoadData: function(d) {
d.d... |
examples/passing-props-to-children/app.js | SpainTrain/react-router | import React from 'react';
import { Router, Route, Link, History } from 'react-router';
var App = React.createClass({
mixins: [ History ],
getInitialState() {
return {
tacos: [
{ name: 'duck confit' },
{ name: 'carne asada' },
{ name: 'shrimp' }
]
};
},
addTaco() {... |
tests/react_instance/class.js | JonathanUsername/flow | // @flow
import React from 'react';
declare var any: any;
class Foo extends React.Component<{}, void> {yep1: boolean}
class Bar extends React.Component<{}, void> {yep2: boolean}
(any: React$ElementRef<Class<Foo>>).yep1; // OK
(any: React$ElementRef<Class<Foo>>).yep2; // Error
(any: React$ElementRef<Class<Foo>>).nop... |
Libraries/Components/TextInput/TextInput.js | chrisbutcher/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... |
src/input/index.js | denisraslov/react-spreadsheet-table | import React from 'react';
import PropTypes from 'prop-types';
import keys from './../kit/keymap';
import styles from './styles.css';
class SpreadsheetGridInput extends React.PureComponent {
constructor(props) {
super(props);
this.onKeyDown = this.onKeyDown.bind(this);
this.onChange = th... |
src/components/profile/ProfileDataUsePolicy.js | jfilter/frag-den-staat-app | import { Text } from 'react-native';
import React from 'react';
import BlankContainer from '../library/BlankContainer';
const ProfileDataUsePolicy = () => (
<BlankContainer>
<Text>
{`Die Sicherheit Ihrer Daten hat bei uns höchste Priorität. Wir ergreifen jede nur mögliche Maßnahme, um Ihre persönlichen Da... |
ajax/libs/forerunnerdb/1.3.566/fdb-all.js | sreym/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... |
soon/react-boilerplate/app/components/LoadingIndicator/index.js | rmevans9/reactotron | import React from 'react';
import Circle from './Circle';
import Wrapper from './Wrapper';
const LoadingIndicator = () => (
<Wrapper>
<Circle />
<Circle rotate={30} delay={-1.1} />
<Circle rotate={60} delay={-1} />
<Circle rotate={90} delay={-0.9} />
<Circle rotate={120} delay={-0.8} />
<Cir... |
ajax/libs/yui/3.10.3/scrollview-base/scrollview-base.js | karlfreeman/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
pootle/static/js/auth/components/RequestPasswordResetSent.js | dwaynebailey/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { PureRenderMixin } from... |
doc/docblox/js/jquery-1.4.2.min.js | noiselabs/noiselabs-php-toolkit | /*!
* 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.
... |
js-old/src/views/Status/status.js | destenson/ethcore--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... |
web/assets/js/homepage/HereWeOffer.js | xuqiantong/NY_Auto | /**
* Created by jeanliu on 3/16/17.
*/
import React from 'react';
function OfferMaintain(props) {
const imgPath = props.imgPath;
return (
<div className="offer-item col-md-3 col-sm-6">
<div className="offer-item-title">
Complementary Maintenance
</div>
... |
ajax/libs/aui/5.9.3/aui/js/aui-experimental.js | tholu/cdnjs | // src/js/aui/polyfills/placeholder.js
(typeof window === 'undefined' ? global : window).__f1b7d9a0fb9e49fbe8414d2fde4a5eec = (function () {
var module = {
exports: {}
};
var exports = module.exports;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
v... |
src/__tests__/Dropdown.spec.js | reactstrap/reactstrap | import React from 'react';
import { mount, shallow } from 'enzyme';
import { Popper, Reference } from 'react-popper';
import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from '../';
import { keyCodes } from '../utils';
describe('Dropdown', () => {
let isOpen;
let toggle;
let element;
beforeEach(()... |
src/components/DataTable.js | jakeowns/react-live-graph | import React from 'react';
import DataRow from './DataRow';
import NewDataRow from './NewDataRow';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import * as actions from '../actions/actions';
class DataTable extends React.Component {
constructor(props, context) {
super(props, con... |
fields/types/password/PasswordColumn.js | linhanyang/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var PasswordColumn = React.createClass({
displayName: 'PasswordColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue... |
ajax/libs/angular-google-maps/1.0.16/angular-google-maps.js | taydakov/cdnjs | /*! angular-google-maps 1.0.16 2014-03-26
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
(function() {
angular.element(document).ready(function() {
if (!(google || (typeof google !== "undefined" && google !== null ? google.maps : void 0) || (google.maps.... |
client/src/containers/RatingInfo.js | Nonsoft/crdweb | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import RatingInfoPage from '../components/pages/RatingInfo';
// import { fetchSelectFinaInstInfo } from '../actions';
class RatingInfo extends Component {
render() {
// const { finaInstInfo, fetch... |
ajax/libs/clappr/0.0.68/clappr.js | maxklenk/cdnjs | require=(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)... |
Rosa_Madeira/Cliente/src/components/common/Header.js | victorditadi/IQApp | import React from 'react';
import { Text, View } from 'react-native';
const Header = (props) => {
const { textStyle, viewStyle } = styles;
return (
<View style={viewStyle}>
<Text style={textStyle}>{props.headerText}</Text>
</View>
);
};
const styles = {
viewStyle: {
backgroundColor: '#F8F8F... |
src/router.js | palmg/pwfe-dom | /**
* Created by chkui on 2017/5/11.
* 通用路由工具组件
*/
'use strict';
import React from 'react'
import {isServerEvn, getComponentName} from './util'
import {HistoryType, getHisType} from './env'
import createBrowserHistory from 'history/createBrowserHistory'
import createHashHistory from 'history/createHashHistory'
impor... |
src/app-client.js | bernatixer/ConnectedCars | import React from 'react';
import { render } from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom';
import { App } from './components/App';
const AppClient = () => (
<Router>
<App />
</Router>
);
window.onload = () => {
render(<AppClient />, document.getElementById('main'));... |
node_modules/react-bootstrap/es/FormControlFeedback.js | CallumRocks/ReduxSimpleStarter | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
ajax/libs/mobx/2.6.3/mobx.umd.js | nolsherry/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.mobx = f()}})(... |
src/applications/disability-benefits/996/tests/pages/optIn.unit.spec.js | department-of-veterans-affairs/vets-website | import React from 'react';
import { expect } from 'chai';
import { mount } from 'enzyme';
import sinon from 'sinon';
import {
DefinitionTester,
selectCheckbox,
} from 'platform/testing/unit/schemaform-utils';
import formConfig from '../../config/form';
describe('HLR opt-in page', () => {
const { schema, uiSche... |
src/components/NotFoundPage/NotFoundPage.js | bryanlelliott/bryan_site_react | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
//import './NotFoundPage.less';
import React from 'react'; // eslint-disable-line no-unus... |
docs/app/Components/ComponentDoc/ComponentProps/ComponentPropsHeader.js | shengnian/shengnian-ui-react | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import { Header, Icon } from 'shengnian-ui-react'
import { updateForKeys } from 'docs/app/HOC'
const headerStyle = {
cursor: 'pointer',
display: 'inline-flex',
margin: '1em 0.5em',
marginLeft: 0,
}
const linkStyle = { co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.