path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
hello world/1.6 - style/src/components/main.js | wumouren/react-demo | import React from 'react';
export default class Main extends React.Component {
render() {
return (
<div>
</div>
)
}
} |
src/components/app.js | jocelio/meuclima | import React, { Component } from 'react';
import SearchBar from '../containers/search_bar';
import WeatherList from '../containers/weather_list';
export default class App extends Component {
render() {
return (
<div>
<SearchBar />
<WeatherList />
</div>
);
}
}
|
scripts/shared/routes/index.js | namroodinc/police-react-mobx | import React from 'react';
import { Router, Route, IndexRoute } from "react-router";
import Home from "../handlers/home";
import Post from "../handlers/post";
import AppController from "../controller/";
export default (
<Router>
<Route path="/"
component={AppController}
>
<IndexRoute component=... |
client/modules/todo/tests/todo-input.spec.js | kifahhk/nerm-boilerplate | import React from 'react';
import sinon from 'sinon';
import { shallow, expect } from '../../../util/test-helper';
import TodoInput from '../components/todo-input';
describe('TodoInput', () => {
let component;
const spy = sinon.spy();
const props = {
onSave: spy,
text: '',
placeholder: '',
editin... |
src/components/ConversationHeader/ConversationHeader.js | jwyung/navigation-rotor | import React, { Component, PropTypes } from 'react';
import Button from '../Shared/Button';
import './conversationHeader.css';
export default class ChannelHeader extends Component {
isSpotlightComponent() {
return this.props.focus[0] === this.refs['convo-header'];
}
getChildFocusLevel() {
return this.is... |
src/@ui/Icon/icons/LikeSolid.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import { Svg } from '../../Svg';
import makeIcon from './makeIcon';
const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => (
<Svg width={size} height={size} viewBox="0 0 24 24" {...otherProps}>
<Svg.Path
d="M10.8 4.03l-.03.03h.1c.4.... |
src/main.js | SimoNonnis/react-webpack-lab | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(<App />, document.getElementById('root'));
|
app/javascript/mastodon/features/favourites/index.js | robotstart/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourites } from '../../actions/interactions';
import { ScrollContainer } fr... |
src/svg-icons/maps/place.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPlace = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"... |
src/app/js/StatsDisplay.js | skratchdot/colorify | import React, { Component } from 'react';
import ColorSpaces from './ColorSpaces';
import Tiles from './Tiles';
import { friendlyName } from './helpers.js';
import throttle from 'lodash.throttle';
const throttleTime = 50;
class StatsDisplay extends Component {
constructor(props) {
super(props);
const $this =... |
src/components/D3YAxis.js | guzmonne/gux-d3-react | import React from 'react'
import T from 'prop-types'
import {DELAY} from '../variables.js'
const d3 = Object.assign({},
require('d3-selection'),
require('d3-axis'),
require('d3-transition')
)
class D3YAxis extends React.Component {
componentDidMount(){
this.draw()
}
componentDidUpdate() {
this.d... |
ajax/libs/react-native-web/0.17.7/cjs/exports/AppRegistry/renderApplication.js | cdnjs/cdnjs | "use strict";
exports.__esModule = true;
exports.default = renderApplication;
exports.getApplication = getApplication;
var _AppContainer = _interopRequireDefault(require("./AppContainer"));
var _invariant = _interopRequireDefault(require("fbjs/lib/invariant"));
var _render = _interopRequireWildcard(require("../rend... |
Realization/frontend/czechidm-core/src/content/role/RoleCatalogueRoles.js | bcvsolutions/CzechIdMng | import React from 'react';
import Helmet from 'react-helmet';
//
import * as Basic from '../../components/basic';
import SearchParameters from '../../domain/SearchParameters';
import RoleCatalogueRoleTable from './RoleCatalogueRoleTable';
/**
* Role catalogues - role assigned to role catalogue.
*
* @author Radek To... |
ajax/libs/vue/1.0.13-csp/vue.js | BenjaminVanRyseghem/cdnjs | /*!
* Vue.js v1.0.13-csp
* (c) 2015 Evan You
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
global.Vue = factory();
}(this, function ()... |
node_modules/react-dom/lib/ReactComponentEnvironment.js | LaurentEtienne/Kfe | /**
* Copyright 2014-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.
*
*
*/
'use st... |
node_modules/react-icons/io/ios-fastforward.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosFastforward = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m17.5 10l17.5 10-17.5 10v-9.6l-17.5 9.6v-20l17.5 9.6v-9.6z"/></g>
</Icon>
)
export default IoIosFastforward
|
src/sites/constellations.js | cosmowiki/cosmowiki | import React from 'react';
import ConstellationsComponent from '../components/constellations';
export default class Constellations {
static componentWithData(constellations) {
return <ConstellationsComponent constellations={constellations} />;
}
static fromRawData(rawData) {
return rawData.map(raw => C... |
fields/explorer/components/FieldType.js | dryna/keystone-twoje-urodziny | import React from 'react';
import Markdown from 'react-markdown';
import Col from './Col';
import Row from './Row';
import FieldSpec from './FieldSpec';
const ExplorerFieldType = React.createClass({
getInitialState () {
return {
readmeIsVisible: !!this.props.readme,
filter: this.props.FilterComponent.getDefa... |
ajax/libs/react-native-web/0.17.4/exports/RefreshControl/index.js | cdnjs/cdnjs | function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
/**
* Copy... |
fields/types/datetime/DatetimeField.js | trentmillar/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import {
Button,
FormField,
FormInput,
FormNote,
InlineGroup as Group,
InlineGroupSection as Section,
} from '../../../admin/client/App/elemental';
module.exports = Field.crea... |
src/renderers/__tests__/ReactCompositeComponentNestedState-test.js | rlugojr/react | /**
* 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 directory.
*
* @emails react... |
fields/types/email/EmailField.js | tony2cssc/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
/*
TODO:
- gravatar
- validate email address
*/
module.exports = Field.create({
displayName: 'EmailField',
renderField () {
return (
<FormInput
name={this.props.path}
ref="focusTarget"
value={this.pr... |
src/containers/WorkBench/BarGraph.js | UncleYee/crm-ui | import React from 'react';
import Highcharts from 'highcharts';
import {WhitePanel} from 'components';
import {primaryColor} from 'utils/colors';
import {connect} from 'react-redux';
import {getHealthInfo} from 'redux/modules/clientSuccessWorkbench';
const styles = {
root: {
position: 'relative',
overflow: '... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-router-dom/4.1.1/es/HashRouter.js | Akkuma/npm-cache-benchmark | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
docs/src/app/components/pages/components/Table/Page.js | pradel/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 tableReadmeText from './README';
import TableExampleSimple from './Exampl... |
lib/pmux-gw/static/js/jquery-ui-1.9.2.custom.js | AsherBond/pmux-gw | /*! jQuery UI - v1.9.2 - 2012-11-23
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.draggable.js, jquery.ui.droppable.js, j... |
admin/client/App/screens/Item/index.js | linhanyang/keystone | /**
* Item View
*
* This is the item view, it is rendered when users visit a page of a specific
* item. This mainly renders the form to edit the item content in.
*/
import React from 'react';
import { Center, Container, Spinner } from '../../elemental';
import { connect } from 'react-redux';
import { Link } from ... |
src/components/common/AsyncElement.js | cs-rodolfo-costa/devops-projeto | import React from 'react';
import Router from 'react-router';
import { Route, RouteHandler, Link } from 'react-router';
var AsyncElement = {
loadedComponent: null,
load: function () {
if (this.constructor.loadedComponent)
return;
this.bundle(function (component) {
this.constructor.loadedC... |
loc8-react-redux-front-end/src/components/Home/index.js | uberslackin/django-redux-loc8-ARweb | import Banner from './Banner';
import MainView from './MainView';
import React from 'react';
import Tags from './Tags';
import agent from '../../agent';
import { connect } from 'react-redux';
const Promise = global.Promise;
const mapStateToProps = state => ({
...state.home,
appName: state.common.appName,
token:... |
assets/routes.js | apolishch/react-article | 'use strict'
import React from 'react'
import { TextBody, Container, Composition } from './components'
import { Route, IndexRoute } from 'react-router'
export default
<Route path='/' component={Container}>
<Route path='/textBody'>
<IndexRoute component={TextBody} />
</Route>
<Route path='/composit... |
jekyll-strapi-tutorial/api/plugins/content-type-builder/admin/src/components/OldInput/index.js | strapi/strapi-examples | /**
*
* Input
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { get, isEmpty, map, mapKeys, isObject, reject, includes } from 'lodash';
import { FormattedMessage } from 'react-intl';
import styles from './styles.scss';
/* eslint-disable react/jsx-wrap-multilines */
/* eslint-disable react/r... |
src/Affix.js | coderstudy/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import AffixMixin from './AffixMixin';
import domUtils from './utils/domUtils';
const Affix = React.createClass({
statics: {
domUtils
},
mixins: [AffixMixin],
render() {
let holderStyle = {top: this.state.affixPositionTop};
return (... |
IQMail_App/src/components/common/Input.js | victorditadi/IQApp | import React, { Component } from 'react';
import { TextInput, View, Text } from 'react-native';
const Input = ({ label, value, onChangeText, placeholder, secure }) => {
const { inputStyle, labelStyle, containerStyle } = styles;
return (
<View style={containerStyle}>
<Text style={labelStyle}>{label}</Te... |
Auth/website/src/components/LegalFooter.js | awslabs/aws-serverless-workshops | /*
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* o... |
client/components/landingPageFeatured.js | VaRt-io/V-aRt | import React, { Component } from 'react';
import {Carousel} from 'react-bootstrap';
export default class ourCarousel extends Component{
render(){
return (
<div>
<Carousel className="carousel" interval={3000} >
<Carousel.Item>
<img className="carImg" width="100%" height='100... |
packages/material-ui-icons/src/SaveAltTwoTone.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 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2v9.67z" /></React.Fragment>
, '... |
js/src/ui/Warning/warning.js | jesuscript/parity | // Copyright 2015, 2016 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 la... |
ajax/libs/react-data-grid/1.0.74/react-data-grid.ui-plugins.js | kennynaoh/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
web/src/js/components/disciplina/novo.js | helderfarias/ges | 'use strict';
import React from 'react';
import { Link, History } from 'react-router';
import DisciplinaAction from '../../actions/disciplina_action';
import DisciplinaStore from '../../stores/disciplina_store';
import Growl from '../comuns/alert';
export default React.createClass({
mixins: [ History ],
hand... |
vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/js/jquery.min.js | kaiocesar/getpocket | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
src/index.js | lujinming1/gallery-by-react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
window.onresize = function(){
window.location.reload();
window.location.href = "";
}
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
pathfinder/vtables/csmoperations/src/common/LinkList.js | leanix/leanix-custom-reports | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Link from './Link';
class LinkList extends Component {
constructor(props) {
super(props);
}
render() {
if (this.props.links.length < 1) {
return null;
}
const delimiter = !this.props.delimiter ? '<br/>' : this.props.de... |
src/components/layer-list-item.js | jjmulenex/sdk | /*
* Copyright 2015-present Boundless Spatial Inc., http://boundlessgeo.com
* 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 ... |
client/tests/components/messageList.spec.js | 3m3kalionel/PostIt | import React from 'react';
import { mount } from 'enzyme';
import 'materialize-css/dist/js/materialize';
import { MessageList } from '../../components/dashboard/MessageList';
import { message, user } from '../__mocks__/__mockData__';
const props = {
groupId: '',
getMembers: jest.fn(),
getMessages: jest.fn(),
g... |
js/widgets/expense_donut/components.js | monetario/web |
import React from 'react';
import Reflux from 'reflux';
import Donut from '../../components/donut';
import Store from './store';
import Actions from './actions';
const ExpenseDonutWidget = React.createClass({
mixins: [
Reflux.connectFilter(Store, "store", function(storeData) {
return storeData.widgetDat... |
src/containers/BooksPage.js | great-design-and-systems/cataloguing-app | import * as actions from '../actions/BookActions';
import * as alertActions from '../actions/NotificationActions';
import * as dialogActions from '../actions/DialogActions';
import * as googleActions from '../actions/GoogleBookActions';
import * as headerActions from '../actions/HeaderActions';
import { BookPreviewFoo... |
options/TextConfigItem.js | SuperDOgePx/chrome-extension-react | import React from 'react';
import { autobind } from 'core-decorators';
import ConfigItem from './ConfigItem';
@autobind
export default class TextConfigItem extends ConfigItem {
changeHandler(e) {
this.setValue(e.target.value);
}
renderConfig() {
const { size = 30 } = this.props;
return (
<lab... |
src/chapters/01-definicije-verjetnosti/index.js | medja/ovs-prirocnik | import React from 'react';
import { createChapter } from 'components/chapter';
import KlasicnaVerjetnost from './01-klasicna-verjetnost';
import StatisticnaVerjetnost from './02-statisticna-verjetnost';
import GeometrijskaVerjetnost from './03-geometrijska-verjetnost';
const title = 'Definicije verjetnosti';
functi... |
ajax/libs/rxjs/2.3.13/rx.lite.compat.js | jonobr1/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,
'undefined': false... |
ajax/libs/rxjs/2.2.26/rx.all.js | bgrins/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,
'undefined': false
};
v... |
index.android.js | vagnerpraia/ipeasurvey | import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import Routes from './app/Routes';
export default class IpeaSurvey extends Component {
render() {
return (
<Routes />
);
}
}
AppRegistry.registerComponent('IpeaSurvey', () => IpeaSurvey);
|
src/components/Score.js | calesce/tab-editor | import React, { PureComponent } from 'react';
import { connect } from 'react-redux';
import { StyleSheet, css } from 'aphrodite';
import { makeMapStateToProps } from '../util/selectors';
import { makeScoreSelector } from '../util/selectors/layout';
import { getScoreSectionWidth, calcScoreHeight } from '../util/scoreLa... |
src/Parser/Paladin/Protection/CONFIG.js | hasseboulen/WoWAnalyzer | import React from 'react';
import { Hewhosmites, Noichxd, Yajinni, Zerotorescue } from 'CONTRIBUTORS';
import SPECS from 'common/SPECS';
import Wrapper from 'common/Wrapper';
import Warning from 'common/Alert/Warning';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import CombatLogParse... |
src/components/Navigation/index.js | saschajullmann/gatsby-starter-gatsbythemes | import React, { Component } from 'react';
import Link from 'gatsby-link';
import { css } from 'emotion';
import colors from '../../utils/colors';
import MobileNav from './mobile';
import media from '../../utils/media';
import { Box } from '../Layout';
const basicNav = css`
display: flex;
position: fixed;
top: 0;... |
src/index.js | deco3500/dark | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
docs/app/Examples/views/Comment/Variations/index.js | clemensw/stardust | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const CommentVariations = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Threaded'
description... |
ajax/libs/yui/3.10.1/scrollview-base/scrollview-base-coverage.js | iamso/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/scrollview-base/scrollview-base.js']) {
__coverage__['build/scrollview-base/scrollview-base.js'] = {"path":"build/scrollview-base/scrollview-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":... |
ajax/libs/react-data-grid/0.12.24/react-data-grid.min.js | x112358/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react")):e.ReactDataGrid=t(e.React)}(this,function(e){return function(e){function t(o){if(r[o])return r[... |
src/components/pages/grocerylist/grocerylistCard.js | emilmannfeldt/ettkilomjol | import React, { Component } from 'react';
import Card from '@material-ui/core/Card';
import Fade from '@material-ui/core/Fade';
import CardHeader from '@material-ui/core/CardHeader';
import DeleteIcon from '@material-ui/icons/DeleteOutlined';
import AssignmentIcon from '@material-ui/icons/AssignmentOutlined';
import Ic... |
ajax/libs/yui/3.10.2/simpleyui/simpleyui-debug.js | noraesae/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
ext-4.2.1/docs/output/Ext.Component.js | crysfel/fundamentos-extjs | Ext.data.JsonP.Ext_Component({"alternateClassNames":[],"aliases":{"widget":["component","box"]},"enum":null,"parentMixins":["Ext.state.Stateful","Ext.util.Animate","Ext.util.ElementContainer","Ext.util.Observable","Ext.util.Positionable","Ext.util.Renderable"],"tagname":"class","subclasses":["Ext.Img","Ext.LoadMask","E... |
js/src/views/Status/components/RpcNav/RpcNav.js | pdaian/parity | // Copyright 2015, 2016 Ethcore (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 later version.... |
front-end/src/screens/NotFound.js | AuthEceSoftEng/npm-miner | import React, { Component } from 'react';
class NotFound extends Component {
render() {
return (
<div>
<h1>Not Found</h1>
</div>
);
}
}
export default NotFound; |
fields/types/password/PasswordFilter.js | lojack/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
const OPTIONS = [
{ label: 'Is Set', value: true },
{ label: 'Is NOT Set', value: false }
];
var PasswordFilter = React.createClass({
getInitialState () {
return {
checked: this.props.value || true
};
},
toggleChecked (checked) {
... |
app/components/AboutButton/AbstractAboutButtonContainer.js | ihor/ReactNativeCodeReuseExample | import React from 'react';
import AboutButtonView from './AboutButtonView';
export default class AbstractAboutButtonContainer extends React.Component {
constructor(props) {
// new.target is not working on Android
// if (new.target === AbstractAboutButtonContainer) {
// throw new TypeErr... |
public/js/components/admin/Settings.react.js | rajikaimal/Coupley | /**
* Created by Isuru 1 on 21/01/2016.
*/
import React from 'react';
import { Link } from 'react-router';
const Settings = React.createClass({
render: function () {
return (
<div className="settings">
<aside className="control-sidebar control-sidebar-dark">
<ul className="nav nav-tabs ... |
src/Form/FormHelperText.js | dsslimshaddy/material-ui | // @flow
import React from 'react';
import type { Element } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = (theme: Object) => ({
root: {
color: theme.palette.input.helperText,
fontFamily: theme.typog... |
ajax/libs/parse/2.18.0/parse.weapp.min.js | cdnjs/cdnjs | /**
* Parse JavaScript SDK v2.18.0
*
* Copyright (c) 2015-present, Parse, LLC.
* All rights reserved.
*
* The source tree of this library can be found at
* https://github.com/ParsePlatform/Parse-SDK-JS
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root director... |
components/tooltip/Tooltip.js | showings/react-toolbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { themr } from 'react-css-themr';
import Portal from '../hoc/Portal';
import { getViewport } from '../utils/utils';
import { TOOLTIP } from '../identifiers';
import events from '../utils/events';
c... |
js/components/class/index.js | mrcflorian/classbook |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text, ListItem, List } from 'native-base';
import { Actions } from 'react-native-router-flux';
import { actions } from 'react-native-navigation-redux-helpers';
... |
ajax/libs/radium/0.18.0/radium.js | jdh8/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Radium"] = factory(... |
src/modules/xman/components/FlightList/Cop.js | devteamreims/4me.react | import React from 'react';
import moment from 'moment';
import ToneDowner from './ToneDowner';
const Cop = ({name, targetTime, overrideText}) => {
const tto = moment.utc(targetTime);
const estimates = tto.format('HH:mm');
return (
<div style={{flexDirection: 'column'}}>
<ToneDowner
path="cop... |
docs/src/app/components/pages/discover-more/Community.js | barakmitz/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import communityText from './community.md';
const Community = () => (
<div>
<Title render={(previousTitle) => `Community - ${previousTitle}`} />
<MarkdownElement text={communityText} />... |
client/js/morpheus/casts/factory.js | CaptEmulation/webgl-pano | import React from 'react';
import {
head,
once,
tail,
reverse,
wrap,
} from 'lodash';
import { createSelector } from 'reselect';
import {
selectors as sceneSelectors,
getSceneType,
} from 'morpheus/scene';
import { decorate as faderDecorator } from './components/Fader';
import Special from './components/... |
__tests__/components/Timer.spec.js | kawikadkekahuna/Hue-Pomodoro | import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import Timer from '../../app/components/Timer';
describe('Timer Component', () => {
test('has correct default state', () => {
const tree = shallow(<Timer />);
expect(toJson(tree)).toMatchSnapshot();
});
tes... |
files/rxjs/2.2.17/rx.lite.js | perosb/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,
'u... |
example/client/src/app.js | samsarahq/thunder | import React from 'react';
import { connectGraphQL, mutate } from 'thunder-react';
import { GraphiQLWithFetcher } from './graphiql';
const Editor = React.createClass({
getInitialState() {
return {text: ''};
},
onSubmit(e) {
mutate({
query: '{ addMessage(text: $text) }',
variables: { text: th... |
ajax/libs/yui/3.7.0/datatable-body/datatable-body.js | dmsanchez86/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
src/App.js | davyengone/meetup.demo | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello, world Davy Engone.</h1>
);
}
}
|
src/js/components/ui/CardContent/CardContent.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './CardContent.scss';
import CardIcons from '../CardIcons';
import Image from '../Image';
import LinkImageService from '../../../services/LinkImageService';
import NetworkLine from "../NetworkLine/NetworkLine";
import Conte... |
assets/node_modules/karma/node_modules/core-js/library/modules/es6.promise.js | rochellecanale/tutorials | 'use strict';
var $ = require('./$')
, ctx = require('./$.ctx')
, cof = require('./$.cof')
, $def = require('./$.def')
, assert = require('./$.assert')
, forOf = require('./$.for-of')
, setProto = require('./$.set-proto').set
, same = require('./$.same')
, species = requir... |
src/components/Privacy/Privacy.react.js | DeveloperAlfa/chat.susi.ai | import '../Terms/Terms.css';
import $ from 'jquery';
import Footer from '../Footer/Footer.react';
import PropTypes from 'prop-types';
import StaticAppBar from '../StaticAppBar/StaticAppBar.react';
import React, { Component } from 'react';
class Privacy extends Component {
constructor(props) {
super(props);
... |
client/src/components/HomePage.js | yegor-sytnyk/contoso-express | import React from 'react';
class HomePage extends React.Component {
render() {
return (
<div className="container">
<div className="jumbotron">
<h1>Contoso University</h1>
</div>
<div className="row">
<div ... |
actor-apps/app-web/src/app/components/modals/Contacts.react.js | supertanglang/actor-platform | //
// Deprecated
//
import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import ContactStore from 'stores/ContactStore';
import Modal from... |
ajax/libs/webshim/1.14.4/dev/shims/moxie/js/moxie.js | xymostech/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/index.js | cgvarela/react-styleguidist | import React from 'react';
import { setComponentsNames, globalizeComponents } from './utils/utils';
import StyleGuide from 'components/StyleGuide';
import './styles.css';
global.React = React;
if (module.hot) {
module.hot.accept();
}
// Load styleguide
let { title, components } = require('styleguide!');
component... |
ajax/libs/react-bootstrap/0.24.0-alpha.0/react-bootstrap.min.js | ahocevar/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react")):e.ReactBootstrap=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return ... |
draft-js-undo-plugin/src/UndoButton/__test__/index.js | koaninc/draft-js-plugins | /* eslint no-unused-expressions: 0, react/no-children-prop:0 */
import React from 'react';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import chai, { expect } from 'chai';
import sinonChai from 'sinon-chai';
import { EditorState, Modifier } from 'draft-js';
import Undo from '../index';
chai.use(sinonC... |
ajax/libs/jssip/0.6.31/jssip.js | Teino1978-Corp/Teino1978-Corp-cdnjs | /*
* JsSIP v0.6.31
* the Javascript SIP library
* Copyright: 2012-2015 José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)
* Homepage: http://jssip.net
* License: MIT
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&de... |
src/components/ShipmentDetailsContainer/ShipmentDetailsComponent.js | alexhawkins/trackingWidget | import React from 'react';
import Item from './ItemComponent';
import 'styles//ShipmentDetails.scss';
class ShipmentDetailsComponent extends React.Component {
constructor(props) {
super(props);
}
getItems(){
let packages = this.props.shipment.packing.packages;
return packages.map((pkg) =>{
re... |
public/controllers/management/components/management/configuration/osquery/osquery.js | wazuh/wazuh-kibana-app | /*
* Wazuh app - React component for show configuration of Osquery.
* Copyright (C) 2015-2022 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License,... |
test/specs/elements/Flag/Flag-test.js | koenvg/Semantic-UI-React | import React from 'react'
import Flag from 'src/elements/Flag/Flag'
import * as common from 'test/specs/commonTests'
const requiredProps = { name: 'us' }
describe('Flag', () => {
common.isConformant(Flag, { requiredProps })
common.implementsCreateMethod(Flag)
common.propValueOnlyToClassName(Flag, 'name', [],... |
src/components/fleet/vehicles/VehicleUpsert.js | fusionalliance/autorenter-react | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Field, reduxForm, formValueSelector } from 'redux-form';
import { Col, Form, FormGroup } from 'react-bootstrap';
import inputField from '../../common/form/inputField';
import dropdownField from '../../common/f... |
js/components/MainSectionPlaylist.js | ChrisMLee/relay-mongoose-plair | import Relay from 'react-relay';
import React from 'react';
import MainSectionPlaylistSong from './MainSectionPlaylistSong';
class MainSectionPlaylist extends React.Component {
constructor(props){
super(props);
console.log('MainSectionPlaylist', props);
}
componentWillReceiveProps(nextProps){
consol... |
public/js/report.js | IsmailM/sequenceserver | import _ from 'underscore';
import React from 'react';
import d3 from 'd3';
import './graphicaloverview';
import './kablammo';
import './sequence';
/**
* Pretty formats number
*/
var Utils = {
/**
* Prettifies numbers and arrays.
*/
prettify: function (data){
if (this.isTuple(data)) {
... |
src/smart/wo_editor/WOEditor.js | jeckhummer/wf-constructor | import React from 'react';
import {connect} from 'react-redux';
import {EditorModal} from "../../dumb/editor/EditorModal";
import {WOEditorContent} from "./WOEditorContent";
import {getWOEditorState} from "../../selectors/ui";
import {getWO} from "../../selectors/WO";
import {WO_EDITOR_TABS} from "../../reducers/ui/WOE... |
ajax/libs/styled-components/1.2.1/styled-components.js | dakshshah96/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
(factory((global.styled = global.styled || {}),global.React));
}(this, (function (exports,React) { 'us... |
src/utils/griddleConnect.js | ttrentham/Griddle | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
/// This method appends options onto existing connect parameters
export const mergeConnectParametersWithOptions = (
originalConnect,
newOptions
) => {
const [
mapStateFromProps,
mapDispatchFromProps,
... |
src/Components/Input.spec.js | michaelmilessmith/pizza-requirement-calculator | import React from 'react'
import { shallow } from 'enzyme'
import { Input } from './Input'
describe('<Input/>', () => {
it('has an input for number of people and number of slices', () => {
const wrapper = shallow(<Input />)
expect(wrapper.find('input[type="number"]').length).toBe(2)
})
it('raises an eve... |
fiddles/react/fiddle-0008-ListComponent/src/index.js | bradyhouse/house | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.