path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/components/Interactive/FilterBox/index.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import typy from 'typy'
import styles from './style.module.css'
const FilterBox = (props) => {
const hNum = typy(props.htag).isNumber ? props.htag : parseInt(props.htag.replace('h', ''), 10)
const headerTextEl = React.createElement((hNum > 0 && hNum <= ... |
src/main/ui/src/store/app-context.js | jwboardman/whirlpool | import React from 'react';
const AppContext = React.createContext({
isLoggedIn: false,
websocket: null,
clientName: null,
loginHandler: undefined,
logoutHandler: undefined,
removeStockHandler: undefined,
removeUpDownHandler: undefined,
removeWeatherHandler: undefined,
stockList: [],
upDownList: [],... |
src/BackgroundCells.js | TeaBough/react-big-calendar | import PropTypes from 'prop-types'
import React from 'react'
import { findDOMNode } from 'react-dom'
import clsx from 'clsx'
import * as dates from './utils/dates'
import { notify } from './utils/helpers'
import { dateCellSelection, getSlotAtX, pointInBox } from './utils/selection'
import Selection, { getBoundsForNode... |
test/ButtonToolbarSpec.js | bbc/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ButtonToolbar from '../src/ButtonToolbar';
import ButtonGroup from '../src/ButtonGroup';
import Button from '../src/Button';
describe('ButtonToolbar', () => {
it('Should output a button toolbar', () => {
let instance = React... |
ajax/libs/rxjs/2.2.28/rx.all.js | wmkcc/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... |
docs/app/Examples/collections/Form/Content/FormExampleField.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Form } from 'semantic-ui-react'
const FormExampleField = () => (
<Form>
<Form.Field>
<label>User Input</label>
<input />
</Form.Field>
</Form>
)
export default FormExampleField
|
dcc-portal-ui/app/scripts/oncololliplot/js/react-components/Lolliplot.js | icgc-dcc/dcc-portal | import React, { Component } from 'react';
import { object } from 'prop-types';
import { connect } from 'react-redux';
import LolliplotChart from './LolliplotChart';
import Toolbar from './Toolbar';
import Tooltip from './Tooltip';
import Backbone from './Backbone';
import Minimap from './Minimap';
import Loading from '... |
src/ButtonGroup.js | tonylinyy/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const ButtonGroup = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
vertical: React.PropTypes.bool,
justified: React.PropTypes.b... |
apps/store/extensions/app/social-reviews/themes/store/js/lib/jquery-1.8.3.min.js | jeradrutnam/carbon-store | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
src/components/Spinner.js | lxgreen/flickr-viewr | import React from 'react';
import './Spinner.css';
// html + css source: https://codepen.io/magnus16/pen/BKoRNw
const Spinner = () => {
return (
<div className="cs-loader">
<div className="cs-loader-inner">
<label> ●</label>
<label> ●</label>
<lab... |
ajax/libs/react-native-web/0.15.4/exports/KeyboardAvoidingView/index.js | cdnjs/cdnjs | function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
f... |
test/components/Counter.spec.js | jkup/starter-kit | /* eslint no-unused-expressions: 0 */
import { expect } from 'chai';
import { spy } from 'sinon';
import React from 'react';
import {
renderIntoDocument,
scryRenderedDOMComponentsWithTag,
findRenderedDOMComponentWithClass,
Simulate
} from 'react-addons-test-utils';
import Counter from '../../app/components/Coun... |
lib/Collator.js | taggon/react-native-intl | 'use strict';
const { RNIntl } = require('react-native').NativeModules;
class Collator {
constructor() {
throw 'Intl.Collator is not supported yet.';
}
}
module.exports = Collator;
|
dist/js/vendor/jquery-1.11.3.min.js | l0rd0fwar/html5-boilerplate | /*! jQuery v1.11.3 | (c) 2005, 2015 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... |
assets/js/main.min.js | LAIHAOTAO/laihaotao.github.io | function updateNav(){var e=$btn.hasClass("hidden")?$nav.width():$nav.width()-$btn.width()-30;$vlinks.width()>e?(breaks.push($vlinks.width()),$vlinks.children().last().prependTo($hlinks),$btn.hasClass("hidden")&&$btn.removeClass("hidden")):(e>breaks[breaks.length-1]&&($hlinks.children().first().appendTo($vlinks),breaks.... |
shared/components/Equilab/DownloadBar/DownloadButton.js | thehink/equilab-web | import React from 'react';
import PropTypes from 'prop-types';
import styles from './DownloadButton.scss';
const DownloadButton = ({ image, url }) => (
<a
title={url}
className={styles.wrapper}
href={url}
style={{ backgroundImage: `url('${image}')` }}
>
<span className="invisible">{url}</span>... |
ajax/libs/material-ui/5.0.0-alpha.28/ImageListItemBar/ImageListItemBar.min.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import _extends from"@babel/runtime/helpers/esm/extends";import{unstable_composeClasses as composeClasses}from"@material-ui/unstyled";import{deepmerge}from"@material-ui/utils";import clsx from"clsx";import PropTypes from"... |
ajax/libs/react-nvd3/0.1.0/react-nvd3.min.js | BenjaminVanRyseghem/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("d3"),require("nvd3")):"function"==typeof define&&define.amd?define(["react","d3","nvd3"],e):"object"==typeof exports?exports.NVD3Chart=e(require("react"),require("d3"),require("nvd3")):t.NVD3Chart=e(t.React,t.d3,... |
examples/counter/test/components/Counter.spec.js | mjw56/redux | import expect from 'expect'
import React from 'react'
import { shallow } from 'enzyme'
import Counter from '../../components/Counter'
function setup(value = 0) {
const actions = {
onIncrement: expect.createSpy(),
onDecrement: expect.createSpy()
}
const component = shallow(
<Counter value={value} {...... |
files/babel/5.5.5/browser-polyfill.js | Craga89/jsdelivr | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/decorators/withViewport.js | Batname/Yeoman_react_tests | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height:... |
src/components/ShowCode.js | Synchro-TEC/site-apollo-11 | /**
* Created by gnf on 18/01/17.
*/
import React from 'react';
class ShowCode extends React.Component {
constructor() {
super();
this.state = {isShowing: false}
}
toggle() {
this.setState({ isShowing: !this.state.isShowing });
}
render() {
return (
<div className={this.state.isSho... |
js/components/category/category.js | dima11221122/63pokupki-react-native |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Loading from '../loading';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, ListItem, Text, Button, Icon } from 'native-base';
import { ListView, View, TouchableHighlight ... |
ajax/libs/analytics.js/1.4.0/analytics.min.js | emijrp/cdnjs | (function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resol... |
src/svg-icons/social/share.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialShare = (props) => (
<SvgIcon {...props}>
<path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0... |
ajax/libs/angular.js/0.9.6/angular-scenario.min.js | sujonvidia/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/routes/codes/ValuesModal.js | yunqiangwu/kmadmin | import React from 'react'
import PropTypes from 'prop-types'
import { Form, Input, InputNumber, Radio, Modal, Cascader } from 'antd'
const FormItem = Form.Item
const formItemLayout = {
labelCol: {
span: 6,
},
wrapperCol: {
span: 14,
},
}
const modal = ({
item = {},
onOk,
form: {
getFieldDec... |
sites/all/modules/jquery_update/replace/jquery/1.10/jquery.min.js | muradkarakas/chipingo | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js | Havi4/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import classnames from 'classnames';
import InviteUserStore from 'stores/InviteUserStore';
import { AsyncActionStates } from 'constants/ActorAppConstants';
import AvatarItem from 'components/common/AvatarItem.react';
... |
ajax/libs/onsen/1.3.2/js/onsenui.js | dakshshah96/cdnjs | /*! onsenui - v1.3.2 - 2015-05-12 */
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// JavaScript Dynamic Content shim for Windows Store apps
(function () {
if (window.MSApp && M... |
src/Feedback/FeedbackCard/FeedbackCard.js | ctco/rosemary-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import noop from 'lodash/noop';
import types from '../types';
const cardTitle = {
[types.error]: 'Error',
[types.success]: 'Success',
[types.waring]: 'Warning',
[types.info]: 'Info'
};
class FeedbackCar... |
docs/src/app/components/pages/components/List/ExamplePhone.js | verdan/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import Divider from 'material-ui/Divider';
import CommunicationCall from 'material-ui/svg-icons/communication/call';
import CommunicationChatBubble from 'material-ui/svg-icons/communicatio... |
src/library/breadCrumbs/index.js | zdizzle6717/tree-machine-records | 'use strict';
import React from 'react';
import { Link, browserHistory } from 'react-router';
export default class BreadCrumbs extends React.Component {
// TODO: This is garbage. Find a better solution.
constructor() {
super();
this.state = {
'breadCrumbs': []
}
this.onViewChange = this.onViewChange.b... |
classic/src/scenes/keychain/src/index.js | wavebox/waveboxapp | import React from 'react'
import ReactDOM from 'react-dom'
import Provider from 'Scenes/Provider'
import TopLevelErrorBoundary from 'wbui/TopLevelErrorBoundary'
// Prevent Drag/Drop
document.addEventListener('drop', (evt) => {
evt.preventDefault()
evt.stopPropagation()
}, false)
document.addEventListener('dragover... |
src/components/common/TwoColumnView.js | CodeLanka/ez-net-app | import React from 'react';
import { StyleSheet, View } from 'react-native';
import PropTypes from 'prop-types';
const styles = StyleSheet.create({
layout: {
flex: 1,
flexDirection: 'row',
justifyContent: 'space-between',
},
});
const TwoColumnView = (props) => {
const { children } = props;
if (!A... |
files/maxmertkit/1.0.5/js/maxmertkit.js | gswalden/jsdelivr | (function() {
"use strict";
var MaxmertkitEvent, MaxmertkitHelpers, MaxmertkitReactor, isInDOM, _eventCallbackId, _eventCallbacks, _eventHandlers, _id, _reactor, _reactorEvents;
_eventHandlers = [];
_eventCallbacks = [];
_reactorEvents = [];
_eventCallbackId = 0;
_id = 0;
isInDOM = function(el) {
... |
packages/arwes/src/Loading/sandbox.js | romelperez/ui | import React from 'react';
import Loading from './index';
export default () => (
<div>
<Loading animate />
<Loading animate small />
<div style={{ position: 'relative', width: 200, height: 200 }}>
<Loading animate full />
</div>
</div>
);
|
ajax/libs/js-data/1.2.1/js-data-debug.js | emmy41124/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file dist/js-data-debug.js
* @version 1.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&&"undefine... |
modules/Lifecycle.js | ustccjw/react-router | import React from 'react'
import invariant from 'invariant'
const { object } = React.PropTypes
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method
* to a component that may be used to cancel a transition or prompt
* the user for confirmation.
*
* On standard transitions, routerWillLeave receives ... |
src/PageHeader.js | pivotal-cf/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const PageHeader = React.createClass({
render() {
return (
<div {...this.props} className={classNames(this.props.className, 'page-header')}>
<h1>{this.props.children}</h1>
</div>
);
}
});
export default PageHeader;
|
src/globalConfig/index.js | NE-SmallTown/React-QuietWater | /**
* v0.0.1
*
* Copyright (c) 2017
*
* Date: 2017/5/3 by Heaven
*/
import React from 'react';
import merge from 'lodash/merge';
const configParams = {
languageName: 'zh-cn', // Note that this property value must match the file name in the /src/language directory
styles: { // 各个部分的皮肤设置,注意要和JSX中的style属性格式一致... |
node_modules/react-native/Libraries/Renderer/src/renderers/native/ReactNativeTagHandles.js | aksharora/ReactNativeDemoBasic | /**
* 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/dc/2.1.1/dc.js | cdnjs/cdnjs | /*!
* dc 2.1.1
* http://dc-js.github.io/dc.js/
* Copyright 2012-2016 Nick Zhu & the dc.js Developers
* https://github.com/dc-js/dc.js/blob/master/AUTHORS
*
* 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... |
examples/server-rendering/reactserver/server.js | MoOx/react | var React = require('react');
var express = require('express');
var path = require('path');
// Transparently support JSX
require('node-jsx').install();
var app = express();
// All the render server does is take a CommonJS module ID and some JSON props
// in the querystring and return a static HTML representation of ... |
src/stories/api/weather.js | Cirych/WeatherApp | import React from 'react';
import { storiesOf, action, linkTo } from '@kadira/storybook';
import pick from 'lodash/pick';
import data from './data';
import forecast from './forecast';
const pickWeather = json =>
pick(json, [
'id',
'name',
'weather',
'main',
'wind',
'visibility'
]);
storie... |
frontend/src/components/common/hoc/withApplicationStatusChange.js | unicef/un-partner-portal |
// eslint-disable-next-line
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { changeAppStatus } from '../../../reducers/partnersApplicationsList';
const WithApplicationStatusChange = status => ComposedComponent => connect(
null,
dispatch => ({ changeSta... |
tests/routes/UserManagement/components/CreateUser.spec.js | vijayasankar/ML2.0 | import React from 'react'
import { expect } from 'chai'
import { shallow, mount } from 'enzyme'
import ReduxFormStub from '../../../ReduxFormStub'
import CreateUserReduxForm, { CreateUser } from 'routes/UserManagement/components/CreateUser'
describe('(Component) RequestPreApproval/ProcedureCost - shallow', () => {
... |
ajax/libs/yui/3.4.0pr3/event-focus/event-focus-min.js | froala/cdnjs | YUI.add("event-focus",function(e){var d=e.Event,c=e.Lang,a=c.isString,b=c.isFunction(e.DOM.create('<p onbeforeactivate=";"/>').onbeforeactivate);function f(h,g,j){var i="_"+h+"Notifiers";e.Event.define(h,{_attach:function(l,m,k){if(e.DOM.isWindow(l)){return d._attach([h,function(n){m.fire(n);},l]);}else{return d._attac... |
src/components/Play.js | evgenity/react-html5-video-editor | import React from 'react';
import Icon from './Icon';
var Play = React.createClass({
propTypes: {
copyKeys: React.PropTypes.object,
togglePlay: React.PropTypes.func,
paused: React.PropTypes.bool
},
/**
* As controls receive all props for extensibility, we do a quick
* ch... |
files/react.foundation-apps/0.6.0/react-foundation-apps.js | gregorypratt/jsdelivr | var RFA =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/*****... |
app/components/Chunk.js | kenwilcox/fil | import _ from 'underscore-contrib';
import React from 'react';
import classNames from 'classnames';
import {parseOrFallback} from 'helpers';
class List extends React.Component {
render() {
let block = "console__chunk--list",
output = this.props.chunk;
let classes = classNames(block, {
"consol... |
react/gameday2/components/embeds/EmbedLivestream.js | fangeugene/the-blue-alliance | import React from 'react'
import { webcastPropType } from '../../utils/webcastUtils'
const EmbedLivestream = (props) => {
const channel = props.webcast.channel
const file = props.webcast.file
const iframeSrc = `https://new.livestream.com/accounts/${channel}/events/${file}/player?width=640&height=360&autoPlay=tru... |
ajax/libs/rxjs/2.3.25/rx.compat.js | thesandlord/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
};
... |
src/isomorphic/classic/element/ReactElementValidator.js | yjyi/react | /**
* Copyright 2014-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 ... |
components/Header.js | sunday-school/sundayschool.rocks | import React from 'react'
import Nav from './Nav'
import Church from './Church'
const Header = ({children}) =>
<header className='bb cf mb3'>
<div className='fl w-10'>
<Church />
</div>
<div className='fl w-60'>
<h1 className='pa0 ma0'>{children}</h1>
</div>
<div className='fl w-30'>
... |
src/browser/app/components/Radio.js | skallet/este | // @flow
import type { CheckboxProps } from './Checkbox';
import type { Strict } from '../themes/types';
import Checkbox from './Checkbox';
import React from 'react';
export type RadioProps = CheckboxProps & {
value: string | number,
};
const defaultSvgIconChecked = (
<svg viewBox="7 9 70 70">
<path
d="... |
admin/client/components/ListSort.js | kumo/keystone | import { FormNote } from 'elemental';
import classNames from 'classnames';
import React from 'react';
import Popout from './Popout';
import PopoutList from './PopoutList';
import Transition from 'react-addons-css-transition-group';
import vkey from 'vkey';
import CurrentListStore from '../stores/CurrentListStore';
va... |
src/js/modules/ReadingEntitiesD3V4.js | fredyagomez/reactjs-D3-V4-grommet |
import React from 'react';
import * as d3 from 'd3';
import DiagramBox from './DiagramBox';
import DiagramTitle from './DiagramTitle';
import DiagramLine from './DiagramLine';
import DiagramRelationship from './DiagramRelationship';
import DiagramAttribute from './DiagramAttribute';
import Table from 'grommet/... |
client/app/src/pages/CreateEventPage/index.js | RyanCCollins/meetup-event-planner | import React from 'react';
import cssModules from 'react-css-modules';
import styles from './index.module.scss';
import { CreateEventContainer } from 'containers';
const CreateEventPage = () => (
<div className={styles.container}>
<CreateEventContainer />
</div>
);
export default cssModules(CreateEventPage, s... |
src/containers/cobrand-logo.js | MoveOnOrg/mop-frontend | /* eslint-disable camelcase */
import React from 'react'
import { withRouter } from 'react-router'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
class CobrandLogo extends React.Component {
renderLogo() {
const { cobrand } = this.props
return (
<img
className='org_logo... |
source/client/components/Card.js | NAlexandrov/yaw | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styled from 'react-emotion';
import { Modal } from 'antd';
import { Select, CardEdit, Input } from './';
import loading from './helpers/loading';
const CardLayout = styled.div`
position: relative;
width: 260px;
height: 164px;
box-... |
src/containers/views/NotFound.js | jekyll/jekyll-admin | import React from 'react';
const NotFound = () => (
<div className="notfound">
<img src={require('../../assets/images/logo-black-red.png')} alt="Jekyll Admin" />
<h1>Huh. It seems that page is Hyde-ing...</h1>
<h2>The resource you requested was not found.</h2>
</div>
);
export default NotFound;
|
src/components/PlaceHolder.js | ZevenFang/react-native-starterkit | import React from 'react';
import {Image, View, Text, ActivityIndicator, TouchableOpacity} from 'react-native';
import { Icon } from 'react-native-elements'
import colors from '../utils/colors';
class PlaceHolder extends React.Component {
render() {
let {loading, onRefresh, text, image} = this.props;
return... |
config/webpack.config.prod.js | KashGit/react-component-lib | 'use strict';
const autoprefixer = require('autoprefixer');
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const ManifestPlugin = require('webpack-manifest-plugin');
const Inte... |
src/Containers/LaunchScreen.js | yarikgenza/WhereToGo-Lviv | import React, { Component } from 'react';
import { Image, View } from 'react-native';
import { Actions } from 'react-native-router-flux';
import * as Animatable from 'react-native-animatable';
import NativeFeedbackButton from '../Components/NativeFeedbackButton';
import Images from '../Themes/images';
import styles f... |
client/modules/core/configs/notifications.js | pstuart/Open-Dash | import { Meteor } from 'meteor/meteor';
import React from 'react';
import sAlert from 'react-s-alert';
import swal from 'sweetalert';
/**
* sAlerts defaults
* https://github.com/juliancwirko/react-s-alert
*/
// wrapper for simpler calls
export const Notify = {
success(text, location) {
sAlert.info(text, {
... |
node_modules/intl/dist/Intl.complete.js | Technocaveman/There-is-no-Third-Step | !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):e.IntlPolyfill=r()}(this,function(){"use strict";function e(e){if("function"==typeof Math.log10)return Math.floor(Math.log10(e));var r=Math.round(Math.log(e)*Math.LOG10E);return r-(Numb... |
index.js | tanepiper/hapi-react-views | var Hoek = require('hoek');
var React = require('react');
var ReactDOMServer = require('react-dom/server');
var EXT_REGEX = new RegExp('\\.jsx$');
var DEFAULTS = {
doctype: '<!DOCTYPE html>',
renderMethod: 'renderToStaticMarkup',
removeCache: process.env.NODE_ENV !== 'production'
};
var compile = functi... |
src/index.js | JithuTholoor/RubixCube | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import './index.css';
ReactDOM.render(
<div>
<App />
<a className="github-fork-ribbon"
href="https://github.com/JithuTholoor/RubixCube"
data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork m... |
src/docs/components/animate/AnimateSlideExample.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Animate from 'grommet/components/Animate';
import Box from 'grommet/components/Box';
import Button from 'grommet/components/Button';
import Paragraph from 'grommet/components/Paragraph';
import Example... |
components/widgets/charts/TextChart.js | resource-watch/resource-watch | import React from 'react';
import PropTypes from 'prop-types';
import 'isomorphic-fetch';
import { format } from 'd3-format';
class TextChart extends React.Component {
static propTypes = {
widgetConfig: PropTypes.object.isRequired,
toggleLoading: PropTypes.func, // Will be called with the loading state
};
... |
fields/types/number/NumberField.js | wustxing/keystone | import React from 'react';
import Field from '../Field';
import { FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'NumberField',
valueChanged (event) {
var newValue = event.target.value.replace(/[^\d\.]/g, '');
if (newValue === this.props.value) return;
this.props.onChange({
pat... |
ajax/libs/mobx-react/3.2.0/index.min.js | dada0423/cdnjs | !function(){function e(e,t,n){function o(e){return n?n.findDOMNode(e):null}function r(e){var t=o(e);t&&p.set(t,e),d.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function i(e,t){var n=e[t],o=u[t];n?e[t]=function(){n.apply(this,argumen... |
src/SettingsSectionPrivacy/index.js | DuckyTeam/ducky-components | import SectionHeaderGeneral from '../SectionHeaderGeneral';
import SettingsPrivacyGeneral from '../SettingsPrivacyGeneral';
import Spacer from '../Spacer';
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './styles.css';
function SettingsSectionPri... |
collect-webapp/frontend/src/common/components/TableResizeOnWindowResizeComponent.js | openforis/collect | import { useWindowResize } from 'common/hooks'
import { useCallback } from 'react'
import { useEffect } from 'react'
import Containers from './Containers'
const TableResizeOnWindowResizeComponent = (props) => {
const { wrapperRef, margin } = props
const resizeTable = useCallback(() => {
const wrapper = wrappe... |
src/feedbackFormSubmit.js | theadam/react-inform | import PropTypes from 'prop-types';
import React, { Component } from 'react';
export default class FeedbackFormSubmit extends Component {
static propTypes = {
onInvalid: PropTypes.func,
onClick: PropTypes.func,
}
static contextTypes = {
form: PropTypes.object.isRequired,
}
handleClick(e) {
... |
web/src/server/components/charts/projects-vs-organizations-chart.js | opendaylight/spectrometer | /**
# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
##############################################################################
# Copyright (c) 2016 The Linux Foundation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public L... |
node_modules/react-icons/md/border-outer.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdBorderOuter = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m15 18.4v3.2h-3.4v-3.2h3.4z m6.6 6.6v3.4h-3.2v-3.4h3.2z m10 6.6v-23.2h-23.2v23.2h23.2z m-26.6-26.6h30v30h-30v-30z m23.4 13.4v3.2h-3.4v-3.2h3.4z m-6.8 0v3.2h-3.2v-... |
Study/Udemy Docker and Kubernetes/Section09/deployment-08-deployed-to-multiple-tasks/frontend/src/components/UI/Card.js | tarsoqueiroz/Docker | import React from 'react';
import './Card.css';
function Card(props) {
return <div className='card'>{props.children}</div>;
}
export default Card;
|
src/drawer/IconLink.js | kesjien/member-cards | import React, { Component } from 'react';
import { View, TouchableOpacity, Image, PixelRatio, Text } from 'react-native';
import {Actions} from 'react-native-router-flux';
import normalize from '../utils/normalizeFont';
import { vw, vh } from '../utils/vDimensions';
export default class extends Component {
construc... |
src/controls/numberfield/index.js | thinktopography/reframe | import PropTypes from 'prop-types'
import React from 'react'
import _ from 'lodash'
const SPECIAL_KEYS = ['ArrowLeft','ArrowRight','ArrowUp','ArrowDown','Backspace']
const REGEX = /^-?[0-9]*\.?[0-9]*$/
class NumberField extends React.Component {
static propTypes = {
defaultValue: PropTypes.object,
onChang... |
node_modules/react-bootstrap/lib/ListGroup.js | FoxMessenger/nyt-react | 'use strict';
exports.__esModule = true;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProper... |
src/svg-icons/social/sentiment-satisfied.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentSatisfied = (props) => (
<SvgIcon {...props}>
<circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S1... |
app/views/character-sheet/sheet3.js | Hartorn/character-builder-dd5 | import React from 'react'
const Sheet3 = (props) => {
return (
<div className='sheet'>
<div data-dd='character-sheet header-3'>
<div className='spellcaster-name absolute'>Magicien (INT)</div>
<div className='spellcaster-label label absolute'><div>CLASSE DE LANCEU... |
app/boards/mercedes-amg-gt3/components/pit-limiter.js | fermio/motorsport-display | import React from 'react';
import _ from 'lodash';
import { EngineWarnings } from '../../constants';
const PitLimiter = React.createClass({
propTypes: {
warnings: React.PropTypes.array,
speed: React.PropTypes.number
},
getDefaultProps: function() {
return {
warnings: ... |
ajax/libs/material-ui/5.0.0-alpha.27/legacy/ToggleButtonGroup/ToggleButtonGroup.min.js | cdnjs/cdnjs | import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import _defineProperty from"@babel/runtime/helpers/esm/defineProperty";import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import{isFragment}from"react-is";import PropTypes from"prop-types";import c... |
ajax/libs/yui/3.8.0/event-custom-base/event-custom-base-coverage.js | watsoncj/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
ajax/libs/antd/1.0.0-beta.7/antd.min.js | keicheng/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.antd=t(require("react"),require("react-dom")):e.antd=t(e.React,e.ReactDOM)}(this,function(e,t){r... |
packages/material-ui-icons/src/FormatQuoteSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M5 17h3l2-4V7H4v6h3l-2 4zm10 0h3l2-4V7h-6v6h3l-2 4z" />
, 'FormatQuoteSharp');
|
src/components/NewPlayerComponent.js | sam365/react-hangman | import React from 'react';
class NewPlayerComponent extends React.Component {
createPlayer(event) {
event.preventDefault();
let newPlayer = this.refs.playerName.value;
this.props.onCreate(newPlayer);
this.refs.playerName.value = "";
console.log("Create Player Called!");
}
render() {
retu... |
src/pages/uncategorized/Stablematching/Stablematching.js | hyy1115/react-redux-webpack2 | import React from 'react'
class Stablematching extends React.Component {
render() {
return (
<div>Stablematching</div>
)
}
}
export default Stablematching |
index.android.js | buildreactnative/assemblies | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class assembliesTutorial extends Component {
render() {
return (
<View style={styles.container}>
... |
ajax/libs/react-native-web/0.15.0/cjs/modules/useStable/index.min.js | cdnjs/cdnjs | "use strict";exports.__esModule=!0,exports.default=useStable;var React=_interopRequireWildcard(require("react"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)r... |
packages/mineral-ui-icons/src/IconSentimentNeutral.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconSentimentNeutral(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...i... |
src/components/UserList.js | AliaksandrZahorski/contacts | import React from 'react'
import User from './User'
const UserList = ({ users }) => (
<div className="userlist">
<ul>
{users.data.map(user =>
<User
key={user.id}
{...user}
/>
)}
</ul>
</div>
)
export default UserList
|
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js | bunnyblue/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
import ActorClient from 'utils/ActorClient';
import { Styles, FlatButton } from 'material-ui';
import { KeyCodes } from 'constants/ActorAppConstant... |
src/index.js | dpastoor/n-queens | import React from 'react';
import { render } from 'react-dom';
import { App } from './App';
render(<App />, document.getElementById('root'));
|
src/pages/index.js | InvertedX/sarath.me | import React from 'react';
import Img from "gatsby-image";
import Link from 'gatsby-link'
import {Helmet} from 'react-helmet'
import './index.scss'
class Home extends React.Component {
state = {
mobileOpen: false,
};
render () {
const {data} = this.props;
const {allMarkdownRemark} = data
const... |
node_modules/react-bootstrap/es/ButtonGroup.js | cmccandless/SolRFrontEnd | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
ajax/libs/jqwidgets/13.0.0/jqwidgets-react-tsx/jqxtextarea/react_jqxtextarea.umd.js | cdnjs/cdnjs | require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxdata');
require('../../jqwidgets/jqxbuttons');
require('../../jqwidgets/jqxscrollbar');
require('../../jqwidgets/jqxtextarea');
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.