path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
examples/src/components/DisabledUpsellOptions.js | lemming/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var DisabledUpsellOptions = React.createClass({
displayName: 'DisabledUpsellOptions',
propTypes: {
label: React.PropType... |
app/components/molecules/TitleBlock/presenter.js | altiore/webpack_config_example | import React from 'react'
import FlatButton from 'material-ui/FlatButton'
import { NavLink } from 'react-router-dom'
import './style.scss'
const Title = () => (
<div className='l-header-title'>
<div className='b-header-title'>
<FlatButton
className='b-header-title__button'
hoverColor='#fff... |
app/javascript/mastodon/components/__tests__/avatar-test.js | rutan/mastodon | import React from 'react';
import renderer from 'react-test-renderer';
import { fromJS } from 'immutable';
import Avatar from '../avatar';
describe('<Avatar />', () => {
const account = fromJS({
username: 'alice',
acct: 'alice',
display_name: 'Alice',
avatar: '/animated/alice.gif',
avatar_static:... |
docs/app/components/editor/index.js | jasonleibowitz/react-toolbox | import React from 'react';
import style from './style';
import CodeMirror from 'codemirror';
import 'codemirror/mode/javascript/javascript';
class Editor extends React.Component {
static propTypes = {
className: React.PropTypes.string,
codeText: React.PropTypes.string,
lineNumbers: React.PropTypes.bool,
... |
src/components/Sleepover.js | evelinalaroussi/evelinalaroussi.github.io | import React from 'react';
import Interactive from 'react-interactive';
import { Link } from 'react-router-dom';
//import { Code } from '../styles/style';
//import s from '../styles/home.style';
export default class Sleepover extends React.Component {
constructor(props) {
super(props);
}
render() {
r... |
packages/material-ui-icons/src/QuestionAnswerSharp.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="M22 6h-3v9H6v3h12l4 4V6zm-5 7V2H2v15l4-4h11z" /></React.Fragment>
, 'QuestionAnswerSharp');
|
ajax/libs/webshim/1.15.7/dev/shims/moxie/js/moxie-html4.js | jackdoyle/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 ... |
user_guide/searchindex.js | shushankareyan/info | Search.setIndex({envversion:42,terms:{represent:[25,118,13,80],mybackup:76,yellow:[6,132],poorli:93,four:[152,89,54,138,55,128,124,133,127],prefix:[89,97,2,29],oldest:133,hate:134,optimize_databas:76,forget:[51,106],whose:29,choos:[44,88,12,152,29,54,80,47,82,112,106,51,149],accur:[0,29,117,154,42,96],aug:93,emailaddre... |
src/components/client/perso/PersoPage.js | PtitNoony/abretonworkshop | 'use strict';
import React from 'react';
import { Link } from 'react-router-dom';
import { MenuItem, Nav, Navbar, NavDropdown, NavItem, Tab, Tabs} from 'react-bootstrap';
export default class PersoPage extends React.Component {
render() {
return (
<div className="reactPageContainer">
... |
src/components/error-pane/renderer.js | jlove29/vega-editor | import React from 'react';
import './index.css';
export default class ErrorPane extends React.Component {
render() {
const list = [];
if (this.props.error) {
list.push(<li key={0}><span className='error'>[Error] </span>{this.props.error}</li>);
}
this.props.warningsLogger.warns
.fo... |
static-server.js | Bernardstanislas/focus-components |
var components = require('./package.json').components.sort(function(a, b){
if(a.name > b.name){
return 1;
}
if (a.name < b.name){
return -1;
}
return 0;
});
var componentServers = {};
var port = "3000";
/**
* Creates a component map with all existing components.
*/
components.map(function(component) {
var pt... |
src/app.js | bshevchenko/ChronoMint | import React from 'react'
import {render} from 'react-dom'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import themeDefault from './themeDefault'
import injectTapEventPlugin from 'react-tap-event-plugin'
import router from './router.js'
import IPFSDAO from './dao/IPFSDAO'
import OrbitDAO from './d... |
www/frontend/src/components/News1.js | lokiiart/upali-mobile | import React from 'react';
const News1 = () => {
return (
<div className="product sub-section section">
<p className="pr content">
广东省省食品药品监督管理局副局长调研我市保健食品生产企业
</p>
<img src="dist/images/news3.png" />
<p className="pr content">
201... |
src/components/header.js | ak1103dev/ak1103dev.github.io | import { Link } from 'gatsby'
import PropTypes from 'prop-types'
import React from 'react'
const Header = ({ siteTitle }) => (
<div
style={{
background: `rebeccapurple`,
marginBottom: `1.45rem`,
}}
>
<div
style={{
margin: `0 auto`,
maxWidth: 960,
padding: `1.45... |
app/renderer/components/widevineInfo.js | willy-b/browser-laptop | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* Educates users that this is DRM, why it is not great, and that
* we don't own the code being executed if it... |
src/index.js | tmpaul06/gathering-client | require('es6-shim');
require('es6-symbol/implement');
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
tests/wpt/web-platform-tests/custom-elements/reactions/resources/reactions.js | KiChjang/servo |
let testNumber = 1;
function testNodeConnector(testFunction, name) {
let container = document.createElement('div');
container.appendChild(document.createElement('div'));
document.body.appendChild(container);
test(function () {
var element = define_new_custom_element();
var instance = ... |
src/components/Feedback/Feedback.js | jshin47/ireactforyou | /**
* 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 withStyles from 'isomorp... |
packages/material-ui-icons/src/HighlightTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M11 20h2v-3.83l3-3V11H8v2.17l3 3z" opacity=".3" /><path d="M6 14l3 3v5h6v-5l3-3V9H6v5zm2-3h8v2.17l-3 3V20h-2v-3.83l-3-3V11zM11 2h2v3h-2zM4.9156 4.4638L7.036 6.586 5.6212 7.9996 3.5008 ... |
src/Component.js | jeremyxgo/react-component-boilerplate | import React from 'react';
import classNames from 'classnames';
import styles from './style.scss';
export default class Component extends React.Component {
static propTypes = {
content: React.PropTypes.string,
onClick: React.PropTypes.func
}
static defaultProps = {
content: 'Component',
onClick:... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactUtilityTypes/codemod.js | MichaelDeBoey/flow | /**
* @format
*/
'use strict';
// All the event names that we need to add <> to.
const SYNTHETIC_EVENT_NAMES = new Set([
'SyntheticEvent',
'SyntheticAnimationEvent',
'SyntheticClipboardEvent',
'SyntheticCompositionEvent',
'SyntheticInputEvent',
'SyntheticUIEvent',
'SyntheticFocusEvent',
'SyntheticKe... |
src/elements/input.js | jessy1092/react-semantify |
import React from 'react';
import filter from '../filter';
const stateArray = ['loading', 'focus', 'error'];
const defaultClassName = 'ui input';
const componentName = 'Input';
const Basic = React.createClass({
render: function () {
const { props: { className, children, ...other } } = this;
if... |
src/svg-icons/content/clear.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentClear = (props) => (
<SvgIcon {...props}>
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
</SvgIcon>
);
ContentClear = pure(ContentClea... |
src/app/app.js | technics/isomorphic-js | 'use strict';
import React from 'react';
import App from './components/App';
// Attach the app to the DOM.
React.render(<App />, document.getElementById('app'));
|
src/svg-icons/action/settings-brightness.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsBrightness = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1... |
docs/app/Examples/elements/Rail/Types/index.js | shengnian/shengnian-ui-react | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const RailTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Rail'
description='A rail ... |
docs/src/app/components/pages/components/CircularProgress/ExampleSimple.js | matthewoates/material-ui | import React from 'react';
import CircularProgress from 'material-ui/CircularProgress';
const CircularProgressExampleSimple = () => (
<div>
<CircularProgress />
<CircularProgress size={60} thickness={7} />
<CircularProgress size={80} thickness={5} />
</div>
);
export default CircularProgressExampleSim... |
src/containers/NotFoundPage.js | daheim/daheim-app-ui | import React from 'react'
import {goBack} from 'react-router-redux'
import {connect} from 'react-redux'
class NotFoundPage extends React.Component {
static propTypes = {
goBack: React.PropTypes.func.isRequired
}
goBack = (e) => {
e.preventDefault()
this.props.goBack()
}
render () {
return ... |
src/frontend/react/App.js | FakeYou/voerr | import React from 'react';
import { Link } from 'react-router';
import Nav from 'react/components/nav';
import LoginActions from 'flux/actions/LoginActions';
import 'assets/style/app';
export default class App extends React.Component {
componentWillMount() {
LoginActions.requestUser();
}
componentDidUpdate() {... |
ajax/libs/yui/3.8.1/event-custom-base/event-custom-base-debug.js | dhowe/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... |
components/PageHeader.js | turntwogg/esports-aggregator | import React from 'react';
import classNames from 'classnames';
import { Container } from '@turntwo/react-ui';
import Heading from './Heading';
import { useTheme } from '@turntwo/react-ui';
const PageHeader = ({
children,
flex,
flexCenter,
flexMobile,
noFlex,
title,
...rest
}) => {
const theme = useT... |
src/bower_components/react/react-with-addons.js | appbaseio/Now | /**
* React (with addons) v0.14.0
*/
(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!=="undef... |
js/src/ui/SectionList/sectionList.example.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... |
server/frontend/src/index.js | cs472-spots/spots | // src/index.js
import React from 'react';
import ReactDOM from 'react-dom';
import { hashHistory } from 'react-router';
import { Provider } from 'nectarine';
// eslint-disable-next-line
import Store from './store/Store.js';
import Routes from './routes/index.js';
import './index.css';
//Renders the components passed... |
ajax/libs/react-datepicker/0.23.0/react-datepicker.min.js | redmunds/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("moment"),require("react-dom"),require("react"),require("react-onclickoutside")):"function"==typeof define&&define.amd?define(["moment","react-dom","react","react-onclickoutside"],e):"object"==typeof exports?exports.DatePicker=e(r... |
src/svg-icons/notification/sms-failed.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSmsFailed = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/>
</SvgIcon>
);
NotificationSmsFail... |
modules/genomic_browser/jsx/tabs_content/snp.js | driusan/Loris | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import FilterableDataTable from 'jsx/FilterableDataTable';
import Loader from 'jsx/Loader';
/**
* SNP Component.
*
* @description Genomic Browser SNP tab.
*
* @author Alizée Wickenheiser
* @version 1.0.0
*
*/
class SNP extends Componen... |
src/entypo/Share.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--Share';
let EntypoShare = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M15,13.442c-0.633,0-1.204,0.246-1.637,0.642l-5.938-3.463C7.471,10.433,7.5,10.237,7.5,10.037S7.471,9.642... |
react/src/components/flag/SprkFlag.js | sparkdesignsystem/spark-design-system | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
const SprkFlag = (props) => {
// TODO: remove additionalMediaClasses and additionalBodyClasses
// next release
const {
additionalMediaClasses,
additionalBodyClasses,
bodyAdditionalClasses,
mediaAdd... |
ajax/libs/ui-router-extras/0.0.11/ct-ui-router-extras.min.js | LeaYeh/cdnjs | /*! ui-router-extras - v0.0.11 - 2014-11-21 */!function(a,b,c){function d(a,b){var c=[];for(var d in a.path){if(a.path[d]!==b.path[d])break;c.push(a.path[d])}return c}function e(a){if(Object.keys)return Object.keys(a);var c=[];return b.forEach(a,function(a,b){c.push(b)}),c}function f(a,b){if(Array.prototype.indexOf)ret... |
app/components/compass.js | joeyschroeder/speedometer-app | import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import PropTypes from 'prop-types';
import { Svg } from 'expo';
import { Variables } from '../assets/styles/variables';
import { convertHeadingToPercent } from '../util/convert-heading-to-percent';
import eases from 'eases... |
docs/app/Examples/modules/Rating/Types/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const RatingTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Rating'
description='A b... |
src/containers/Asians/TabControls/ParticipantsTeamsDebaters/ExistingTable/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import Instance from './Instance'
export default connect(mapStateToProps)(({
teams,
institutionsById
}) => {
teams.sort((a, b) => {
if (a.institution && b.institution) {
if (institutionsById[a.institution].name > institutionsById[b.instit... |
app/packs/src/components/report/Serials.js | ComPlat/chemotion_ELN | import React from 'react';
import SVG from 'react-inlinesvg';
import { Panel } from 'react-bootstrap';
import Formula from '../common/Formula';
import CommonInput from '../common/CommonInput';
import ReportActions from '../actions/ReportActions';
const Serial = ({ serial, counter }) => {
if (!serial) return null;
... |
stories/components/socialMedia/index.js | tskuse/operationcode_frontend | import React from 'react';
import { storiesOf } from '@storybook/react';
import SocialMedia from 'shared/components/socialMedia/socialMedia';
storiesOf('shared/components/socialMedia', module)
.add('Default', () => (
<SocialMedia />
));
|
src/components/Header/CloseIcon.js | evandromacedo/evandromacedo.com | import React from 'react'
const CloseIcon = () => (
<svg width={24} height={24}>
<title>Close</title>
<path
d="M1.713.294L12 10.58 22.287.294c.362-.362.931-.39 1.325-.084l.094.084c.362.362.39.93.084 1.324l-.084.095L13.42 12l10.287 10.287a1.003 1.003 0 01-1.419 1.42L12 13.418 1.713 23.706c-.362.362-.931... |
lib/components/MapView.js | pjamrozowicz/react-native-maps | import PropTypes from 'prop-types';
import React from 'react';
import {
EdgeInsetsPropType,
Platform,
Animated,
requireNativeComponent,
NativeModules,
ColorPropType,
findNodeHandle,
ViewPropTypes,
View,
} from 'react-native';
import MapMarker from './MapMarker';
import MapPolyline from './MapPolyline'... |
admin/client/App/screens/Item/components/FooterBar.js | xyzteam2016/keystone | import React from 'react';
import blacklist from 'blacklist';
import assign from 'object-assign';
var FooterBar = React.createClass({
propTypes: {
style: React.PropTypes.object,
},
getDefaultProps () {
return {
style: {},
};
},
getInitialState () {
return {
position: 'relative',
width: 'auto',
... |
client/src/SearchResults.js | chi-bumblebees-2017/gnomad | import React, { Component } from 'react';
import UserListItemContainer from './UserListItemContainer'
class SearchResults extends Component {
render() {
if (this.props.results.length === 0) {
return (
<div className="search-results ui comments container">
<p className="margin-none">No loc... |
src/components/Resume/EducationsPage.js | angeloocana/angeloocana | import React from 'react';
import PropTypes from 'prop-types';
import ResumeContainer from './ResumeContainer';
import Educations from './Educations';
const EducationsPage = (props) => {
const { educations, menu } = props.data.site.siteMetadata.resume;
const { langKey } = props.pathContext;
return (
<Resume... |
packages/babel-core/test/fixtures/transformation/optimisation.react.constant-elements/inline-elements/expected.js | jeffmo/babel | var _typeofReactElement = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7;
var _ref = {
$$typeof: _typeofReactElement,
type: "foo",
key: null,
ref: null,
props: {},
_owner: null
};
function render() {
return _ref;
}
function render() {
var text = getText();
var _r... |
files/rxjs/2.3.7/rx.js | anilanar/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
tp-3/recursos/react-slingshot/src/components/pages/welcome/WelcomePage.js | solp/sovos-reactivo-2017 | import React from 'react';
// Since this component is simple and static, there's no parent container for it.
const WelcomePage = () => {
return (
<div>
<h2 className="alt-header">Bienvenido a Sovosiano! </h2>
<p>
Esta es la pagina estatica de bienvenida solamente. Tu tendras que hacer una co... |
example/screens/CustomMapStyle.js | hlz2103/SwipeMe |
import React from 'react';
import {
StyleSheet,
View,
Dimensions,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_DELTA = 0.0922;
con... |
assets/themes/default/hero_files/jquery.js | benesgarage/phoneBlog | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function( window, undefined ) {
// Use the correct document accordingly with window argument (sandbox)
var document = window.document,
navigator = window.navigator,
location = window.location;
var jQuery = (function() {
// Define a local copy of jQuery
var jQuer... |
src/svg-icons/hardware/laptop-chromebook.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareLaptopChromebook = (props) => (
<SvgIcon {...props}>
<path d="M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm6-3H4V5h16v10z"/>
</SvgIcon>
);
HardwareLaptopChromebook = pure(HardwareLaptopChromebook);
Har... |
files/polymer/0.5.4/polymer.js | as-com/jsdelivr | /**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be f... |
docs/src/sections/CarouselSection.js | Sipree/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function CarouselSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<... |
src/components/FileSelector/__tests__/FileSelector.spec.js | propertybase/react-lds | import React from 'react';
import { mount } from 'enzyme';
import Dropzone from 'react-dropzone';
import FileSelector from '../FileSelector';
import { FormElementError, FormElement } from '../../Form';
const getComponent = (props = {}) => mount(
<FileSelector
{...props}
id="file-selector"
buttonText="btn... |
packages/material-ui-icons/src/LocalMoviesOutlined.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="M14 5v14h-4V5h4m6-2h-2v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3zm-4 6V7h2v2h-2zM6 9V7h2v2H6zm10 4v-2h2v2h-2zM6 13v-2h2v2H6zm10 4v-2h2v2h-2zM6 1... |
ajax/libs/babel-core/5.8.29/browser.min.js | Piicksarn/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,r;return function n(e,... |
packages/material-ui-icons/src/Movie.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z" />
, 'Movie');
|
public/js/11D.js | ritchieanesco/frontendmastersreact | /* Setting application state */
import React from 'react'
// type annotataions for data
const {string} = React.PropTypes
const ShowCard = React.createClass({
propTypes: {
poster: string,
title: string,
year: string,
description: string
},
render () {
// destructuring - e6 feature
const {... |
packages/material-ui-icons/src/StraightenTwoTone.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="M19 12h-2V8h-2v4h-2V8h-2v4H9V8H7v4H5V8H3v8h18V8h-2z" opacity=".3" /><path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.... |
src/routes/login/index.js | kdama/react-starter-kit-twitter | /**
* 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 Login from './Login';
e... |
src/view/catalog/pre-text.js | NaNuNoo/Matcha | import { withStyles } from 'material-ui/styles';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import PreBase from './pre-base';
import styles from './pre-text-styles';
function _PreText({
classes, path, title, author, date, html
}) {
const newContent = (
<div>
<div dange... |
admin/client/App/index.js | frontyard/keystone | /**
* This is the main entry file, which we compile the main JS bundle from. It
* only contains the client side routing setup.
*/
// Needed for ES6 generators (redux-saga) to work
import '@babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, browserHistory, IndexRout... |
client/modules/map/form.js | jozecarlos/bloodonors | import React, { Component } from 'react';
import {
Modal,
ModalHeader,
ModalTitle,
ModalClose,
ModalBody,
ModalFooter,
} from 'react-modal-bootstrap';
import axios from 'axios';
export default class Form extends Component {
constructor(props) {
super(props);
this.state = { isOpen: false,
... |
pathfinder/vtables/applicationcloudmaturityandadoption/src/common/Link.js | leanix/leanix-custom-reports | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Link extends Component {
constructor(props) {
super(props);
this._handleClick = this._handleClick.bind(this);
}
_handleClick(e) {
e.preventDefault();
lx.openLink(this.props.link, this.props.target);
}
render() {
if (!... |
packages/react-codemod/test/pure-render-mixin-test3.output.js | kakadiya91/react | var React = require('react/addons');
var Foo = 'Foo';
var MyComponent = React.createClass({
shouldComponentUpdate: function(nextProps, nextState) {
return React.addons.shallowCompare(this, nextProps, nextState);
},
render: function() {
return <div />;
}
});
module.exports = MyComponent;
|
components/Modal/ModalPortal.js | scott-riley/loggins | import React from 'react';
import cx from 'react/lib/cx';
export default React.createClass({
propTypes: {
className: React.PropTypes.string,
isOpen: React.PropTypes.bool.isRequired,
onRequestClose: React.PropTypes.func,
children: React.PropTypes.any,
},
backgroundClick(e) {
if (e.target.cla... |
app/index.js | JCombee/wallet | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
import configureStore from './store/configureStore';
import './app.global.c... |
src/routes/UIElement/dropOption/index.js | IssaTan1990/antd-admin | import React from 'react'
import { DropOption } from '../../../components'
import { Table, Row, Col, Card, message } from 'antd'
const DropOptionPage = () => <div className="content-inner">
<Row gutter={32}>
<Col lg={8} md={12}>
<Card title="默认">
<DropOption menuOptions={[{ key: '1', name: '编辑' }, ... |
app/containers/MainView.js | transparantnederland/browser | import React from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import TwoColumnLayout from '../layouts/TwoColumnLayout';
import ResultPanel from './ResultPanel';
import DetailPanel from './DetailPanel';
const MainView = React.createClass({
shouldComponen... |
app/containers/RepoListItem/index.js | Demonslyr/Donut.WFE.Customer | /**
* RepoListItem
*
* Lists the name and the issue count of a repository
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { FormattedNumber } from 'react-intl';
import { makeSelectCurrentUser } fro... |
src/svg-icons/action/line-style.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLineStyle = (props) => (
<SvgIcon {...props}>
<path d="M3 16h5v-2H3v2zm6.5 0h5v-2h-5v2zm6.5 0h5v-2h-5v2zM3 20h2v-2H3v2zm4 0h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM3 12h8v-2H3v2zm10 0h8v-2h... |
ajax/libs/yui/3.8.0pr1/event-custom-base/event-custom-base-debug.js | dannyxx001/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... |
react-flux/psadmin/src/components/commons/header.js | mauriciojunior/react-playground | 'use strict'
import React from 'react'
import {Link} from 'react-router'
const Header = React.createClass({
render: function () {
return (
<nav className='navbar navbar-default'>
<div className='container-fluid'>
<Link to='app' className='navbar-brand'>
<img src='images/pluralsight-logo.png' />
... |
accounts-ui/app/components/reset.js | CloudBoost/cloudboost | import React from 'react';
import {Link} from 'react-router'
import axios from 'axios'
import CircularProgress from 'material-ui/CircularProgress'
class Reset extends React.Component {
constructor() {
super()
this.state = {
errorMessage: '',
email: '',
success: f... |
ajax/libs/reactive-coffee/0.0.5/reactive-coffee.js | laurenceHR/cdnjs | (function() {
var DepArray, DepCell, DepMap, DepMgr, Ev, MappedDepArray, ObsArray, ObsCell, ObsMap, RawHtml, Recorder, SrcArray, SrcCell, SrcMap, asyncBind, bind, depMgr, ev, events, firstWhere, lagBind, mkMap, mktag, mkuid, nextUid, nthWhere, popKey, postLagBind, prop, propSet, props, recorder, rx, rxt, setProp, spe... |
packages/material-ui-icons/src/PersonPinCircleOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 1C7.59 1 4 4.59 4 9c0 5.57 6.96 13.34 7.26 13.67l.74.82.74-.82C13.04 22.34 20 14.57 20 9c0-4.41-3.59-8-8-8zm0 19.47C9.82 17.86 6 12.54 6 9c0-3.31 2.69-6 6-6s6 2.69 6 6c0 3.83-4.25 ... |
client/containers/Profile.js | carlbernardo/gut | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
//Actions
import * as authActions from './../actions/authActions';
import * as dinerActions from './../actions/dinerActions';
import * as pollActions from './../actions/pollActions';
import * as viewActions fr... |
Origami/src/components/inputcomponents/index.js | batra-mlp-lab/CloudCVfy-Frontend | import React from "react";
import { PropTypes } from "prop-types";
import TextInputShowcaseCard from "./TextInput/TextInputShowcaseCard";
import TypeInput from "./BaseInputComponent/TypeInput";
import ImageInputShowcaseCard from "./ImageInput/ImageInputShowcaseCard";
export function getInputComponentById(
id,
inpu... |
src/components/Posts/ListItem/ListItem.component.js | cajacko/RememberWhen | // @flow
import React, { Component } from 'react';
import withRouter from '@cajacko/lib/components/HOCs/withRouter';
import PostsListItem from './ListItem.render';
import type { ReactRouter } from '../../../types/General';
import type { PostID, PostContent } from '../../../types/Post';
type Props = ReactRouter & {
... |
matricula/assets/939ddcb4/gridview/jquery.yiigridview.js | Proyecto-I/Matricula-Online | /**
* jQuery Yii GridView plugin file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright 2008-2010 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
(function ($) {
var selectCheckedRows, methods,
yiiXHR={},
gridSettings = [];
/**
* 1. Sele... |
src/utils/children.js | mikedklein/material-ui | import React from 'react';
import createFragment from 'react-addons-create-fragment';
export default {
create(fragments) {
let newFragments = {};
let validChildrenCount = 0;
let firstKey;
//Only create non-empty key fragments
for (let key in fragments) {
const currentChild = fragments[key... |
src/MoleHole.js | motevets/rewhack | import React, { Component } from 'react';
import './MoleHole.css';
class MoleHole extends Component {
calculateClasses(){
let className = "MoleHole";
className += ` level${this.props.level}`;
if(this.props.mole){
className += " withMole";
}
if(this.props.whacked) {
className += " w... |
ajax/libs/parsley.js/2.1.3/parsley.js | him2him2/cdnjs | /*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.1.3 - built Wed Jul 29 2015 08:27:00
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typ... |
src/stories/index.js | zeroasterisk/react-iframe-resizer-super | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import loremipsum from './loremipsum';
import loremipsumAsReact from './loremipsumAsReact';
import IframeResizer from '../index';
// need to pass in checkOrigin=false for our tests
const iframeResizerOptions = {
// log: true,
// auto... |
node_modules/react-scripts/config/paths.js | LuoPengFei/todo-app | // @remove-on-eject-begin
/**
* 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 ... |
packages/material-ui-icons/src/FitnessCenter.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let FitnessCenter = props =>
<SvgIcon {...props}>
<path d="M20.57 14.86L22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57 3.43... |
ajax/libs/preact/5.1.0-beta.26/preact.min.js | dakshshah96/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.preact=e.preact||{})}(this,function(e){function t(e,t,n){this.nodeName=e,this.attributes=t,this.children=n,this.key=t&&t.key}function n(e,t){if(t)for(var n in t)void 0!==t[n]&&(... |
frontend/src/components/page_header.js | b1naryth1ef/rowboat | import React, { Component } from 'react';
class PageHeader extends Component {
render() {
return (
<div className="row">
<div className="col-lg-12">
<h1 className="page-header">{this.props.name}</h1>
</div>
</div>
);
}
}
export default PageHeader;
|
Veo/node_modules/react-native/Libraries/Text/Text.js | JGMorgan/Veo | /**
* 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/7.0.0-rc.2/toolbar/toolbar.js | cdnjs/cdnjs | this.primereact = this.primereact || {};
this.primereact.toolbar = (function (exports, React, core) {
'use strict';
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
function _clas... |
ajax/libs/angular-google-maps/1.1.7/angular-google-maps.js | jacoborus/cdnjs | /*! angular-google-maps 1.1.7 2014-07-09
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softwa... |
ajax/libs/mobx-react/0.2.1/index.js | dc-js/cdnjs | (function() {
function mrFactory(mobservable, ReactDep, ReactNativeDep) {
if (!mobservable)
throw new Error("mobservable-react requires the Mobservable package.")
var React = ReactNativeDep || ReactDep;
if (!React)
throw new Error("mobservable-react requires either Re... |
test/specs/collections/Message/MessageItem-test.js | mohammed88/Semantic-UI-React | import React from 'react'
import MessageItem from 'src/collections/Message/MessageItem'
import * as common from 'test/specs/commonTests'
describe('MessageItem', () => {
common.isConformant(MessageItem)
common.implementsCreateMethod(MessageItem)
common.rendersChildren(MessageItem)
it('renders an li tag', () =>... |
src/Parser/RetributionPaladin/Modules/Items/AshesToDust.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import { formatNumber } from 'common/format';
import Module from 'Parser/Core/Module';
import Combatants from 'Parser/Core/Modules/Combatants';
import Enemies from 'Parser/Core/Modules/Enemies';
import GetDamageBonus fro... |
src/components/App.js | lakdred/Campanella-worldlinepack | import React, { Component } from 'react';
export default class App extends Component {
render () {
return (
<h1>Hello Camapanella!</h1>
);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.