path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/elements/content.js | bokuweb/re-bulma | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from '../../build/styles';
export default class Content extends Component {
static propTypes = {
children: PropTypes.any,
className: PropTypes.string,
};
static defaultProps = {
className: '',
};
createC... |
src/svg-icons/notification/sync-disabled.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSyncDisabled = (props) => (
<SvgIcon {...props}>
<path d="M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33zm-7.14-.94l2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20... |
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js | apoco/react-router | import React from 'react';
class Announcement extends React.Component {
//static loadProps (params, cb) {
//cb(null, {
//announcement: COURSES[params.courseId].announcements[params.announcementId]
//});
//}
render () {
//var { title, body } = this.props.announcement;
var { courseId, annou... |
ajax/libs/yui/3.17.1-rc-1/datatable-core/datatable-core.js | WebReflection/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
app/javascript/mastodon/features/ui/components/bundle_column_error.js | Chronister/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import Column from './column';
import ColumnHeader from './column_header';
import ColumnBackButtonSlim from '../../../components/column_back_button_slim';
import IconButton from '../../../components/... |
src/main/js/admin/modules/Analyze.js | chaokunyang/amanda | import React, { Component } from 'react';
const Analyze = () => (
<div>
分析
</div>
);
export default Analyze; |
src/js/app-constants.js | SeerUK/react-fundamentals | /**
* This file is part of the react-fundamentals package.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific langu... |
packages/forms/src/UIForm/fields/File/displayMode/TextMode.component.js | Talend/ui | import PropTypes from 'prop-types';
import React from 'react';
import { TextMode as FieldTemplate } from '../../FieldTemplate';
import { getFileName } from '../File.component';
export default function FileTextMode(props) {
const { id, schema, value } = props;
const { title, labelProps } = schema;
return (
<Field... |
app/js/components/App.react.js | Kielan/kielan-com | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Logo from '../../img/logo.png';
import Topnav from './... |
ajax/libs/jquery/1.8.3/jquery.js | dakshshah96/cdnjs | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Promises.js | christiantinauer/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load() {
return Promise.resolve([
{ id: 1,... |
src/blocks/TopMenu/TopMenu.js | ducthuan-2712/To-Do | /*
* @flow
*/
import React, { Component } from 'react';
import { NavLink } from 'react-router-dom';
/* Component */
import Dropdown from '../../components/Dropdown';
import Icon from '../../components/Icon';
/* Block */
import PodPopover from '../PodPopover';
import './TopMenu.css';
import logo from '../../img/... |
js/fw/components/checkbox/index.js | linh918/react-native-starter-kit-demo- | import React, { Component } from 'react';
import {
Container,
Header,
Title,
Content,
Button,
Icon,
List,
ListItem,
CheckBox,
Text,
Left,
Right,
Body,
} from 'native-base';
import styles from './styles';
class NHCheckbox extends Component {
constructor(props) {
super(props);
this.state = {
check... |
ajax/libs/stellar-base/0.2.0/stellar-base.js | pvnr0082t/cdnjs | var StellarBase =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ re... |
ajax/libs/js-data/0.2.0/js-data.js | RobLoach/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file js-data.js
* @version 0.2.0 - Homepage <http://www.js-data.io/>
* @copyright (c) 2014 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Data store.
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof ... |
src/index.js | tmcw/docbox | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
import remark from 'remark';
import slug from 'remark-slug';
import content from './custom/content';
var ast = remark()
.use(slug)
.runSync(remark().parse(content));
ReactDOM.render(
<App as... |
example/CustomView.js | Chatnbook/react-native-gifted-chat | import PropTypes from 'prop-types';
import React from 'react';
import {
Linking,
Platform,
StyleSheet,
TouchableOpacity,
ViewPropTypes,
} from 'react-native';
import MapView from 'react-native-maps';
export default class CustomView extends React.Component {
render() {
if (this.props.currentMessage.loca... |
src/components/Tasks/Tasks.js | Gtallant/my-life-organizer | import React, { Component } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Tasks.scss';
import { List, ListItem } from 'material-ui/List';
import Checkbox from 'material-ui/Checkbox';
import Badge from 'material-ui/Badge';
import IconButton from 'material-ui/IconButton';... |
src/app/components/BrowserSupport.js | meedan/check-web | import React, { Component } from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import styled from 'styled-components';
import IconButton from '@material-ui/core/IconButton';
import ClearIcon from '@material-ui/icons/Clear';
import { mapGlobalMessage } from './MappedMessage';
import {
ContentCol... |
src/content/work/assets/SubscriptionsForSaas/modules/List/Icons/Pause/index.js | jmikrut/keen-2017 | import React from 'react';
import './Pause.css';
export default (props) => {
let color = props.color ? props.color : '';
return (
<svg className="plus" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12">
<line stroke={color} x1="4.76" y1="3.76" x2="4.76" y2="8.24"/>
<line stroke={color} x1="7.24" y1="... |
app/containers/Transactions/ui/layout/TransactionLayout.js | sahilkhan99/PosApp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TransactionsTableComponent from 'containers/Transactions/ui/components/TransactionsTableComponent';
import TransactionSummaryComponent from 'containers/Transactions/ui/components/TransactionSummaryComponent';
import TransactionPaymentC... |
node_modules/react-icons/md/looks-6.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdLooks6 = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m25 15v-3.4h-6.6c-1.8 0-3.4 1.5-3.4 3.4v10c0 1.9 1.6 3.4 3.4 3.4h3.2c1.8 0 3.4-1.5 3.4-3.4v-3.4c0-1.8-1.6-3.2-3.4-3.2h-3.2v-3.4h6.6z m6.6-10c1.8 0 3.4 1.6 3.4 3.4v23.2... |
webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Table.js | pmoravec/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Table as PFtable } from 'patternfly-react';
import { translate as __ } from 'foremanReact/common/I18n';
import classNames from 'classnames';
import { createSubscriptionsTableSchema } from '../SubscriptionsTableSchema';
import { Table as ForemanTabl... |
npm-scripts/modules/RouteUtils.js | zipongo/react-router | import React from 'react'
import warning from 'warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName, p... |
src/TimePicker/TimePicker.js | skarnecki/material-ui | import React from 'react';
import warning from 'warning';
import TimePickerDialog from './TimePickerDialog';
import TextField from '../TextField';
import {formatTime} from './timeUtils';
const emptyTime = new Date();
emptyTime.setHours(0);
emptyTime.setMinutes(0);
emptyTime.setSeconds(0);
emptyTime.setMilliseconds(0);... |
frontend/entry.js | ted-eckel/in1box | import React from 'react'
import ReactDOM from 'react-dom'
import configureStore from './store'
import Root from './components/Root'
import merge from 'lodash/merge'
document.addEventListener('DOMContentLoaded', () => {
let store;
let preloadedState = {};
if (window.currentUser) {
// const preloadedState = {... |
include/javascript/yui/build/container/container.js | EGRTsales/openCRM | /*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/
(function () {
/**
* Config is a utility used within an Object to allow the implementer to
* maintain a list of local configuration properties and liste... |
components/User/SSO.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
import {connectToStores} from 'fluxible-addons-react';
import {publicRecaptchaKey} from '../../configs/general';
import SSOStore from '../../stores/SSOStore';
import ReCAPTCHA from 'react-google-recaptcha';
import {hashPass... |
ajax/libs/react-datepicker/0.46.0/react-datepicker.js | maruilian11/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("moment"), require("react"), require("react-onclickoutside"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["moment", "rea... |
barebones_bbb/src/main.js | wasong/cmpt433 | import React from 'react'
import { render } from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import FastClick from 'fastclick'
import injectTapEventPlugin from 'react-tap-event-plugin'
import App from './App'
import { configureStore } from './store'
// Eliminates the 300ms delay between a physical tap... |
admin/src/components/DashBoard/DashBoard.js | nathandao/vantaa | import React from 'react';
import RequireAuthentication from 'decorators/RequireAuthentication';
@RequireAuthentication
class DashBoard extends React.Component {
constructor(props) {
super(props)
}
render() {
return(
<div className="interation-container">
<div className="interaction-area"... |
packages/material-ui-icons/src/Style.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.21 1.03-1.23 1.8-.01.27.04.54.... |
analysis/warlockaffliction/src/modules/features/Checklist/Module.js | anom0ly/WoWAnalyzer | import CastEfficiency from 'parser/shared/modules/CastEfficiency';
import Combatants from 'parser/shared/modules/Combatants';
import BaseChecklist from 'parser/shared/modules/features/Checklist/Module';
import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist/PreparationRuleAnalyzer';
import React ... |
src/contentscript/tinymce/TinyMCEApp.js | emfmesquita/beyondhelp | import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
import './TinyMCEApp.scss';
import { MenuItem, Nav, NavDropdown, NavItem } from 'react-bootstrap';
import React, { Component } from 'react';
import C from "../../Constants";
import MessageService from "../../services/MessageSe... |
ajax/libs/react-bootstrap-table/2.4.2/react-bootstrap-table.min.js | kennynaoh/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrapTable=t(require("react"),require("react-dom")):e.ReactBootstrapTable=t(e.React,e.R... |
src/components/ResultFishers.js | superphy/reactapp | import React, { Component } from 'react';
import { connect } from 'react-refetch'
// progress bar
import CircularProgress from 'react-md/lib/Progress/CircularProgress';
// requests
import { API_ROOT } from '../middleware/api'
// Table
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
class Res... |
ajax/libs/typescript/1.8.10/typescript.min.js | x112358/cdnjs | var __extends=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ts;!function(e){!function(e){e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivi... |
node_modules/react/lib/ReactOwner.js | abcdef506819/mantra-meteor-blog | /**
* 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.
*
* @providesModule ... |
tests/components/Header/Header.spec.js | baronkwan/ig_clone | import React from 'react'
import { Header } from 'components/Header/Header'
import { IndexLink, Link } from 'react-router'
import { shallow } from 'enzyme'
describe('(Component) Header', () => {
let _wrapper
beforeEach(() => {
_wrapper = shallow(<Header />)
})
it('Renders a welcome message', () => {
... |
ajax/libs/react-ace/5.5.0/react-ace.js | seogi1004/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["ReactAce"] = factory();
else
root["Reac... |
src/parser/priest/holy/modules/talents/30/Perseverance.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import Analyzer from 'parser/core/Analyzer';
import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox';
import ItemHealingDone from 'interface/others/ItemHealingDone';
import { formatPercentage, formatThousands } from ... |
__tests__/index.android.js | Mrsunsunshine/wetland | 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 />
);
});
|
frontend/src/Movie/Index/Table/MovieIndexTable.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import VirtualTable from 'Components/Table/VirtualTable';
import VirtualTableRow from 'Components/Table/VirtualTableRow';
import { sortDirections } from 'Helpers/Props';
import MovieIndexItemConnector from 'Movie/Index/MovieIndexItemConnector... |
app/common/components/ToolbarTitle/index.js | cerebral/cerebral-reference-app | import React from 'react';
import styles from './styles.css';
function ToolbarTitle(props) {
return (
<span className={styles.title}>
{props.title}
</span>
);
}
export default ToolbarTitle;
|
lib/components/WeatherHourly/WeatherHourly.js | the-oem/weathrly | import React, { Component } from 'react';
import WeatherCard from '../WeatherCard/WeatherCard';
import './WeatherHourly.css';
const WeatherHourly = ({ hourly }) => {
hourly.splice(7);
return (
<div className='weather-hourly'>
{ hourly.map((hour, i) => <WeatherCard key={i} data={hour} />) }
</div>
... |
src/components/Chats.js | phoenixbox/react-redux-router-webpackhot | import React from 'react'
export default function Chats() {
return <div>I am Chats!</div>
}
|
src/screens/Admin/screens/Bookshelf/screens/AddBook/components/AddBookForm.js | nadavspi/react-bookshelf | import React from 'react';
import slug from 'slug';
import { connect } from 'react-redux';
import { addBook } from 'actions/BookActions';
// TODO: Move redux stuff up to parent so this can be dumb
const AddBookForm = React.createClass({
propTypes: {
dispatch: React.PropTypes.func.isRequired
},
getInitialSt... |
src/modules/__specs__/AppView.spec.js | justinhaaheim/empower-app | /* eslint-disable max-nested-callbacks*/
import React from 'react';
import { shallow } from 'enzyme';
import { ActivityIndicator } from 'react-native';
import AppView from '../AppView';
describe('<AppView />', () => {
describe('isReady', () => {
it('should render a <ActivityIndicator /> if not ready', () => {
... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js | sThig/jabbascrypt | /**
* 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.
*/
import Rea... |
test/performance/comparisons/jquery-latest.js | marshall007/rethinkdb | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
examples/00 Chessboard/Tutorial App/index.js | globexdesigns/react-dnd | import React, { Component } from 'react';
import Board from './Board';
import { observe } from './Game';
/**
* Unlike the tutorial, export a component so it can be used on the website.
*/
export default class ChessboardTutorialApp extends Component {
constructor(props) {
super(props);
this.unobserve = obse... |
src/error/NoPageFound.js | deibeljc/react-talk | import React from 'react';
import './NoPageFound.scss';
export default class NoPageFound extends React.Component {
render() {
return (
<div className="no-page">
<h1>
No Page Found.
</h1>
Instead try one of these demos!
... |
Client/Trunk/js/search-form.js | joe62/swzql | import React from 'react';
class SearchForm extends React.Component{
static propTypes = {
searchAction: React.PropTypes.func.isRequired
};
handleChange = event =>{
this.props.searchAction(event.target.value);
};
render(){
return (
<form className="navbar-form" role="search">
... |
app/screens/settings/notification_settings_mentions/notification_settings_mentions.android.js | mattermost/mattermost-mobile | // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {injectIntl} from 'react-intl';
import {
Modal,
ScrollView,
Text,
TouchableOpacity,
View,
} from 'react-native';
import FormattedText from '@components/... |
app/javascript/mastodon/features/compose/components/search.js | honpya/taketodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { searchEnabled } from '../... |
src/svg-icons/action/invert-colors.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInvertColors = (props) => (
<SvgIcon {...props}>
<path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 1... |
src/dumb/buttons/IconButton.js | jeckhummer/wf-constructor | import React from 'react';
import {Icon, Popup} from "semantic-ui-react";
export class IconButton extends React.Component{
render() {
const icon = (
<Icon
circular
inverted
disabled={this.props.disabled}
name={this.props.name}
... |
ajax/libs/extjs/4.2.1/src/data/NodeStore.js | crccheck/cdnjs | /*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
src/components/Quiz.js | lukaszmakuch/quiz | import React, { Component } from 'react';
import Grid from 'material-ui/Grid';
import QuizMenu from './QuizMenu';
export default class Quiz extends Component {
constructor(props) {
super(props);
this.containerRef = React.createRef();
this.state = {
currentQuestion: props.currentQuestion(),
ch... |
app/components/LoadingIndicator/index.js | aditigoel23/React-Car-App | 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... |
src/Button.js | lo1tuma/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Button = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
active: React.PropTypes.bool,
disabled: React.PropTypes.bool,
block: React.PropTypes.bool,
navItem: React.PropTyp... |
ajax/libs/forerunnerdb/1.3.8/fdb-all.min.js | sajochiu/cdnjs | /*
MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or autho... |
src/components/ImgFigure.js | lxjx/gallery-by-react | import React from 'react';
class ImgFigure extends React.Component{
handleClick(){
return ()=>{
if(this.props.arrange.isCenter){
this.props.flip();
}else{
this.props.center();
}
}
}
render() {
let styleObj = this.props.arrange.pos?this.props.arrange.pos:{};
if(th... |
src/provider/api-connect.js | gugamm/redux-api-mapper | import React, { Component } from 'react';
import PropTypes from 'prop-types';
/**
* Connect a component to api functions
* @param {Function} apiToProps
* @returns {Function} - Returns a connected component
*/
function apiConnect(apiToProps) {
return function (ConnectComponent) {
class ApiConnected extends Co... |
test/OverlayTriggerSpec.js | mxc/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import OverlayTrigger from '../src/OverlayTrigger';
import Popover from '../src/Popover';
import Tooltip from '../src/Tooltip';
import { render } from './helpers';
describe('OverlayTrigger', () => {
it('Should create OverlayTrigger el... |
ajax/libs/react-virtualized/8.11.4/react-virtualized.min.js | ahocevar/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("React.addons.shallowCompare"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","React.addons.shallowCompare","ReactDOM"],t):"object"==typeof exports?exports.ReactVirtualized=t(require("R... |
example/storybook/src/index.js | i18next/react-i18next | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
// import i18n (needs to be bundled ;))
import './i18n';
ReactDOM.render(<App />, document.getElementById('root'));
|
node_modules/material-ui/svg-icons/communication/phonelink-setup.js | SerendpityZOEY/Solr-Search-React-UI | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
src/svg-icons/action/query-builder.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionQueryBuilder = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5... |
src/Parser/Monk/Mistweaver/Modules/Traits/SoothingRemedies.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing... |
src/ModalBody.js | apisandipas/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalBody extends React.Component {
render() {
return (
<div
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{this.props.children}
</div>
);
}
}
ModalBody.prop... |
packages/vx-demo/pages/voronoi.js | Flaque/vx | import React from 'react';
import Show from '../components/show';
import VoronoiChart from '../components/charts/VoronoiChart';
export default () => {
return (
<Show
events
margin={{
top: 0,
left: 0,
right: 0,
bottom: 0,
}}
component={VoronoiChart}
ti... |
mockup2/data/js/jquery-1.7.2.b8d64d0bc142b3f670cc0611b0aebcae.compact.js | leeric92/GroupShopV2 | /* jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder... |
app/components/Utils/Loader.js | sarven/discover-places-app | import React, { Component } from 'react';
import { View } from 'react-native';
import CircleProgress from 'react-native-progress/Circle';
import { COLORS, STYLES } from './../../config/style';
export default class Loader extends Component
{
constructor (props) {
super(props);
this.state = {
isLoading:... |
ajax/libs/flocks.js/0.15.11/flocks.js | hare1039/cdnjs |
/** @jsx React.DOM */
/* jshint node: true, browser: true, newcap: false */
/* eslint max-statements: 0, no-else-return: 0, brace-style: 0 */
/* eslint-env node,browser */
/**
* The Flocks library module.
*
* @module Flocks
* @main Flocks
* @class Flocks
*/
// if it's in a <script> it'... |
dataowner/src/NavBar.js | e-nettet/CustomerConsentWallet | import React, { Component } from 'react';
class NavBar extends React.Component {
render() {
return (
<nav className="navbar navbar-inverse navbar-fixed-top">
<div className="container">
<div id="navbar" className="navbar-collapse collapse">
<ul className="nav navbar-nav">... |
examples/todomvc/containers/TodoApp.js | rt2zz/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { Connector } from 'redux/react';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/TodoActions';
export default class TodoApp extends Comp... |
src/svg-icons/navigation/arrow-drop-up.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropUp = (props) => (
<SvgIcon {...props}>
<path d="M7 14l5-5 5 5z"/>
</SvgIcon>
);
NavigationArrowDropUp = pure(NavigationArrowDropUp);
NavigationArrowDropUp.displayName = 'NavigationArrowDrop... |
src/svg-icons/action/perm-data-setting.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermDataSetting = (props) => (
<SvgIcon {...props}>
<path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.0... |
app/containers/FeaturePage/index.js | shinetimes/web-storm | /*
* FeaturePage
*
* List all the features
*/
/* eslint-disable react/prefer-stateless-function */
import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import Button from 'components/Button';
import H1 from 'components/H1';
import styles from './styles.css'... |
ajax/libs/react-chartjs-2/2.5.3/react-chartjs-2.js | holtkamp/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.reactChartjs2 ... |
js/vendor/jquery-1.11.1.min.js | entepe85/turbomotor.rocks | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/routes/Configs/components/Configs.js | TheModevShop/craft-app | import React from 'react';
import AddConfig from 'components/AddConfig/AddConfig.js'
import _ from 'lodash';
import {Link} from 'react-router';
import './configs.less';
class Configs extends React.Component {
constructor(...args) {
super(...args);
this.state = {
};
}
componentDidMount() {
const ... |
5.2.1/src/components/DevTools.js | erikras/redux-form-docs | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
import { toggleVisibilityKey, changePositionKey } from './devToolsConfig'
export default createDevTools(
<DockMonitor
{...{ toggleVis... |
STAR.Originations.MegaRunbook.Website/app/components/applications/ApplicationSearch.js | DaveStoneDotNet/React.MegaRunbookCreator | import React from 'react'
import PropTypes from 'prop-types';
import _ from 'lodash';
import MrcDropDownButton from '../common/MrcDropDownButton'
import DebouncedInput from '../common/DebouncedInput'
class ApplicationSearch extends React.Component {
constructor(props, con... |
src/main.js | nchathu2014/reactApp | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(
<App/>,
document.getElementById('container')
);
setTimeout(()=>{
ReactDOM.unmountComponentAtNode(
document.getElementById('container')
)
},11100000);
|
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js | webwlsong/actor-platform | import React from 'react';
import Modal from 'react-modal';
//import pureRender from 'pure-render-decorator';
import { Styles, FlatButton } from 'material-ui';
import AppCacheStore from 'stores/AppCacheStore';
import AppCacheActionCreators from 'actions/AppCacheActionCreators';
import { KeyCodes } from 'constants/Act... |
tests/components/Spinner.spec.js | voicebase/voicebase-end-user-experience | import React from 'react';
import { shallowRender } from '../../app/common/Test'
import { Spinner } from '../../app/components/Spinner'
describe('Spinner component', function () {
let component;
it('should render component in div container', function() {
component = shallowRender(<Spinner />);
assert.equ... |
ajax/libs/react-router/0.5.0/react-router.js | mikelambert/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define,module,export... |
tools/bundle.js | antklim/tanya_klimenko | /**
* React Starter Kit (http://www.reactstarterkit.com/)
*
* Copyright © 2014-2015 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 webpack from 'webpack';
import webpackConfig from '.... |
components/TopBar.js | DanFoad/Memento | import React, { Component } from 'react';
import {
Text,
View,
TouchableHighlight,
Image,
} from 'react-native';
import styles from '../styles'
export default class TopBar extends Component {
constructor(props) {
super(props);
// Initial state
this.state = {
... |
eventkit_cloud/ui/static/ui/app/containers/logoutContainer.js | venicegeo/eventkit-cloud | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { logout } from '../actions/userActions';
const createHandlers = (dispatch) => {
const handleLogout = () => {
dispatch(logout());
};
return {
handleLogout,
};
};
class Logout e... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/State.js | AgentME/flow | // @flow
import React from 'react';
class MyComponent extends React.Component {
props: Props;
state: State = {};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component {
props: Props;
state: State = {... |
app/view/android/DoKitchenPager/KitchenList.js | 1598692232/rn-xcf | /**
* Created by bll on 2017/7/21.
*/
import React from 'react';
import {
Text,
Button,
View
} from 'react-native';
export default class DoKitchenPager extends React.Component {
render() {
const { navigate } = this.props.navigation;
return (
<View>
<Text>Hello, DoKitchenPager!</Text>
<Button
... |
src/__tests__/AutoComplete.spec.js | mauriciojovel/redux-form-material-ui | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import expect, { createSpy } from 'expect'
import expectJsx from 'expect-jsx'
import AutoComplete from 'material-ui/AutoComplete'
import getMuiTheme from 'material-ui/styles/getMuiTheme'
import MuiThemeProvider from 'material-ui/styles/MuiThemePr... |
docs/src/pages/components/breadcrumbs/IconBreadcrumbs.js | kybarg/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Paper from '@material-ui/core/Paper';
import Typography from '@material-ui/core/Typography';
import Breadcrumbs from '@material-ui/core/Breadcrumbs';
import Link from '@material-ui/core/Link';
import HomeIcon from '@material-ui/ico... |
src/components/Search/Search.js | worknation/client.work.nation | import {d} from 'lightsaber/lib/log'
import React from 'react'
import {SearchForPeople} from '..'
import Auth from '../../models/Authentication'
export default class Search extends React.Component {
componentWillMount() {
Auth.redirectUnlessLoggedIn(this.props)
}
render() {
if (!Auth.getCurrentUser()) ... |
pootle/static/js/editor/components/UnitSource.js | evernote/zing | /*
* 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 cx from 'classnames';
import React from 'react';
i... |
src/helpers/__tests__/makeRouteHooksSafe-test.js | mull/require_hacker_error_reproduction | import { expect } from 'chai';
import React from 'react';
import { IndexRoute, Route } from 'react-router';
import makeRouteHooksSafe from '../makeRouteHooksSafe';
describe('makeRouteHooksSafe', () => {
it('should work with JSX routes', () => {
const onEnter = () => {
throw new Error('Shouldn\'t call onEn... |
ajax/libs/redux-little-router/13.0.0-0/redux-little-router.js | hare1039/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["ReduxLittleRouter"]... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.